1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

goruby.c: include golf_prelude.c to get rid of overwriting EXTOBJS

This commit is contained in:
Nobuyoshi Nakada 2021-07-03 22:39:14 +09:00
parent 2d3572a154
commit ac6924e10e
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
2 changed files with 31 additions and 186 deletions

View file

@ -1,4 +1,6 @@
void Init_golf(void);
static void Init_golf(void);
static void *goruby_options(int argc, char **argv);
static int goruby_run_node(void *arg);
#define ruby_options goruby_options
#define ruby_run_node goruby_run_node
#include "main.c"
@ -17,6 +19,8 @@ RUBY_EXTERN void *ruby_options(int argc, char **argv);
RUBY_EXTERN int ruby_run_node(void*);
RUBY_EXTERN void ruby_init_ext(const char *name, void (*init)(void));
#include "golf_prelude.c"
static VALUE
init_golf(VALUE arg)
{