[ruby/strscan] jruby: Check if len++ walked off the end
[ruby.git] / inits.c
blobee8b2047604dcb6f250db8c7c477b89a9690a60a
1 /**********************************************************************
3 inits.c -
5 $Author$
6 created at: Tue Dec 28 16:01:58 JST 1993
8 Copyright (C) 1993-2007 Yukihiro Matsumoto
10 **********************************************************************/
12 #include "internal/inits.h"
13 #include "ruby.h"
14 #include "builtin.h"
15 static void Init_builtin_prelude(void);
16 #include "prelude.rbinc"
18 #define CALL(n) {void Init_##n(void); Init_##n();}
20 void
21 rb_call_inits(void)
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(shape);
77 CALL(Prism);
78 CALL(unicode_version);
79 CALL(Set);
81 // enable builtin loading
82 CALL(builtin);
85 void
86 rb_call_builtin_inits(void)
88 #define BUILTIN(n) CALL(builtin_##n)
89 BUILTIN(kernel);
90 BUILTIN(yjit);
91 // BUILTIN(yjit_hook) is called after rb_yjit_init()
92 BUILTIN(gc);
93 BUILTIN(ractor);
94 BUILTIN(numeric);
95 BUILTIN(io);
96 BUILTIN(dir);
97 BUILTIN(ast);
98 BUILTIN(trace_point);
99 BUILTIN(pack);
100 BUILTIN(warning);
101 BUILTIN(array);
102 BUILTIN(hash);
103 BUILTIN(symbol);
104 BUILTIN(timev);
105 BUILTIN(thread_sync);
106 BUILTIN(nilclass);
107 BUILTIN(marshal);
108 BUILTIN(zjit);
109 Init_builtin_prelude();
111 #undef CALL