Ruby
4.1.0dev (2026-09-21 revision 61de3dd727146cfcf24e8051595bb2fb842f37aa)
inits.c (61de3dd727146cfcf24e8051595bb2fb842f37aa)
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(Thread_Mutex);
24
CALL(RandomSeedCore);
25
CALL(encodings);
26
CALL(sym);
27
CALL(var_tables);
28
CALL(Object);
29
CALL(top_self);
30
CALL(Encoding);
31
CALL(Comparable);
32
CALL(Enumerable);
33
CALL(String);
34
CALL(Exception);
35
CALL(eval);
36
CALL(jump);
37
CALL(Numeric);
38
CALL(Bignum);
39
CALL(syserr);
40
CALL(Array);
41
CALL(Hash);
42
CALL(Struct);
43
CALL(
Regexp
);
44
CALL(pack);
45
CALL(transcode);
46
CALL(marshal);
47
CALL(Range);
48
CALL(IO);
49
CALL(MemoryView);
/* Must precede IO_Buffer */
50
CALL(IO_Buffer)
51
CALL(Dir);
52
CALL(Time);
53
CALL(Random);
54
CALL(load);
55
CALL(Ruby_module);
56
CALL(Box);
57
CALL(Proc);
58
CALL(Binding);
59
CALL(Math);
60
CALL(GC);
61
CALL(WeakMap);
62
CALL(Enumerator);
63
CALL(Ractor);
64
CALL(VM);
65
CALL(ISeq);
66
CALL(Thread);
67
CALL(signal);
68
CALL(Cont);
69
CALL(Fiber_Scheduler);
70
CALL(process);
71
CALL(Rational);
72
CALL(Complex);
73
CALL(pathname);
74
CALL(version);
75
CALL(vm_trace);
76
CALL(vm_stack_canary);
77
CALL(ast);
78
CALL(shape);
79
CALL(Prism);
80
CALL(unicode_version);
81
CALL(Set);
82
83
// enable builtin loading
84
CALL(builtin);
85
}
86
87
void
88
rb_call_builtin_inits(
void
)
89
{
90
#define BUILTIN(n) CALL(builtin_##n)
91
BUILTIN(jit_hook);
92
BUILTIN(yjit);
93
BUILTIN(zjit);
94
BUILTIN(kernel);
95
BUILTIN(gc);
96
BUILTIN(ractor);
97
BUILTIN(numeric);
98
BUILTIN(io);
99
BUILTIN(dir);
100
BUILTIN(ast);
101
BUILTIN(trace_point);
102
BUILTIN(pack);
103
BUILTIN(pathname_builtin);
104
BUILTIN(warning);
105
BUILTIN(array);
106
BUILTIN(hash);
107
BUILTIN(
string
);
108
BUILTIN(symbol);
109
BUILTIN(timev);
110
BUILTIN(thread_sync);
111
BUILTIN(nilclass);
112
BUILTIN(marshal);
113
BUILTIN(jit_undef);
114
Init_builtin_prelude();
115
}
116
#undef CALL
builtin.h
Defines RBIMPL_HAS_BUILTIN.
ruby.h
re_pattern_buffer
Definition
onigmo.h:758
Generated by
1.9.8