1 | /**********************************************************************
|
---|
2 |
|
---|
3 | intern.h -
|
---|
4 |
|
---|
5 | $Author: knu $
|
---|
6 | $Date: 2007-03-11 17:31:53 +0900 (Sun, 11 Mar 2007) $
|
---|
7 | created at: Thu Jun 10 14:22:17 JST 1993
|
---|
8 |
|
---|
9 | Copyright (C) 1993-2003 Yukihiro Matsumoto
|
---|
10 | Copyright (C) 2000 Network Applied Communication Laboratory, Inc.
|
---|
11 | Copyright (C) 2000 Information-technology Promotion Agency, Japan
|
---|
12 |
|
---|
13 | **********************************************************************/
|
---|
14 |
|
---|
15 | /*
|
---|
16 | * Functions and variables that are used by more than one source file of
|
---|
17 | * the kernel.
|
---|
18 | */
|
---|
19 |
|
---|
20 | #define ID_ALLOCATOR 1
|
---|
21 |
|
---|
22 | /* array.c */
|
---|
23 | void rb_mem_clear _((register VALUE*, register long));
|
---|
24 | VALUE rb_assoc_new _((VALUE, VALUE));
|
---|
25 | VALUE rb_check_array_type _((VALUE));
|
---|
26 | VALUE rb_ary_new _((void));
|
---|
27 | VALUE rb_ary_new2 _((long));
|
---|
28 | VALUE rb_ary_new3 __((long,...));
|
---|
29 | VALUE rb_ary_new4 _((long, const VALUE *));
|
---|
30 | VALUE rb_ary_freeze _((VALUE));
|
---|
31 | VALUE rb_ary_aref _((int, VALUE*, VALUE));
|
---|
32 | void rb_ary_store _((VALUE, long, VALUE));
|
---|
33 | VALUE rb_ary_dup _((VALUE));
|
---|
34 | VALUE rb_ary_to_ary _((VALUE));
|
---|
35 | VALUE rb_ary_to_s _((VALUE));
|
---|
36 | VALUE rb_ary_push _((VALUE, VALUE));
|
---|
37 | VALUE rb_ary_pop _((VALUE));
|
---|
38 | VALUE rb_ary_shift _((VALUE));
|
---|
39 | VALUE rb_ary_unshift _((VALUE, VALUE));
|
---|
40 | VALUE rb_ary_entry _((VALUE, long));
|
---|
41 | VALUE rb_ary_each _((VALUE));
|
---|
42 | VALUE rb_ary_join _((VALUE, VALUE));
|
---|
43 | VALUE rb_ary_print_on _((VALUE, VALUE));
|
---|
44 | VALUE rb_ary_reverse _((VALUE));
|
---|
45 | VALUE rb_ary_sort _((VALUE));
|
---|
46 | VALUE rb_ary_sort_bang _((VALUE));
|
---|
47 | VALUE rb_ary_delete _((VALUE, VALUE));
|
---|
48 | VALUE rb_ary_delete_at _((VALUE, long));
|
---|
49 | VALUE rb_ary_clear _((VALUE));
|
---|
50 | VALUE rb_ary_plus _((VALUE, VALUE));
|
---|
51 | VALUE rb_ary_concat _((VALUE, VALUE));
|
---|
52 | VALUE rb_ary_assoc _((VALUE, VALUE));
|
---|
53 | VALUE rb_ary_rassoc _((VALUE, VALUE));
|
---|
54 | VALUE rb_ary_includes _((VALUE, VALUE));
|
---|
55 | VALUE rb_ary_cmp _((VALUE, VALUE));
|
---|
56 | VALUE rb_protect_inspect _((VALUE(*)(ANYARGS),VALUE,VALUE));
|
---|
57 | VALUE rb_inspecting_p _((VALUE));
|
---|
58 | VALUE rb_check_array_value _((VALUE));
|
---|
59 | VALUE rb_values_at _((VALUE, long, int, VALUE*, VALUE(*) _((VALUE,long))));
|
---|
60 | /* bignum.c */
|
---|
61 | VALUE rb_big_clone _((VALUE));
|
---|
62 | void rb_big_2comp _((VALUE));
|
---|
63 | VALUE rb_big_norm _((VALUE));
|
---|
64 | VALUE rb_uint2big _((unsigned long));
|
---|
65 | VALUE rb_int2big _((long));
|
---|
66 | VALUE rb_uint2inum _((unsigned long));
|
---|
67 | VALUE rb_int2inum _((long));
|
---|
68 | VALUE rb_cstr_to_inum _((const char*, int, int));
|
---|
69 | VALUE rb_str_to_inum _((VALUE, int, int));
|
---|
70 | VALUE rb_cstr2inum _((const char*, int));
|
---|
71 | VALUE rb_str2inum _((VALUE, int));
|
---|
72 | VALUE rb_big2str _((VALUE, int));
|
---|
73 | VALUE rb_big2str0 _((VALUE, int, int));
|
---|
74 | long rb_big2long _((VALUE));
|
---|
75 | #define rb_big2int(x) rb_big2long(x)
|
---|
76 | unsigned long rb_big2ulong _((VALUE));
|
---|
77 | #define rb_big2uint(x) rb_big2ulong(x)
|
---|
78 | #if HAVE_LONG_LONG
|
---|
79 | VALUE rb_ll2inum _((LONG_LONG));
|
---|
80 | VALUE rb_ull2inum _((unsigned LONG_LONG));
|
---|
81 | LONG_LONG rb_big2ll _((VALUE));
|
---|
82 | unsigned LONG_LONG rb_big2ull _((VALUE));
|
---|
83 | #endif /* HAVE_LONG_LONG */
|
---|
84 | void rb_quad_pack _((char*,VALUE));
|
---|
85 | VALUE rb_quad_unpack _((const char*,int));
|
---|
86 | VALUE rb_dbl2big _((double));
|
---|
87 | double rb_big2dbl _((VALUE));
|
---|
88 | VALUE rb_big_plus _((VALUE, VALUE));
|
---|
89 | VALUE rb_big_minus _((VALUE, VALUE));
|
---|
90 | VALUE rb_big_mul _((VALUE, VALUE));
|
---|
91 | VALUE rb_big_divmod _((VALUE, VALUE));
|
---|
92 | VALUE rb_big_pow _((VALUE, VALUE));
|
---|
93 | VALUE rb_big_and _((VALUE, VALUE));
|
---|
94 | VALUE rb_big_or _((VALUE, VALUE));
|
---|
95 | VALUE rb_big_xor _((VALUE, VALUE));
|
---|
96 | VALUE rb_big_lshift _((VALUE, VALUE));
|
---|
97 | VALUE rb_big_rand _((VALUE, double*));
|
---|
98 | /* class.c */
|
---|
99 | VALUE rb_class_boot _((VALUE));
|
---|
100 | VALUE rb_class_new _((VALUE));
|
---|
101 | VALUE rb_mod_init_copy _((VALUE, VALUE));
|
---|
102 | VALUE rb_class_init_copy _((VALUE, VALUE));
|
---|
103 | VALUE rb_singleton_class_clone _((VALUE));
|
---|
104 | void rb_singleton_class_attached _((VALUE,VALUE));
|
---|
105 | VALUE rb_make_metaclass _((VALUE, VALUE));
|
---|
106 | void rb_check_inheritable _((VALUE));
|
---|
107 | VALUE rb_class_inherited _((VALUE, VALUE));
|
---|
108 | VALUE rb_define_class_id _((ID, VALUE));
|
---|
109 | VALUE rb_module_new _((void));
|
---|
110 | VALUE rb_define_module_id _((ID));
|
---|
111 | VALUE rb_mod_included_modules _((VALUE));
|
---|
112 | VALUE rb_mod_include_p _((VALUE, VALUE));
|
---|
113 | VALUE rb_mod_ancestors _((VALUE));
|
---|
114 | VALUE rb_class_instance_methods _((int, VALUE*, VALUE));
|
---|
115 | VALUE rb_class_public_instance_methods _((int, VALUE*, VALUE));
|
---|
116 | VALUE rb_class_protected_instance_methods _((int, VALUE*, VALUE));
|
---|
117 | VALUE rb_class_private_instance_methods _((int, VALUE*, VALUE));
|
---|
118 | VALUE rb_obj_singleton_methods _((int, VALUE*, VALUE));
|
---|
119 | void rb_define_method_id _((VALUE, ID, VALUE (*)(ANYARGS), int));
|
---|
120 | void rb_frozen_class_p _((VALUE));
|
---|
121 | void rb_undef _((VALUE, ID));
|
---|
122 | void rb_define_protected_method _((VALUE, const char*, VALUE (*)(ANYARGS), int));
|
---|
123 | void rb_define_private_method _((VALUE, const char*, VALUE (*)(ANYARGS), int));
|
---|
124 | void rb_define_singleton_method _((VALUE, const char*, VALUE(*)(ANYARGS), int));
|
---|
125 | VALUE rb_singleton_class _((VALUE));
|
---|
126 | /* compar.c */
|
---|
127 | int rb_cmpint _((VALUE, VALUE, VALUE));
|
---|
128 | NORETURN(void rb_cmperr _((VALUE, VALUE)));
|
---|
129 | /* enum.c */
|
---|
130 | /* error.c */
|
---|
131 | RUBY_EXTERN int ruby_nerrs;
|
---|
132 | VALUE rb_exc_new _((VALUE, const char*, long));
|
---|
133 | VALUE rb_exc_new2 _((VALUE, const char*));
|
---|
134 | VALUE rb_exc_new3 _((VALUE, VALUE));
|
---|
135 | NORETURN(void rb_loaderror __((const char*, ...)));
|
---|
136 | NORETURN(void rb_name_error __((ID, const char*, ...)));
|
---|
137 | NORETURN(void rb_invalid_str _((const char*, const char*)));
|
---|
138 | void rb_compile_error __((const char*, ...));
|
---|
139 | void rb_compile_error_append __((const char*, ...));
|
---|
140 | NORETURN(void rb_load_fail _((const char*)));
|
---|
141 | NORETURN(void rb_error_frozen _((const char*)));
|
---|
142 | void rb_check_frozen _((VALUE));
|
---|
143 | /* eval.c */
|
---|
144 | RUBY_EXTERN struct RNode *ruby_current_node;
|
---|
145 | void ruby_set_current_source _((void));
|
---|
146 | NORETURN(void rb_exc_raise _((VALUE)));
|
---|
147 | NORETURN(void rb_exc_fatal _((VALUE)));
|
---|
148 | VALUE rb_f_exit _((int,VALUE*));
|
---|
149 | VALUE rb_f_abort _((int,VALUE*));
|
---|
150 | void rb_remove_method _((VALUE, const char*));
|
---|
151 | #define rb_disable_super(klass, name) ((void)0)
|
---|
152 | #define rb_enable_super(klass, name) ((void)0)
|
---|
153 | #define HAVE_RB_DEFINE_ALLOC_FUNC 1
|
---|
154 | void rb_define_alloc_func _((VALUE, VALUE (*)(VALUE)));
|
---|
155 | void rb_undef_alloc_func _((VALUE));
|
---|
156 | void rb_clear_cache _((void));
|
---|
157 | void rb_clear_cache_by_class _((VALUE));
|
---|
158 | void rb_alias _((VALUE, ID, ID));
|
---|
159 | void rb_attr _((VALUE,ID,int,int,int));
|
---|
160 | int rb_method_boundp _((VALUE, ID, int));
|
---|
161 | VALUE rb_dvar_defined _((ID));
|
---|
162 | VALUE rb_dvar_curr _((ID));
|
---|
163 | VALUE rb_dvar_ref _((ID));
|
---|
164 | void rb_dvar_asgn _((ID, VALUE));
|
---|
165 | void rb_dvar_push _((ID, VALUE));
|
---|
166 | VALUE *rb_svar _((int));
|
---|
167 | VALUE rb_eval_cmd _((VALUE, VALUE, int));
|
---|
168 | int rb_obj_respond_to _((VALUE, ID, int));
|
---|
169 | int rb_respond_to _((VALUE, ID));
|
---|
170 | void rb_interrupt _((void));
|
---|
171 | VALUE rb_apply _((VALUE, ID, VALUE));
|
---|
172 | void rb_backtrace _((void));
|
---|
173 | ID rb_frame_last_func _((void));
|
---|
174 | VALUE rb_obj_instance_eval _((int, VALUE*, VALUE));
|
---|
175 | VALUE rb_mod_module_eval _((int, VALUE*, VALUE));
|
---|
176 | void rb_load _((VALUE, int));
|
---|
177 | void rb_load_protect _((VALUE, int, int*));
|
---|
178 | NORETURN(void rb_jump_tag _((int)));
|
---|
179 | int rb_provided _((const char*));
|
---|
180 | void rb_provide _((const char*));
|
---|
181 | VALUE rb_f_require _((VALUE, VALUE));
|
---|
182 | VALUE rb_require_safe _((VALUE, int));
|
---|
183 | void rb_obj_call_init _((VALUE, int, VALUE*));
|
---|
184 | VALUE rb_class_new_instance _((int, VALUE*, VALUE));
|
---|
185 | VALUE rb_block_proc _((void));
|
---|
186 | VALUE rb_f_lambda _((void));
|
---|
187 | VALUE rb_proc_new _((VALUE (*)(ANYARGS/* VALUE yieldarg[, VALUE procarg] */), VALUE));
|
---|
188 | VALUE rb_protect _((VALUE (*)(VALUE), VALUE, int*));
|
---|
189 | void rb_set_end_proc _((void (*)(VALUE), VALUE));
|
---|
190 | void rb_mark_end_proc _((void));
|
---|
191 | void rb_exec_end_proc _((void));
|
---|
192 | void ruby_finalize _((void));
|
---|
193 | NORETURN(void ruby_stop _((int)));
|
---|
194 | int ruby_cleanup _((int));
|
---|
195 | int ruby_exec _((void));
|
---|
196 | void rb_gc_mark_threads _((void));
|
---|
197 | void rb_thread_start_timer _((void));
|
---|
198 | void rb_thread_stop_timer _((void));
|
---|
199 | void rb_thread_schedule _((void));
|
---|
200 | void rb_thread_wait_fd _((int));
|
---|
201 | int rb_thread_fd_writable _((int));
|
---|
202 | void rb_thread_fd_close _((int));
|
---|
203 | int rb_thread_alone _((void));
|
---|
204 | void rb_thread_polling _((void));
|
---|
205 | void rb_thread_sleep _((int));
|
---|
206 | void rb_thread_sleep_forever _((void));
|
---|
207 | VALUE rb_thread_stop _((void));
|
---|
208 | VALUE rb_thread_wakeup _((VALUE));
|
---|
209 | VALUE rb_thread_run _((VALUE));
|
---|
210 | VALUE rb_thread_kill _((VALUE));
|
---|
211 | VALUE rb_thread_create _((VALUE (*)(ANYARGS), void*));
|
---|
212 | void rb_thread_interrupt _((void));
|
---|
213 | void rb_thread_trap_eval _((VALUE, int, int));
|
---|
214 | void rb_thread_signal_raise _((int));
|
---|
215 | void rb_thread_signal_exit _((void));
|
---|
216 | int rb_thread_select _((int, fd_set *, fd_set *, fd_set *, struct timeval *));
|
---|
217 | void rb_thread_wait_for _((struct timeval));
|
---|
218 | VALUE rb_thread_current _((void));
|
---|
219 | VALUE rb_thread_main _((void));
|
---|
220 | VALUE rb_thread_local_aref _((VALUE, ID));
|
---|
221 | VALUE rb_thread_local_aset _((VALUE, ID, VALUE));
|
---|
222 | void rb_thread_atfork _((void));
|
---|
223 | VALUE rb_funcall_rescue __((VALUE, ID, int, ...));
|
---|
224 | /* file.c */
|
---|
225 | VALUE rb_file_s_expand_path _((int, VALUE *));
|
---|
226 | VALUE rb_file_expand_path _((VALUE, VALUE));
|
---|
227 | void rb_file_const _((const char*, VALUE));
|
---|
228 | int rb_find_file_ext _((VALUE*, const char* const*));
|
---|
229 | VALUE rb_find_file _((VALUE));
|
---|
230 | char *rb_path_next _((const char *));
|
---|
231 | char *rb_path_skip_prefix _((const char *));
|
---|
232 | char *rb_path_last_separator _((const char *));
|
---|
233 | char *rb_path_end _((const char *));
|
---|
234 | VALUE rb_file_directory_p _((VALUE,VALUE));
|
---|
235 | /* gc.c */
|
---|
236 | NORETURN(void rb_memerror __((void)));
|
---|
237 | int ruby_stack_check _((void));
|
---|
238 | int ruby_stack_length _((VALUE**));
|
---|
239 | char *rb_source_filename _((const char*));
|
---|
240 | void rb_gc_mark_locations _((VALUE*, VALUE*));
|
---|
241 | void rb_mark_tbl _((struct st_table*));
|
---|
242 | void rb_mark_hash _((struct st_table*));
|
---|
243 | void rb_gc_mark_maybe _((VALUE));
|
---|
244 | void rb_gc_mark _((VALUE));
|
---|
245 | void rb_gc_force_recycle _((VALUE));
|
---|
246 | void rb_gc _((void));
|
---|
247 | void rb_gc_copy_finalizer _((VALUE,VALUE));
|
---|
248 | void rb_gc_finalize_deferred _((void));
|
---|
249 | void rb_gc_call_finalizer_at_exit _((void));
|
---|
250 | VALUE rb_gc_enable _((void));
|
---|
251 | VALUE rb_gc_disable _((void));
|
---|
252 | VALUE rb_gc_start _((void));
|
---|
253 | /* hash.c */
|
---|
254 | void st_foreach_safe _((struct st_table *, int (*)(ANYARGS), unsigned long));
|
---|
255 | void rb_hash_foreach _((VALUE, int (*)(ANYARGS), VALUE));
|
---|
256 | VALUE rb_hash _((VALUE));
|
---|
257 | VALUE rb_hash_new _((void));
|
---|
258 | VALUE rb_hash_freeze _((VALUE));
|
---|
259 | VALUE rb_hash_aref _((VALUE, VALUE));
|
---|
260 | VALUE rb_hash_aset _((VALUE, VALUE, VALUE));
|
---|
261 | VALUE rb_hash_delete_if _((VALUE));
|
---|
262 | VALUE rb_hash_delete _((VALUE,VALUE));
|
---|
263 | int rb_path_check _((char*));
|
---|
264 | int rb_env_path_tainted _((void));
|
---|
265 | /* io.c */
|
---|
266 | #define rb_defout rb_stdout
|
---|
267 | RUBY_EXTERN VALUE rb_fs;
|
---|
268 | RUBY_EXTERN VALUE rb_output_fs;
|
---|
269 | RUBY_EXTERN VALUE rb_rs;
|
---|
270 | RUBY_EXTERN VALUE rb_default_rs;
|
---|
271 | RUBY_EXTERN VALUE rb_output_rs;
|
---|
272 | VALUE rb_io_write _((VALUE, VALUE));
|
---|
273 | VALUE rb_io_gets _((VALUE));
|
---|
274 | VALUE rb_io_getc _((VALUE));
|
---|
275 | VALUE rb_io_ungetc _((VALUE, VALUE));
|
---|
276 | VALUE rb_io_close _((VALUE));
|
---|
277 | VALUE rb_io_eof _((VALUE));
|
---|
278 | VALUE rb_io_binmode _((VALUE));
|
---|
279 | VALUE rb_io_addstr _((VALUE, VALUE));
|
---|
280 | VALUE rb_io_printf _((int, VALUE*, VALUE));
|
---|
281 | VALUE rb_io_print _((int, VALUE*, VALUE));
|
---|
282 | VALUE rb_io_puts _((int, VALUE*, VALUE));
|
---|
283 | VALUE rb_file_open _((const char*, const char*));
|
---|
284 | VALUE rb_gets _((void));
|
---|
285 | void rb_write_error _((const char*));
|
---|
286 | void rb_write_error2 _((const char*, long));
|
---|
287 | /* marshal.c */
|
---|
288 | VALUE rb_marshal_dump _((VALUE, VALUE));
|
---|
289 | VALUE rb_marshal_load _((VALUE));
|
---|
290 | /* numeric.c */
|
---|
291 | void rb_num_zerodiv _((void));
|
---|
292 | VALUE rb_num_coerce_bin _((VALUE, VALUE));
|
---|
293 | VALUE rb_num_coerce_cmp _((VALUE, VALUE));
|
---|
294 | VALUE rb_num_coerce_relop _((VALUE, VALUE));
|
---|
295 | VALUE rb_float_new _((double));
|
---|
296 | VALUE rb_num2fix _((VALUE));
|
---|
297 | VALUE rb_fix2str _((VALUE, int));
|
---|
298 | VALUE rb_dbl_cmp _((double, double));
|
---|
299 | /* object.c */
|
---|
300 | int rb_eql _((VALUE, VALUE));
|
---|
301 | VALUE rb_any_to_s _((VALUE));
|
---|
302 | VALUE rb_inspect _((VALUE));
|
---|
303 | VALUE rb_obj_is_instance_of _((VALUE, VALUE));
|
---|
304 | VALUE rb_obj_is_kind_of _((VALUE, VALUE));
|
---|
305 | VALUE rb_obj_alloc _((VALUE));
|
---|
306 | VALUE rb_obj_clone _((VALUE));
|
---|
307 | VALUE rb_obj_dup _((VALUE));
|
---|
308 | VALUE rb_obj_init_copy _((VALUE,VALUE));
|
---|
309 | VALUE rb_obj_taint _((VALUE));
|
---|
310 | VALUE rb_obj_tainted _((VALUE));
|
---|
311 | VALUE rb_obj_untaint _((VALUE));
|
---|
312 | VALUE rb_obj_freeze _((VALUE));
|
---|
313 | VALUE rb_obj_id _((VALUE));
|
---|
314 | VALUE rb_obj_class _((VALUE));
|
---|
315 | VALUE rb_class_real _((VALUE));
|
---|
316 | VALUE rb_class_inherited_p _((VALUE, VALUE));
|
---|
317 | VALUE rb_convert_type _((VALUE,int,const char*,const char*));
|
---|
318 | VALUE rb_check_convert_type _((VALUE,int,const char*,const char*));
|
---|
319 | VALUE rb_to_int _((VALUE));
|
---|
320 | VALUE rb_Integer _((VALUE));
|
---|
321 | VALUE rb_Float _((VALUE));
|
---|
322 | VALUE rb_String _((VALUE));
|
---|
323 | VALUE rb_Array _((VALUE));
|
---|
324 | double rb_cstr_to_dbl _((const char*, int));
|
---|
325 | double rb_str_to_dbl _((VALUE, int));
|
---|
326 | /* parse.y */
|
---|
327 | RUBY_EXTERN int ruby_sourceline;
|
---|
328 | RUBY_EXTERN char *ruby_sourcefile;
|
---|
329 | int ruby_yyparse _((void));
|
---|
330 | ID rb_id_attrset _((ID));
|
---|
331 | void rb_parser_append_print _((void));
|
---|
332 | void rb_parser_while_loop _((int, int));
|
---|
333 | int ruby_parser_stack_on_heap _((void));
|
---|
334 | void rb_gc_mark_parser _((void));
|
---|
335 | int rb_is_const_id _((ID));
|
---|
336 | int rb_is_instance_id _((ID));
|
---|
337 | int rb_is_class_id _((ID));
|
---|
338 | int rb_is_local_id _((ID));
|
---|
339 | int rb_is_junk_id _((ID));
|
---|
340 | int rb_symname_p _((const char*));
|
---|
341 | int rb_sym_interned_p _((VALUE));
|
---|
342 | VALUE rb_backref_get _((void));
|
---|
343 | void rb_backref_set _((VALUE));
|
---|
344 | VALUE rb_lastline_get _((void));
|
---|
345 | void rb_lastline_set _((VALUE));
|
---|
346 | VALUE rb_sym_all_symbols _((void));
|
---|
347 | /* process.c */
|
---|
348 | int rb_proc_exec _((const char*));
|
---|
349 | VALUE rb_f_exec _((int,VALUE*));
|
---|
350 | int rb_waitpid _((int,int*,int));
|
---|
351 | void rb_syswait _((int));
|
---|
352 | VALUE rb_proc_times _((VALUE));
|
---|
353 | VALUE rb_detach_process _((int));
|
---|
354 | /* range.c */
|
---|
355 | VALUE rb_range_new _((VALUE, VALUE, int));
|
---|
356 | VALUE rb_range_beg_len _((VALUE, long*, long*, long, int));
|
---|
357 | VALUE rb_length_by_each _((VALUE));
|
---|
358 | /* re.c */
|
---|
359 | int rb_memcmp _((const void*,const void*,long));
|
---|
360 | int rb_memcicmp _((const void*,const void*,long));
|
---|
361 | long rb_memsearch _((const void*,long,const void*,long));
|
---|
362 | VALUE rb_reg_nth_defined _((int, VALUE));
|
---|
363 | VALUE rb_reg_nth_match _((int, VALUE));
|
---|
364 | VALUE rb_reg_last_match _((VALUE));
|
---|
365 | VALUE rb_reg_match_pre _((VALUE));
|
---|
366 | VALUE rb_reg_match_post _((VALUE));
|
---|
367 | VALUE rb_reg_match_last _((VALUE));
|
---|
368 | VALUE rb_reg_new _((const char*, long, int));
|
---|
369 | VALUE rb_reg_match _((VALUE, VALUE));
|
---|
370 | VALUE rb_reg_match2 _((VALUE));
|
---|
371 | int rb_reg_options _((VALUE));
|
---|
372 | void rb_set_kcode _((const char*));
|
---|
373 | const char* rb_get_kcode _((void));
|
---|
374 | void rb_kcode_set_option _((VALUE));
|
---|
375 | void rb_kcode_reset_option _((void));
|
---|
376 | /* ruby.c */
|
---|
377 | RUBY_EXTERN VALUE rb_argv;
|
---|
378 | RUBY_EXTERN VALUE rb_argv0;
|
---|
379 | void rb_load_file _((const char*));
|
---|
380 | void ruby_script _((const char*));
|
---|
381 | void ruby_prog_init _((void));
|
---|
382 | void ruby_set_argv _((int, char**));
|
---|
383 | void ruby_process_options _((int, char**));
|
---|
384 | void ruby_load_script _((void));
|
---|
385 | void ruby_init_loadpath _((void));
|
---|
386 | void ruby_incpush _((const char*));
|
---|
387 | /* signal.c */
|
---|
388 | VALUE rb_f_kill _((int, VALUE*));
|
---|
389 | void rb_gc_mark_trap_list _((void));
|
---|
390 | #ifdef POSIX_SIGNAL
|
---|
391 | #define posix_signal ruby_posix_signal
|
---|
392 | void posix_signal _((int, RETSIGTYPE (*)(int)));
|
---|
393 | #endif
|
---|
394 | void rb_trap_exit _((void));
|
---|
395 | void rb_trap_exec _((void));
|
---|
396 | const char *ruby_signal_name _((int));
|
---|
397 | void ruby_default_signal _((int));
|
---|
398 | /* sprintf.c */
|
---|
399 | VALUE rb_f_sprintf _((int, VALUE*));
|
---|
400 | /* string.c */
|
---|
401 | VALUE rb_str_new _((const char*, long));
|
---|
402 | VALUE rb_str_new2 _((const char*));
|
---|
403 | VALUE rb_str_new3 _((VALUE));
|
---|
404 | VALUE rb_str_new4 _((VALUE));
|
---|
405 | VALUE rb_str_new5 _((VALUE, const char*, long));
|
---|
406 | VALUE rb_tainted_str_new _((const char*, long));
|
---|
407 | VALUE rb_tainted_str_new2 _((const char*));
|
---|
408 | VALUE rb_str_buf_new _((long));
|
---|
409 | VALUE rb_str_buf_new2 _((const char*));
|
---|
410 | VALUE rb_str_buf_append _((VALUE, VALUE));
|
---|
411 | VALUE rb_str_buf_cat _((VALUE, const char*, long));
|
---|
412 | VALUE rb_str_buf_cat2 _((VALUE, const char*));
|
---|
413 | VALUE rb_obj_as_string _((VALUE));
|
---|
414 | VALUE rb_check_string_type _((VALUE));
|
---|
415 | VALUE rb_str_dup _((VALUE));
|
---|
416 | VALUE rb_str_locktmp _((VALUE));
|
---|
417 | VALUE rb_str_unlocktmp _((VALUE));
|
---|
418 | VALUE rb_str_dup_frozen _((VALUE));
|
---|
419 | VALUE rb_str_plus _((VALUE, VALUE));
|
---|
420 | VALUE rb_str_times _((VALUE, VALUE));
|
---|
421 | VALUE rb_str_substr _((VALUE, long, long));
|
---|
422 | void rb_str_modify _((VALUE));
|
---|
423 | VALUE rb_str_freeze _((VALUE));
|
---|
424 | VALUE rb_str_resize _((VALUE, long));
|
---|
425 | VALUE rb_str_cat _((VALUE, const char*, long));
|
---|
426 | VALUE rb_str_cat2 _((VALUE, const char*));
|
---|
427 | VALUE rb_str_append _((VALUE, VALUE));
|
---|
428 | VALUE rb_str_concat _((VALUE, VALUE));
|
---|
429 | int rb_str_hash _((VALUE));
|
---|
430 | int rb_str_cmp _((VALUE, VALUE));
|
---|
431 | VALUE rb_str_upto _((VALUE, VALUE, int));
|
---|
432 | void rb_str_update _((VALUE, long, long, VALUE));
|
---|
433 | VALUE rb_str_inspect _((VALUE));
|
---|
434 | VALUE rb_str_dump _((VALUE));
|
---|
435 | VALUE rb_str_split _((VALUE, const char*));
|
---|
436 | void rb_str_associate _((VALUE, VALUE));
|
---|
437 | VALUE rb_str_associated _((VALUE));
|
---|
438 | void rb_str_setter _((VALUE, ID, VALUE*));
|
---|
439 | VALUE rb_str_intern _((VALUE));
|
---|
440 | /* struct.c */
|
---|
441 | VALUE rb_struct_new __((VALUE, ...));
|
---|
442 | VALUE rb_struct_define __((const char*, ...));
|
---|
443 | VALUE rb_struct_alloc _((VALUE, VALUE));
|
---|
444 | VALUE rb_struct_aref _((VALUE, VALUE));
|
---|
445 | VALUE rb_struct_aset _((VALUE, VALUE, VALUE));
|
---|
446 | VALUE rb_struct_getmember _((VALUE, ID));
|
---|
447 | VALUE rb_struct_iv_get _((VALUE, char*));
|
---|
448 | VALUE rb_struct_s_members _((VALUE));
|
---|
449 | VALUE rb_struct_members _((VALUE));
|
---|
450 | /* time.c */
|
---|
451 | VALUE rb_time_new _((time_t, time_t));
|
---|
452 | /* variable.c */
|
---|
453 | VALUE rb_mod_name _((VALUE));
|
---|
454 | VALUE rb_class_path _((VALUE));
|
---|
455 | void rb_set_class_path _((VALUE, VALUE, const char*));
|
---|
456 | VALUE rb_path2class _((const char*));
|
---|
457 | void rb_name_class _((VALUE, ID));
|
---|
458 | VALUE rb_class_name _((VALUE));
|
---|
459 | void rb_autoload _((VALUE, ID, const char*));
|
---|
460 | VALUE rb_autoload_load _((VALUE, ID));
|
---|
461 | VALUE rb_autoload_p _((VALUE, ID));
|
---|
462 | void rb_gc_mark_global_tbl _((void));
|
---|
463 | VALUE rb_f_trace_var _((int, VALUE*));
|
---|
464 | VALUE rb_f_untrace_var _((int, VALUE*));
|
---|
465 | VALUE rb_f_global_variables _((void));
|
---|
466 | void rb_alias_variable _((ID, ID));
|
---|
467 | struct st_table* rb_generic_ivar_table _((VALUE));
|
---|
468 | void rb_copy_generic_ivar _((VALUE,VALUE));
|
---|
469 | void rb_mark_generic_ivar _((VALUE));
|
---|
470 | void rb_mark_generic_ivar_tbl _((void));
|
---|
471 | void rb_free_generic_ivar _((VALUE));
|
---|
472 | VALUE rb_ivar_get _((VALUE, ID));
|
---|
473 | VALUE rb_ivar_set _((VALUE, ID, VALUE));
|
---|
474 | VALUE rb_ivar_defined _((VALUE, ID));
|
---|
475 | VALUE rb_iv_set _((VALUE, const char*, VALUE));
|
---|
476 | VALUE rb_iv_get _((VALUE, const char*));
|
---|
477 | VALUE rb_attr_get _((VALUE, ID));
|
---|
478 | VALUE rb_obj_instance_variables _((VALUE));
|
---|
479 | VALUE rb_obj_remove_instance_variable _((VALUE, VALUE));
|
---|
480 | void *rb_mod_const_at _((VALUE, void*));
|
---|
481 | void *rb_mod_const_of _((VALUE, void*));
|
---|
482 | VALUE rb_const_list _((void*));
|
---|
483 | VALUE rb_mod_constants _((VALUE));
|
---|
484 | VALUE rb_mod_remove_const _((VALUE, VALUE));
|
---|
485 | int rb_const_defined _((VALUE, ID));
|
---|
486 | int rb_const_defined_at _((VALUE, ID));
|
---|
487 | int rb_const_defined_from _((VALUE, ID));
|
---|
488 | VALUE rb_const_get _((VALUE, ID));
|
---|
489 | VALUE rb_const_get_at _((VALUE, ID));
|
---|
490 | VALUE rb_const_get_from _((VALUE, ID));
|
---|
491 | void rb_const_set _((VALUE, ID, VALUE));
|
---|
492 | VALUE rb_mod_constants _((VALUE));
|
---|
493 | VALUE rb_mod_const_missing _((VALUE,VALUE));
|
---|
494 | VALUE rb_cvar_defined _((VALUE, ID));
|
---|
495 | #define RB_CVAR_SET_4ARGS 1
|
---|
496 | void rb_cvar_set _((VALUE, ID, VALUE, int));
|
---|
497 | VALUE rb_cvar_get _((VALUE, ID));
|
---|
498 | void rb_cv_set _((VALUE, const char*, VALUE));
|
---|
499 | VALUE rb_cv_get _((VALUE, const char*));
|
---|
500 | void rb_define_class_variable _((VALUE, const char*, VALUE));
|
---|
501 | VALUE rb_mod_class_variables _((VALUE));
|
---|
502 | VALUE rb_mod_remove_cvar _((VALUE, VALUE));
|
---|
503 | /* version.c */
|
---|
504 | void ruby_show_version _((void));
|
---|
505 | void ruby_show_copyright _((void));
|
---|