Ruby
4.1.0dev (2026-05-06 revision 2f5b7464543be76be032e0cfa69bf34993ea222c)
inits.c (2f5b7464543be76be032e0cfa69bf34993ea222c)
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(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(MemoryView);
74
CALL(pathname);
75
CALL(version);
76
CALL(vm_trace);
77
CALL(vm_stack_canary);
78
CALL(ast);
79
CALL(shape);
80
CALL(Prism);
81
CALL(unicode_version);
82
CALL(Set);
83
84
// enable builtin loading
85
CALL(builtin);
86
}
87
88
void
89
rb_call_builtin_inits(
void
)
90
{
91
#define BUILTIN(n) CALL(builtin_##n)
92
BUILTIN(jit_hook);
93
BUILTIN(yjit);
94
BUILTIN(zjit);
95
BUILTIN(kernel);
96
BUILTIN(gc);
97
BUILTIN(ractor);
98
BUILTIN(numeric);
99
BUILTIN(io);
100
BUILTIN(dir);
101
BUILTIN(ast);
102
BUILTIN(trace_point);
103
BUILTIN(pack);
104
BUILTIN(pathname_builtin);
105
BUILTIN(warning);
106
BUILTIN(array);
107
BUILTIN(hash);
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