* tool/transcode-tblgen.rb (ActionMap#eql?): use == to compare @map.
[ruby-svn.git] / goruby.c
blob7cd3a2262b390abcd79d6dab6c14473670a7539f
1 void Init_golf(void);
2 #define ruby_run_node goruby_run_node
3 #include "main.c"
4 #undef ruby_run_node
6 RUBY_EXTERN int ruby_run_node(void*);
7 RUBY_EXTERN void ruby_init_ext(const char *name, void (*init)(void));
9 static VALUE
10 init_golf(VALUE arg)
12 ruby_init_ext("golf", Init_golf);
13 return arg;
16 int
17 goruby_run_node(void *arg)
19 int state;
20 if (NIL_P(rb_protect(init_golf, Qtrue, &state))) {
21 return state == EXIT_SUCCESS ? EXIT_FAILURE : state;
23 return ruby_run_node(arg);