Ruby
3.3.7p123 (2025-01-15 revision be31f993d7fa0219d85f7b3c694d454da4ecc10b)
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"
15
static
void
Init_builtin_prelude(
void
);
16
#include "prelude.rbinc"
17
18
#define CALL(n) {void Init_##n(void); Init_##n();}
19
20
void
21
rb_call_inits(
void
)
22
{
23
CALL(default_shapes);
24
CALL(Thread_Mutex);
25
CALL(RandomSeedCore);
26
CALL(encodings);
27
CALL(sym);
28
CALL(var_tables);
29
CALL(Object);
30
CALL(top_self);
31
CALL(Encoding);
32
CALL(Comparable);
33
CALL(Enumerable);
34
CALL(String);
35
CALL(Exception);
36
CALL(eval);
37
CALL(jump);
38
CALL(Numeric);
39
CALL(Bignum);
40
CALL(syserr);
41
CALL(Array);
42
CALL(Hash);
43
CALL(Struct);
44
CALL(
Regexp
);
45
CALL(pack);
46
CALL(transcode);
47
CALL(marshal);
48
CALL(Range);
49
CALL(IO);
50
CALL(IO_Buffer)
51
CALL(Dir);
52
CALL(Time);
53
CALL(Random);
54
CALL(load);
55
CALL(Proc);
56
CALL(Binding);
57
CALL(Math);
58
CALL(GC);
59
CALL(WeakMap);
60
CALL(Enumerator);
61
CALL(Ractor);
62
CALL(VM);
63
CALL(ISeq);
64
CALL(Thread);
65
CALL(signal);
66
CALL(Fiber_Scheduler);
67
CALL(process);
68
CALL(Cont);
69
CALL(Rational);
70
CALL(Complex);
71
CALL(MemoryView);
72
CALL(version);
73
CALL(vm_trace);
74
CALL(vm_stack_canary);
75
CALL(ast);
76
CALL(gc_stress);
77
CALL(shape);
78
CALL(Prism);
79
80
// enable builtin loading
81
CALL(builtin);
82
}
83
84
void
85
rb_call_builtin_inits(
void
)
86
{
87
#define BUILTIN(n) CALL(builtin_##n)
88
BUILTIN(gc);
89
BUILTIN(ractor);
90
BUILTIN(numeric);
91
BUILTIN(io);
92
BUILTIN(dir);
93
BUILTIN(ast);
94
BUILTIN(trace_point);
95
BUILTIN(pack);
96
BUILTIN(warning);
97
BUILTIN(array);
98
BUILTIN(kernel);
99
BUILTIN(symbol);
100
BUILTIN(timev);
101
BUILTIN(thread_sync);
102
BUILTIN(yjit);
103
BUILTIN(nilclass);
104
BUILTIN(marshal);
105
#if USE_RJIT
106
BUILTIN(rjit_c);
107
BUILTIN(rjit);
108
#endif
109
Init_builtin_prelude();
110
}
111
#undef CALL
Regexp
struct re_pattern_buffer Regexp
Old name of re_pattern_buffer.
Definition
rmatch.h:52
Generated by
1.13.2