Ruby: inits.c Source File

Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)

inits.c
Go to the documentation of this file.
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(Thread_Mutex);
24#if USE_TRANSIENT_HEAP
25 CALL(TransientHeap);
26#endif
27 CALL(vm_postponed_job);
28 CALL(Method);
29 CALL(RandomSeedCore);
30 CALL(encodings);
31 CALL(sym);
32 CALL(var_tables);
33 CALL(Object);
34 CALL(top_self);
35 CALL(Encoding);
36 CALL(Comparable);
37 CALL(Enumerable);
38 CALL(String);
39 CALL(Exception);
40 CALL(eval);
41 CALL(jump);
42 CALL(Numeric);
43 CALL(Bignum);
44 CALL(syserr);
45 CALL(Array);
46 CALL(Hash);
47 CALL(Struct);
48 CALL(Regexp);
49 CALL(pack);
50 CALL(transcode);
51 CALL(marshal);
52 CALL(Range);
53 CALL(IO);
54 CALL(Dir);
55 CALL(Time);
56 CALL(Random);
57 CALL(signal);
58 CALL(load);
59 CALL(Proc);
60 CALL(Binding);
61 CALL(Math);
62 CALL(GC);
63 CALL(Enumerator);
64 CALL(Ractor);
65 CALL(VM);
66 CALL(ISeq);
67 CALL(Thread);
68 CALL(Scheduler);
69 CALL(process);
70 CALL(Cont);
71 CALL(Rational);
72 CALL(Complex);
73 CALL(MemoryView);
74 CALL(version);
75 CALL(vm_trace);
76 CALL(vm_stack_canary);
77 CALL(ast);
78 CALL(gc_stress);
79
80 // enable builtin loading
81 CALL(builtin);
82}
83
84void
85rb_call_builtin_inits(void)
86{
87#define BUILTIN(n) CALL(builtin_##n)
88 BUILTIN(gc);
89 BUILTIN(ractor);
90 BUILTIN(integer);
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 Init_builtin_prelude();
100}
101#undef CALL
sym
#define sym(name)
Definition: enumerator.c:4007
builtin.h
Defines RBIMPL_HAS_BUILTIN.
CALL
#define CALL(n)
Definition: inits.c:18
BUILTIN
#define BUILTIN(n)
rb_call_builtin_inits
void rb_call_builtin_inits(void)
Definition: inits.c:85
rb_call_inits
void rb_call_inits(void)
Definition: inits.c:21
inits.h
Internal header aggregating init functions.
load
void * load(const char *name, size_t *len)
Definition: pufftest.c:60
ruby.h
re_pattern_buffer
Definition: onigmo.h:755