mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
parent
b5ab918d0c
commit
83ef58f264
1 changed files with 1 additions and 1 deletions
|
@ -298,6 +298,7 @@ ttymode(VALUE io, VALUE (*func)(VALUE), VALUE farg, void (*setter)(conmode *, vo
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !defined _WIN32
|
||||||
struct ttymode_callback_args {
|
struct ttymode_callback_args {
|
||||||
VALUE (*func)(VALUE, VALUE);
|
VALUE (*func)(VALUE, VALUE);
|
||||||
VALUE io;
|
VALUE io;
|
||||||
|
@ -311,7 +312,6 @@ ttymode_callback(VALUE args)
|
||||||
return argp->func(argp->io, argp->farg);
|
return argp->func(argp->io, argp->farg);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined _WIN32
|
|
||||||
static VALUE
|
static VALUE
|
||||||
ttymode_with_io(VALUE io, VALUE (*func)(VALUE, VALUE), VALUE farg, void (*setter)(conmode *, void *), void *arg)
|
ttymode_with_io(VALUE io, VALUE (*func)(VALUE, VALUE), VALUE farg, void (*setter)(conmode *, void *), void *arg)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue