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);
VALUE rb_protect(VALUE(*proc)(VALUE), VALUE data, int *pstate)
Protects a function call from potential global escapes from the function.
void * goruby_options(int argc, char **argv)
RUBY_EXTERN void ruby_init_ext(const char *name, void(*init)(void))
int goruby_run_node(void *arg)
RUBY_EXTERN int dup2(int, int)
void rb_provide(const char *)