diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-12-29 10:07:17 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-12-29 12:34:55 +0900 |
commit | d7bef803ac3546119b30e1d78af0097a9df9c907 (patch) | |
tree | 9af60ade39db53f7d33142a125b8492672fcab5d /inits.c | |
parent | 8ce5d46e662f53a56cf21c47981bb99bcb5b73e6 (diff) | |
download | ruby-d7bef803ac3546119b30e1d78af0097a9df9c907.tar.gz |
Separate builtin initialization calls
Diffstat (limited to 'inits.c')
-rw-r--r-- | inits.c | 20 |
1 files changed, 13 insertions, 7 deletions
@@ -12,6 +12,7 @@ #include "internal/inits.h" #include "ruby.h" #include "builtin.h" +static void Init_builtin_prelude(void); #include "prelude.rbinc" #define CALL(n) {void Init_##n(void); Init_##n();} @@ -45,6 +46,7 @@ rb_call_inits(void) CALL(Hash); CALL(Struct); CALL(Regexp); + CALL(pack); CALL(transcode); CALL(marshal); CALL(Range); @@ -57,6 +59,7 @@ rb_call_inits(void) CALL(Proc); CALL(Binding); CALL(Math); + CALL(GC); CALL(Enumerator); CALL(VM); CALL(ISeq); @@ -66,18 +69,21 @@ rb_call_inits(void) CALL(Rational); CALL(Complex); CALL(version); + CALL(vm_trace); CALL(vm_stack_canary); + CALL(ast); CALL(gc_stress); // enable builtin loading CALL(builtin); - CALL(GC); - CALL(IO_nonblock); - CALL(ast); - CALL(vm_trace); - CALL(pack); - CALL(warning); - load_prelude(); +#define BUILTIN(n) CALL(builtin_##n) + BUILTIN(gc); + BUILTIN(io); + BUILTIN(ast); + BUILTIN(trace_point); + BUILTIN(pack); + BUILTIN(warning); + Init_builtin_prelude(); } #undef CALL |