Ruby: inits.c Source File

Ruby 3.2.5p208 (2024-07-26 revision 31d0f1a2e7dbfb60731d1f05b868e1d578cda493)

inits.c
1/**********************************************************************
2
3 inits.c -
4
5 $Author$
6 created at: Tue Dec 28 16:01:58 JST 1993
7
8 Copyright (C) 1993-2007 Yukihiro Matsumoto
9
10**********************************************************************/
11
12#include "internal/inits.h"
13#include "ruby.h"
14#include "builtin.h"
15static void Init_builtin_prelude(void);
16#include "prelude.rbinc"
17
18#define CALL(n) {void Init_##n(void); Init_##n();}
19
20void
21rb_call_inits(void)
22{
23 CALL(default_shapes);
24 CALL(Thread_Mutex);
25#if USE_TRANSIENT_HEAP
26 CALL(TransientHeap);
27#endif
28 CALL(vm_postponed_job);
29 CALL(Method);
30 CALL(RandomSeedCore);
31 CALL(encodings);
32 CALL(sym);
33 CALL(var_tables);
34 CALL(Object);
35 CALL(top_self);
36 CALL(Encoding);
37 CALL(Comparable);
38 CALL(Enumerable);
39 CALL(String);
40 CALL(Exception);
41 CALL(eval);
42 CALL(jump);
43 CALL(Numeric);
44 CALL(Bignum);
45 CALL(syserr);
46 CALL(Array);
47 CALL(Hash);
48 CALL(Struct);
49 CALL(Regexp);
50 CALL(pack);
51 CALL(transcode);
52 CALL(marshal);
53 CALL(Range);
54 CALL(IO);
55 CALL(IO_Buffer)
56 CALL(Dir);
57 CALL(Time);
58 CALL(Random);
59 CALL(signal);
60 CALL(load);
61 CALL(Proc);
62 CALL(Binding);
63 CALL(Math);
64 CALL(GC);
65 CALL(Enumerator);
66 CALL(Ractor);
67 CALL(VM);
68 CALL(ISeq);
69 CALL(Thread);
70 CALL(Fiber_Scheduler);
71 CALL(process);
72 CALL(Cont);
73 CALL(Rational);
74 CALL(Complex);
75 CALL(MemoryView);
76 CALL(version);
77 CALL(vm_trace);
78 CALL(vm_stack_canary);
79 CALL(ast);
80 CALL(gc_stress);
81 CALL(shape);
82
83 // enable builtin loading
84 CALL(builtin);
85}
86
87void
88rb_call_builtin_inits(void)
89{
90#define BUILTIN(n) CALL(builtin_##n)
91 BUILTIN(gc);
92 BUILTIN(ractor);
93 BUILTIN(numeric);
94 BUILTIN(io);
95 BUILTIN(dir);
96 BUILTIN(ast);
97 BUILTIN(trace_point);
98 BUILTIN(pack);
99 BUILTIN(warning);
100 BUILTIN(array);
101 BUILTIN(kernel);
102 BUILTIN(symbol);
103 BUILTIN(timev);
104 BUILTIN(thread_sync);
105 BUILTIN(yjit);
106 BUILTIN(nilclass);
107 BUILTIN(marshal);
108#if USE_MJIT
109 BUILTIN(mjit);
110 BUILTIN(mjit_c);
111#endif
112 Init_builtin_prelude();
113}
114#undef CALL
re_pattern_buffer
Definition onigmo.h:757