2#define ruby_options goruby_options
3#define ruby_run_node goruby_run_node
11#define pipe(p) _pipe(p, 32L, _O_NOINHERIT)
12#elif defined HAVE_UNISTD_H
31 static const char cmd[] =
"END{require 'irb';IRB.start}";
35 if ((isatty(0) && isatty(1) && isatty(2)) && (pipe(rw) == 0)) {
45 n =
write(rw[1], cmd,
sizeof(cmd) - 1);
void ruby_init_ext(const char *name, void(*init)(void))
void * goruby_options(int argc, char **argv)
int goruby_run_node(void *arg)
VALUE rb_protect(VALUE(*proc)(VALUE), VALUE data, int *pstate)
Protects a function call from potential global escapes from the function.
void rb_provide(const char *)
int write(ozstream &zs, const T *x, Items items)