/src/mruby/build/host/mrbgems/mruby-dir/gem_init.c
Line | Count | Source |
1 | | /* |
2 | | * This file is loading the irep |
3 | | * Ruby GEM code. |
4 | | * |
5 | | * This file was generated by mruby/lib/mruby/gem.rb. |
6 | | * |
7 | | * IMPORTANT: |
8 | | * This file was generated! |
9 | | * All manual changes will get lost. |
10 | | */ |
11 | | #include <stdlib.h> |
12 | | #include <mruby.h> |
13 | | #include <mruby/irep.h> |
14 | | #include <mruby/debug.h> |
15 | | #include <mruby/proc.h> |
16 | | #include <mruby/presym.h> |
17 | | |
18 | | #define mrb_BRACED(...) {__VA_ARGS__} |
19 | | #define mrb_DEFINE_SYMS_VAR(name, len, syms, qualifier) \ |
20 | | static qualifier mrb_sym name[len] = mrb_BRACED syms |
21 | | |
22 | | mrb_DEFINE_SYMS_VAR(gem_mrblib_mruby_dir_proc_syms_2, 2, (MRB_SYM(read), MRB_SYM(call), ), const); |
23 | | static const mrb_code gem_mrblib_mruby_dir_proc_iseq_2[34] = { |
24 | | 0x34,0x00,0x00,0x01,0x12,0x03,0x2f,0x03,0x00,0x00,0x01,0x02,0x03,0x27,0x03,0x00,0x0d,0x01,0x03,0x01, |
25 | | 0x01,0x04,0x02,0x2f,0x03,0x01,0x01,0x25,0xff,0xe6,0x12,0x03,0x38,0x03,}; |
26 | | mrb_DEFINE_SYMS_VAR(gem_mrblib_mruby_dir_proc_lv_2, 2, (MRB_SYM(block), MRB_SYM(s), ), const); |
27 | | static const mrb_irep gem_mrblib_mruby_dir_proc_irep_2 = { |
28 | | 3,6,0, |
29 | | MRB_IREP_STATIC,gem_mrblib_mruby_dir_proc_iseq_2, |
30 | | NULL,gem_mrblib_mruby_dir_proc_syms_2,NULL, |
31 | | gem_mrblib_mruby_dir_proc_lv_2, |
32 | | NULL, /* debug_info */ |
33 | | 34,0,2,0,0 |
34 | | }; |
35 | | mrb_DEFINE_SYMS_VAR(gem_mrblib_mruby_dir_proc_syms_10, 2, (MRB_SYM(read), MRB_OPSYM(lshift), ), const); |
36 | | static const mrb_code gem_mrblib_mruby_dir_proc_iseq_10[36] = { |
37 | | 0x34,0x04,0x00,0x00,0x01,0x04,0x01,0x2f,0x04,0x00,0x00,0x01,0x03,0x04,0x27,0x04,0x00,0x0e,0x21,0x04, |
38 | | 0x03,0x00,0x01,0x05,0x03,0x2f,0x04,0x01,0x01,0x25,0xff,0xe4,0x11,0x04,0x38,0x04,}; |
39 | | mrb_DEFINE_SYMS_VAR(gem_mrblib_mruby_dir_proc_lv_10, 3, (MRB_SYM(d), 0,MRB_SYM(s), ), const); |
40 | | static const mrb_irep gem_mrblib_mruby_dir_proc_irep_10 = { |
41 | | 4,7,0, |
42 | | MRB_IREP_STATIC,gem_mrblib_mruby_dir_proc_iseq_10, |
43 | | NULL,gem_mrblib_mruby_dir_proc_syms_10,NULL, |
44 | | gem_mrblib_mruby_dir_proc_lv_10, |
45 | | NULL, /* debug_info */ |
46 | | 36,0,2,0,0 |
47 | | }; |
48 | | static const mrb_irep *gem_mrblib_mruby_dir_proc_reps_6[1] = { |
49 | | &gem_mrblib_mruby_dir_proc_irep_10, |
50 | | }; |
51 | | mrb_DEFINE_SYMS_VAR(gem_mrblib_mruby_dir_proc_syms_6, 1, (MRB_SYM(open), ), const); |
52 | | static const mrb_code gem_mrblib_mruby_dir_proc_iseq_6[21] = { |
53 | | 0x34,0x04,0x00,0x00,0x47,0x03,0x00,0x12,0x04,0x01,0x05,0x01,0x57,0x06,0x00,0x30,0x04,0x00,0x01,0x38, |
54 | | 0x03,}; |
55 | | mrb_DEFINE_SYMS_VAR(gem_mrblib_mruby_dir_proc_lv_6, 3, (MRB_SYM(path), 0,MRB_SYM(a), ), const); |
56 | | static const mrb_irep gem_mrblib_mruby_dir_proc_irep_6 = { |
57 | | 4,7,0, |
58 | | MRB_IREP_STATIC,gem_mrblib_mruby_dir_proc_iseq_6, |
59 | | NULL,gem_mrblib_mruby_dir_proc_syms_6,gem_mrblib_mruby_dir_proc_reps_6, |
60 | | gem_mrblib_mruby_dir_proc_lv_6, |
61 | | NULL, /* debug_info */ |
62 | | 21,0,1,1,0 |
63 | | }; |
64 | | mrb_DEFINE_SYMS_VAR(gem_mrblib_mruby_dir_proc_syms_15, 1, (MRB_SYM(each), ), const); |
65 | | static const mrb_code gem_mrblib_mruby_dir_proc_iseq_15[17] = { |
66 | | 0x34,0x04,0x00,0x00,0x01,0x03,0x01,0x21,0x04,0x02,0x00,0x30,0x03,0x00,0x00,0x38,0x03,}; |
67 | | mrb_DEFINE_SYMS_VAR(gem_mrblib_mruby_dir_proc_lv_15, 2, (MRB_SYM(d), 0,), const); |
68 | | static const mrb_irep gem_mrblib_mruby_dir_proc_irep_15 = { |
69 | | 3,5,0, |
70 | | MRB_IREP_STATIC,gem_mrblib_mruby_dir_proc_iseq_15, |
71 | | NULL,gem_mrblib_mruby_dir_proc_syms_15,NULL, |
72 | | gem_mrblib_mruby_dir_proc_lv_15, |
73 | | NULL, /* debug_info */ |
74 | | 17,0,1,0,0 |
75 | | }; |
76 | | static const mrb_irep *gem_mrblib_mruby_dir_proc_reps_7[1] = { |
77 | | &gem_mrblib_mruby_dir_proc_irep_15, |
78 | | }; |
79 | | mrb_DEFINE_SYMS_VAR(gem_mrblib_mruby_dir_proc_syms_7, 1, (MRB_SYM(open), ), const); |
80 | | static const mrb_code gem_mrblib_mruby_dir_proc_iseq_7[18] = { |
81 | | 0x34,0x04,0x00,0x01,0x12,0x03,0x01,0x04,0x01,0x57,0x05,0x00,0x30,0x03,0x00,0x01,0x38,0x03,}; |
82 | | mrb_DEFINE_SYMS_VAR(gem_mrblib_mruby_dir_proc_lv_7, 2, (MRB_SYM(path), MRB_SYM(block), ), const); |
83 | | static const mrb_irep gem_mrblib_mruby_dir_proc_irep_7 = { |
84 | | 3,6,0, |
85 | | MRB_IREP_STATIC,gem_mrblib_mruby_dir_proc_iseq_7, |
86 | | NULL,gem_mrblib_mruby_dir_proc_syms_7,gem_mrblib_mruby_dir_proc_reps_7, |
87 | | gem_mrblib_mruby_dir_proc_lv_7, |
88 | | NULL, /* debug_info */ |
89 | | 18,0,1,1,0 |
90 | | }; |
91 | | mrb_DEFINE_SYMS_VAR(gem_mrblib_mruby_dir_proc_syms_8, 4, (MRB_SYM(new), MRB_SYM(call), MRB_SYM(close), MRB_SYM(IOError), ), const); |
92 | | static const mrb_code gem_mrblib_mruby_dir_proc_iseq_8[107] = { |
93 | | 0x34,0x04,0x00,0x01,0x01,0x04,0x02,0x27,0x04,0x00,0x3b,0x12,0x04,0x01,0x05,0x01,0x2f,0x04,0x00,0x01, |
94 | | 0x01,0x03,0x04,0x01,0x04,0x02,0x01,0x05,0x03,0x2f,0x04,0x01,0x01,0x2a,0x06,0x01,0x07,0x03,0x2f,0x07, |
95 | | 0x02,0x00,0x25,0x00,0x14,0x2a,0x07,0x1d,0x08,0x03,0x2b,0x07,0x08,0x26,0x08,0x00,0x03,0x25,0x00,0x03, |
96 | | 0x25,0x00,0x02,0x2c,0x07,0x2c,0x06,0x25,0x00,0x09,0x12,0x04,0x01,0x05,0x01,0x2f,0x04,0x00,0x01,0x38, |
97 | | 0x04,0x01,0x00,0x00,0x00,0x17,0x00,0x00,0x00,0x21,0x00,0x00,0x00,0x21,0x00,0x00,0x00,0x00,0x23,0x00, |
98 | | 0x00,0x00,0x2a,0x00,0x00,0x00,0x2d,}; |
99 | | mrb_DEFINE_SYMS_VAR(gem_mrblib_mruby_dir_proc_lv_8, 3, (MRB_SYM(path), MRB_SYM(block), MRB_SYM(d), ), const); |
100 | | static const mrb_irep gem_mrblib_mruby_dir_proc_irep_8 = { |
101 | | 4,9,2, |
102 | | MRB_IREP_STATIC,gem_mrblib_mruby_dir_proc_iseq_8, |
103 | | NULL,gem_mrblib_mruby_dir_proc_syms_8,NULL, |
104 | | gem_mrblib_mruby_dir_proc_lv_8, |
105 | | NULL, /* debug_info */ |
106 | | 81,0,4,0,0 |
107 | | }; |
108 | | mrb_DEFINE_SYMS_VAR(gem_mrblib_mruby_dir_proc_syms_9, 3, (MRB_SYM(getwd), MRB_SYM(_chdir), MRB_SYM(call), ), const); |
109 | | static const mrb_code gem_mrblib_mruby_dir_proc_iseq_9[79] = { |
110 | | 0x34,0x04,0x00,0x01,0x01,0x04,0x02,0x27,0x04,0x00,0x2c,0x12,0x04,0x2f,0x04,0x00,0x00,0x01,0x03,0x04, |
111 | | 0x12,0x04,0x01,0x05,0x01,0x2f,0x04,0x01,0x01,0x01,0x04,0x02,0x01,0x05,0x01,0x2f,0x04,0x02,0x01,0x2a, |
112 | | 0x06,0x12,0x07,0x01,0x08,0x03,0x2f,0x07,0x01,0x01,0x2c,0x06,0x25,0x00,0x09,0x12,0x04,0x01,0x05,0x01, |
113 | | 0x2f,0x04,0x01,0x01,0x38,0x04,0x01,0x00,0x00,0x00,0x14,0x00,0x00,0x00,0x27,0x00,0x00,0x00,0x27,}; |
114 | | mrb_DEFINE_SYMS_VAR(gem_mrblib_mruby_dir_proc_lv_9, 3, (MRB_SYM(path), MRB_SYM(block), MRB_SYM(wd), ), const); |
115 | | static const mrb_irep gem_mrblib_mruby_dir_proc_irep_9 = { |
116 | | 4,10,1, |
117 | | MRB_IREP_STATIC,gem_mrblib_mruby_dir_proc_iseq_9, |
118 | | NULL,gem_mrblib_mruby_dir_proc_syms_9,NULL, |
119 | | gem_mrblib_mruby_dir_proc_lv_9, |
120 | | NULL, /* debug_info */ |
121 | | 66,0,3,0,0 |
122 | | }; |
123 | | static const mrb_irep *gem_mrblib_mruby_dir_proc_reps_3[4] = { |
124 | | &gem_mrblib_mruby_dir_proc_irep_6, |
125 | | &gem_mrblib_mruby_dir_proc_irep_7, |
126 | | &gem_mrblib_mruby_dir_proc_irep_8, |
127 | | &gem_mrblib_mruby_dir_proc_irep_9, |
128 | | }; |
129 | | mrb_DEFINE_SYMS_VAR(gem_mrblib_mruby_dir_proc_syms_3, 12, (MRB_SYM(entries), MRB_SYM(children), MRB_SYM(foreach), MRB_SYM(open), MRB_SYM(chdir), MRB_SYM_Q(exists), MRB_SYM_Q(exist), MRB_SYM(pwd), MRB_SYM(getwd), MRB_SYM(rmdir), MRB_SYM(delete), MRB_SYM(unlink), ), const); |
130 | | static const mrb_code gem_mrblib_mruby_dir_proc_iseq_3[51] = { |
131 | | 0x63,0x01,0x58,0x02,0x00,0x5f,0x01,0x00,0x60,0x01,0x00,0x63,0x01,0x58,0x02,0x01,0x5f,0x01,0x02,0x63, |
132 | | 0x01,0x58,0x02,0x02,0x5f,0x01,0x03,0x63,0x01,0x58,0x02,0x03,0x5f,0x01,0x04,0x60,0x05,0x06,0x60,0x07, |
133 | | 0x08,0x60,0x09,0x0a,0x60,0x0b,0x0a,0x11,0x01,0x38,0x01,}; |
134 | | static const mrb_irep gem_mrblib_mruby_dir_proc_irep_3 = { |
135 | | 1,3,0, |
136 | | MRB_IREP_STATIC,gem_mrblib_mruby_dir_proc_iseq_3, |
137 | | NULL,gem_mrblib_mruby_dir_proc_syms_3,gem_mrblib_mruby_dir_proc_reps_3, |
138 | | NULL, /* lv */ |
139 | | NULL, /* debug_info */ |
140 | | 51,0,12,4,0 |
141 | | }; |
142 | | static const mrb_irep *gem_mrblib_mruby_dir_proc_reps_1[2] = { |
143 | | &gem_mrblib_mruby_dir_proc_irep_2, |
144 | | &gem_mrblib_mruby_dir_proc_irep_3, |
145 | | }; |
146 | | mrb_DEFINE_SYMS_VAR(gem_mrblib_mruby_dir_proc_syms_1, 8, (MRB_SYM(Enumerable), MRB_SYM(include), MRB_SYM(each), MRB_SYM(each_child), MRB_SYM(pos), MRB_SYM(tell), MRB_SYM_E(pos), MRB_SYM(seek), ), const); |
147 | | static const mrb_code gem_mrblib_mruby_dir_proc_iseq_1[33] = { |
148 | | 0x1d,0x02,0x00,0x2d,0x01,0x01,0x01,0x63,0x01,0x58,0x02,0x00,0x5f,0x01,0x02,0x60,0x03,0x02,0x60,0x04, |
149 | | 0x05,0x60,0x06,0x07,0x12,0x01,0x62,0x01,0x5e,0x01,0x01,0x38,0x01,}; |
150 | | static const mrb_irep gem_mrblib_mruby_dir_proc_irep_1 = { |
151 | | 1,4,0, |
152 | | MRB_IREP_STATIC,gem_mrblib_mruby_dir_proc_iseq_1, |
153 | | NULL,gem_mrblib_mruby_dir_proc_syms_1,gem_mrblib_mruby_dir_proc_reps_1, |
154 | | NULL, /* lv */ |
155 | | NULL, /* debug_info */ |
156 | | 33,0,8,2,0 |
157 | | }; |
158 | | static const mrb_irep *gem_mrblib_mruby_dir_proc_reps_0[1] = { |
159 | | &gem_mrblib_mruby_dir_proc_irep_1, |
160 | | }; |
161 | | mrb_DEFINE_SYMS_VAR(gem_mrblib_mruby_dir_proc_syms_0, 1, (MRB_SYM(Dir), ), const); |
162 | | static const mrb_code gem_mrblib_mruby_dir_proc_iseq_0[13] = { |
163 | | 0x11,0x01,0x11,0x02,0x5c,0x01,0x00,0x5e,0x01,0x00,0x38,0x01,0x69,}; |
164 | | static const mrb_irep gem_mrblib_mruby_dir_proc_irep_0 = { |
165 | | 1,3,0, |
166 | | MRB_IREP_STATIC,gem_mrblib_mruby_dir_proc_iseq_0, |
167 | | NULL,gem_mrblib_mruby_dir_proc_syms_0,gem_mrblib_mruby_dir_proc_reps_0, |
168 | | NULL, /* lv */ |
169 | | NULL, /* debug_info */ |
170 | | 13,0,1,1,0 |
171 | | }; |
172 | | static |
173 | | const struct RProc gem_mrblib_mruby_dir_proc[] = {{ |
174 | | NULL,NULL,MRB_TT_PROC,MRB_GC_RED,0,{&gem_mrblib_mruby_dir_proc_irep_0},NULL,{NULL}, |
175 | | }}; |
176 | | static void |
177 | | gem_mrblib_mruby_dir_proc_init_syms(mrb_state *mrb) |
178 | 1.74k | { |
179 | 1.74k | } |
180 | | void mrb_mruby_dir_gem_init(mrb_state *mrb); |
181 | | void mrb_mruby_dir_gem_final(mrb_state *mrb); |
182 | | |
183 | 1.74k | void GENERATED_TMP_mrb_mruby_dir_gem_init(mrb_state *mrb) { |
184 | 1.74k | gem_mrblib_mruby_dir_proc_init_syms(mrb); |
185 | 1.74k | mrb_mruby_dir_gem_init(mrb); |
186 | 1.74k | mrb_load_proc(mrb, gem_mrblib_mruby_dir_proc); |
187 | 1.74k | } |
188 | | |
189 | 1.74k | void GENERATED_TMP_mrb_mruby_dir_gem_final(mrb_state *mrb) { |
190 | 1.74k | mrb_mruby_dir_gem_final(mrb); |
191 | 1.74k | } |