|
Ruby
1.9.3p448(2013-06-27revision41675)
|
00001 /********************************************************************** 00002 00003 intern.h - 00004 00005 $Author: usa $ 00006 created at: Thu Jun 10 14:22:17 JST 1993 00007 00008 Copyright (C) 1993-2007 Yukihiro Matsumoto 00009 Copyright (C) 2000 Network Applied Communication Laboratory, Inc. 00010 Copyright (C) 2000 Information-technology Promotion Agency, Japan 00011 00012 **********************************************************************/ 00013 00014 #ifndef RUBY_INTERN_H 00015 #define RUBY_INTERN_H 1 00016 00017 #if defined(__cplusplus) 00018 extern "C" { 00019 #if 0 00020 } /* satisfy cc-mode */ 00021 #endif 00022 #endif 00023 00024 #include "ruby/defines.h" 00025 #ifdef RUBY_EXTCONF_H 00026 #include RUBY_EXTCONF_H 00027 #endif 00028 00029 #ifdef HAVE_STDARG_PROTOTYPES 00030 # include <stdarg.h> 00031 #else 00032 # include <varargs.h> 00033 #endif 00034 00035 #if defined(HAVE_SYS_TYPES_H) 00036 #include <sys/types.h> 00037 #endif 00038 00039 #if defined(HAVE_SYS_TIME_H) 00040 #include <sys/time.h> 00041 #endif 00042 00043 #include "ruby/st.h" 00044 00045 #if defined __GNUC__ && __GNUC__ >= 4 00046 #pragma GCC visibility push(default) 00047 #endif 00048 00049 /* 00050 * Functions and variables that are used by more than one source file of 00051 * the kernel. 00052 */ 00053 00054 #define ID_ALLOCATOR 1 00055 00056 /* array.c */ 00057 void rb_mem_clear(register VALUE*, register long); 00058 VALUE rb_assoc_new(VALUE, VALUE); 00059 VALUE rb_check_array_type(VALUE); 00060 VALUE rb_ary_new(void); 00061 VALUE rb_ary_new2(long); 00062 VALUE rb_ary_new3(long,...); 00063 VALUE rb_ary_new4(long, const VALUE *); 00064 VALUE rb_ary_tmp_new(long); 00065 void rb_ary_free(VALUE); 00066 void rb_ary_modify(VALUE); 00067 VALUE rb_ary_freeze(VALUE); 00068 VALUE rb_ary_aref(int, VALUE*, VALUE); 00069 VALUE rb_ary_subseq(VALUE, long, long); 00070 void rb_ary_store(VALUE, long, VALUE); 00071 VALUE rb_ary_dup(VALUE); 00072 VALUE rb_ary_resurrect(VALUE ary); 00073 VALUE rb_ary_to_ary(VALUE); 00074 VALUE rb_ary_to_s(VALUE); 00075 VALUE rb_ary_push(VALUE, VALUE); 00076 VALUE rb_ary_pop(VALUE); 00077 VALUE rb_ary_shift(VALUE); 00078 VALUE rb_ary_unshift(VALUE, VALUE); 00079 VALUE rb_ary_entry(VALUE, long); 00080 VALUE rb_ary_each(VALUE); 00081 VALUE rb_ary_join(VALUE, VALUE); 00082 VALUE rb_ary_reverse(VALUE); 00083 VALUE rb_ary_sort(VALUE); 00084 VALUE rb_ary_sort_bang(VALUE); 00085 VALUE rb_ary_delete(VALUE, VALUE); 00086 VALUE rb_ary_delete_at(VALUE, long); 00087 VALUE rb_ary_clear(VALUE); 00088 VALUE rb_ary_plus(VALUE, VALUE); 00089 VALUE rb_ary_concat(VALUE, VALUE); 00090 VALUE rb_ary_assoc(VALUE, VALUE); 00091 VALUE rb_ary_rassoc(VALUE, VALUE); 00092 VALUE rb_ary_includes(VALUE, VALUE); 00093 VALUE rb_ary_cmp(VALUE, VALUE); 00094 VALUE rb_ary_replace(VALUE copy, VALUE orig); 00095 VALUE rb_get_values_at(VALUE, long, int, VALUE*, VALUE(*)(VALUE,long)); 00096 VALUE rb_ary_resize(VALUE ary, long len); 00097 /* bignum.c */ 00098 VALUE rb_big_new(long, int); 00099 int rb_bigzero_p(VALUE x); 00100 VALUE rb_big_clone(VALUE); 00101 void rb_big_2comp(VALUE); 00102 VALUE rb_big_norm(VALUE); 00103 void rb_big_resize(VALUE big, long len); 00104 VALUE rb_uint2big(VALUE); 00105 VALUE rb_int2big(SIGNED_VALUE); 00106 VALUE rb_uint2inum(VALUE); 00107 VALUE rb_int2inum(SIGNED_VALUE); 00108 VALUE rb_cstr_to_inum(const char*, int, int); 00109 VALUE rb_str_to_inum(VALUE, int, int); 00110 VALUE rb_cstr2inum(const char*, int); 00111 VALUE rb_str2inum(VALUE, int); 00112 VALUE rb_big2str(VALUE, int); 00113 VALUE rb_big2str0(VALUE, int, int); 00114 SIGNED_VALUE rb_big2long(VALUE); 00115 #define rb_big2int(x) rb_big2long(x) 00116 VALUE rb_big2ulong(VALUE); 00117 #define rb_big2uint(x) rb_big2ulong(x) 00118 VALUE rb_big2ulong_pack(VALUE x); 00119 #if HAVE_LONG_LONG 00120 VALUE rb_ll2inum(LONG_LONG); 00121 VALUE rb_ull2inum(unsigned LONG_LONG); 00122 LONG_LONG rb_big2ll(VALUE); 00123 unsigned LONG_LONG rb_big2ull(VALUE); 00124 #endif /* HAVE_LONG_LONG */ 00125 DEPRECATED(void rb_quad_pack(char*,VALUE)); 00126 DEPRECATED(VALUE rb_quad_unpack(const char*,int)); 00127 void rb_big_pack(VALUE val, unsigned long *buf, long num_longs); 00128 VALUE rb_big_unpack(unsigned long *buf, long num_longs); 00129 int rb_uv_to_utf8(char[6],unsigned long); 00130 VALUE rb_dbl2big(double); 00131 double rb_big2dbl(VALUE); 00132 VALUE rb_big_cmp(VALUE, VALUE); 00133 VALUE rb_big_eq(VALUE, VALUE); 00134 VALUE rb_big_eql(VALUE, VALUE); 00135 VALUE rb_big_plus(VALUE, VALUE); 00136 VALUE rb_big_minus(VALUE, VALUE); 00137 VALUE rb_big_mul(VALUE, VALUE); 00138 VALUE rb_big_div(VALUE, VALUE); 00139 VALUE rb_big_idiv(VALUE, VALUE); 00140 VALUE rb_big_modulo(VALUE, VALUE); 00141 VALUE rb_big_divmod(VALUE, VALUE); 00142 VALUE rb_big_pow(VALUE, VALUE); 00143 VALUE rb_big_and(VALUE, VALUE); 00144 VALUE rb_big_or(VALUE, VALUE); 00145 VALUE rb_big_xor(VALUE, VALUE); 00146 VALUE rb_big_lshift(VALUE, VALUE); 00147 VALUE rb_big_rshift(VALUE, VALUE); 00148 /* rational.c */ 00149 VALUE rb_rational_raw(VALUE, VALUE); 00150 #define rb_rational_raw1(x) rb_rational_raw((x), INT2FIX(1)) 00151 #define rb_rational_raw2(x,y) rb_rational_raw((x), (y)) 00152 VALUE rb_rational_new(VALUE, VALUE); 00153 #define rb_rational_new1(x) rb_rational_new((x), INT2FIX(1)) 00154 #define rb_rational_new2(x,y) rb_rational_new((x), (y)) 00155 VALUE rb_Rational(VALUE, VALUE); 00156 #define rb_Rational1(x) rb_Rational((x), INT2FIX(1)) 00157 #define rb_Rational2(x,y) rb_Rational((x), (y)) 00158 /* complex.c */ 00159 VALUE rb_complex_raw(VALUE, VALUE); 00160 #define rb_complex_raw1(x) rb_complex_raw((x), INT2FIX(0)) 00161 #define rb_complex_raw2(x,y) rb_complex_raw((x), (y)) 00162 VALUE rb_complex_new(VALUE, VALUE); 00163 #define rb_complex_new1(x) rb_complex_new((x), INT2FIX(0)) 00164 #define rb_complex_new2(x,y) rb_complex_new((x), (y)) 00165 VALUE rb_complex_polar(VALUE, VALUE); 00166 VALUE rb_Complex(VALUE, VALUE); 00167 #define rb_Complex1(x) rb_Complex((x), INT2FIX(0)) 00168 #define rb_Complex2(x,y) rb_Complex((x), (y)) 00169 /* class.c */ 00170 VALUE rb_class_boot(VALUE); 00171 VALUE rb_class_new(VALUE); 00172 VALUE rb_mod_init_copy(VALUE, VALUE); 00173 VALUE rb_singleton_class_clone(VALUE); 00174 void rb_singleton_class_attached(VALUE,VALUE); 00175 VALUE rb_make_metaclass(VALUE, VALUE); 00176 void rb_check_inheritable(VALUE); 00177 VALUE rb_class_inherited(VALUE, VALUE); 00178 VALUE rb_define_class_id(ID, VALUE); 00179 VALUE rb_define_class_id_under(VALUE, ID, VALUE); 00180 VALUE rb_module_new(void); 00181 VALUE rb_define_module_id(ID); 00182 VALUE rb_define_module_id_under(VALUE, ID); 00183 VALUE rb_mod_included_modules(VALUE); 00184 VALUE rb_mod_include_p(VALUE, VALUE); 00185 VALUE rb_mod_ancestors(VALUE); 00186 VALUE rb_class_instance_methods(int, VALUE*, VALUE); 00187 VALUE rb_class_public_instance_methods(int, VALUE*, VALUE); 00188 VALUE rb_class_protected_instance_methods(int, VALUE*, VALUE); 00189 VALUE rb_class_private_instance_methods(int, VALUE*, VALUE); 00190 VALUE rb_obj_singleton_methods(int, VALUE*, VALUE); 00191 void rb_define_method_id(VALUE, ID, VALUE (*)(ANYARGS), int); 00192 void rb_frozen_class_p(VALUE); 00193 void rb_undef(VALUE, ID); 00194 void rb_define_protected_method(VALUE, const char*, VALUE (*)(ANYARGS), int); 00195 void rb_define_private_method(VALUE, const char*, VALUE (*)(ANYARGS), int); 00196 void rb_define_singleton_method(VALUE, const char*, VALUE(*)(ANYARGS), int); 00197 VALUE rb_singleton_class(VALUE); 00198 /* compar.c */ 00199 int rb_cmpint(VALUE, VALUE, VALUE); 00200 NORETURN(void rb_cmperr(VALUE, VALUE)); 00201 /* cont.c */ 00202 VALUE rb_fiber_new(VALUE (*)(ANYARGS), VALUE); 00203 VALUE rb_fiber_resume(VALUE fib, int argc, VALUE *args); 00204 VALUE rb_fiber_yield(int argc, VALUE *args); 00205 VALUE rb_fiber_current(void); 00206 VALUE rb_fiber_alive_p(VALUE); 00207 /* enum.c */ 00208 /* enumerator.c */ 00209 VALUE rb_enumeratorize(VALUE, VALUE, int, VALUE *); 00210 #define RETURN_ENUMERATOR(obj, argc, argv) do { \ 00211 if (!rb_block_given_p()) \ 00212 return rb_enumeratorize((obj), ID2SYM(rb_frame_this_func()),\ 00213 (argc), (argv)); \ 00214 } while (0) 00215 /* error.c */ 00216 VALUE rb_exc_new(VALUE, const char*, long); 00217 VALUE rb_exc_new2(VALUE, const char*); 00218 VALUE rb_exc_new3(VALUE, VALUE); 00219 PRINTF_ARGS(NORETURN(void rb_loaderror(const char*, ...)), 1, 2); 00220 PRINTF_ARGS(NORETURN(void rb_name_error(ID, const char*, ...)), 2, 3); 00221 NORETURN(void rb_invalid_str(const char*, const char*)); 00222 PRINTF_ARGS(void rb_compile_error(const char*, int, const char*, ...), 3, 4); 00223 PRINTF_ARGS(void rb_compile_error_with_enc(const char*, int, void *, const char*, ...), 4, 5); 00224 PRINTF_ARGS(void rb_compile_error_append(const char*, ...), 1, 2); 00225 NORETURN(void rb_load_fail(const char*)); 00226 NORETURN(void rb_error_frozen(const char*)); 00227 void rb_check_frozen(VALUE); 00228 #define rb_check_frozen_internal(obj) do { \ 00229 VALUE frozen_obj = (obj); \ 00230 if (OBJ_FROZEN(frozen_obj)) { \ 00231 rb_error_frozen(rb_obj_classname(frozen_obj)); \ 00232 } \ 00233 } while (0) 00234 #ifdef __GNUC__ 00235 #define rb_check_frozen(obj) __extension__({rb_check_frozen_internal(obj);}) 00236 #else 00237 static inline void 00238 rb_check_frozen_inline(VALUE obj) 00239 { 00240 rb_check_frozen_internal(obj); 00241 } 00242 #define rb_check_frozen(obj) rb_check_frozen_inline(obj) 00243 #endif 00244 00245 /* eval.c */ 00246 int rb_sourceline(void); 00247 const char *rb_sourcefile(void); 00248 VALUE rb_check_funcall(VALUE, ID, int, VALUE*); 00249 00250 #if defined(NFDBITS) && defined(HAVE_RB_FD_INIT) 00251 typedef struct { 00252 int maxfd; 00253 fd_set *fdset; 00254 } rb_fdset_t; 00255 00256 void rb_fd_init(rb_fdset_t *); 00257 void rb_fd_term(rb_fdset_t *); 00258 void rb_fd_zero(rb_fdset_t *); 00259 void rb_fd_set(int, rb_fdset_t *); 00260 void rb_fd_clr(int, rb_fdset_t *); 00261 int rb_fd_isset(int, const rb_fdset_t *); 00262 void rb_fd_copy(rb_fdset_t *, const fd_set *, int); 00263 void rb_fd_dup(rb_fdset_t *dst, const rb_fdset_t *src); 00264 int rb_fd_select(int, rb_fdset_t *, rb_fdset_t *, rb_fdset_t *, struct timeval *); 00265 00266 #define rb_fd_ptr(f) ((f)->fdset) 00267 #define rb_fd_max(f) ((f)->maxfd) 00268 00269 #elif defined(_WIN32) 00270 00271 typedef struct { 00272 int capa; 00273 fd_set *fdset; 00274 } rb_fdset_t; 00275 00276 void rb_fd_init(rb_fdset_t *); 00277 void rb_fd_term(rb_fdset_t *); 00278 #define rb_fd_zero(f) ((f)->fdset->fd_count = 0) 00279 void rb_fd_set(int, rb_fdset_t *); 00280 #define rb_fd_clr(n, f) rb_w32_fdclr((n), (f)->fdset) 00281 #define rb_fd_isset(n, f) rb_w32_fdisset((n), (f)->fdset) 00282 #define rb_fd_copy(d, s, n) rb_w32_fd_copy((d), (s), (n)) 00283 void rb_w32_fd_copy(rb_fdset_t *, const fd_set *, int); 00284 #define rb_fd_dup(d, s) rb_w32_fd_dup((d), (s)) 00285 void rb_w32_fd_dup(rb_fdset_t *dst, const rb_fdset_t *src); 00286 #define rb_fd_select(n, rfds, wfds, efds, timeout) rb_w32_select((n), (rfds) ? ((rb_fdset_t*)(rfds))->fdset : NULL, (wfds) ? ((rb_fdset_t*)(wfds))->fdset : NULL, (efds) ? ((rb_fdset_t*)(efds))->fdset: NULL, (timeout)) 00287 #define rb_fd_resize(n, f) ((void)(f)) 00288 00289 #define rb_fd_ptr(f) ((f)->fdset) 00290 #define rb_fd_max(f) ((f)->fdset->fd_count) 00291 00292 #else 00293 00294 typedef fd_set rb_fdset_t; 00295 #define rb_fd_zero(f) FD_ZERO(f) 00296 #define rb_fd_set(n, f) FD_SET((n), (f)) 00297 #define rb_fd_clr(n, f) FD_CLR((n), (f)) 00298 #define rb_fd_isset(n, f) FD_ISSET((n), (f)) 00299 #define rb_fd_copy(d, s, n) (*(d) = *(s)) 00300 #define rb_fd_dup(d, s) (*(d) = *(s)) 00301 #define rb_fd_resize(n, f) ((void)(f)) 00302 #define rb_fd_ptr(f) (f) 00303 #define rb_fd_init(f) FD_ZERO(f) 00304 #define rb_fd_init_copy(d, s) (*(d) = *(s)) 00305 #define rb_fd_term(f) ((void)(f)) 00306 #define rb_fd_max(f) FD_SETSIZE 00307 #define rb_fd_select(n, rfds, wfds, efds, timeout) select((n), (rfds), (wfds), (efds), (timeout)) 00308 00309 #endif 00310 00311 NORETURN(void rb_exc_raise(VALUE)); 00312 NORETURN(void rb_exc_fatal(VALUE)); 00313 VALUE rb_f_exit(int,VALUE*); 00314 VALUE rb_f_abort(int,VALUE*); 00315 void rb_remove_method(VALUE, const char*); 00316 void rb_remove_method_id(VALUE, ID); 00317 #define rb_disable_super(klass, name) ((void)0) 00318 #define rb_enable_super(klass, name) ((void)0) 00319 #define HAVE_RB_DEFINE_ALLOC_FUNC 1 00320 typedef VALUE (*rb_alloc_func_t)(VALUE); 00321 void rb_define_alloc_func(VALUE, rb_alloc_func_t); 00322 void rb_undef_alloc_func(VALUE); 00323 rb_alloc_func_t rb_get_alloc_func(VALUE); 00324 void rb_clear_cache(void); 00325 void rb_clear_cache_by_class(VALUE); 00326 void rb_alias(VALUE, ID, ID); 00327 void rb_attr(VALUE,ID,int,int,int); 00328 int rb_method_boundp(VALUE, ID, int); 00329 int rb_method_basic_definition_p(VALUE, ID); 00330 VALUE rb_eval_cmd(VALUE, VALUE, int); 00331 int rb_obj_respond_to(VALUE, ID, int); 00332 int rb_respond_to(VALUE, ID); 00333 VALUE rb_f_notimplement(int argc, VALUE *argv, VALUE obj); 00334 void rb_interrupt(void); 00335 VALUE rb_apply(VALUE, ID, VALUE); 00336 void rb_backtrace(void); 00337 ID rb_frame_this_func(void); 00338 VALUE rb_obj_instance_eval(int, VALUE*, VALUE); 00339 VALUE rb_obj_instance_exec(int, VALUE*, VALUE); 00340 VALUE rb_mod_module_eval(int, VALUE*, VALUE); 00341 VALUE rb_mod_module_exec(int, VALUE*, VALUE); 00342 void rb_load(VALUE, int); 00343 void rb_load_protect(VALUE, int, int*); 00344 NORETURN(void rb_jump_tag(int)); 00345 int rb_provided(const char*); 00346 int rb_feature_provided(const char *, const char **); 00347 void rb_provide(const char*); 00348 VALUE rb_f_require(VALUE, VALUE); 00349 VALUE rb_require_safe(VALUE, int); 00350 void rb_obj_call_init(VALUE, int, VALUE*); 00351 VALUE rb_class_new_instance(int, VALUE*, VALUE); 00352 VALUE rb_block_proc(void); 00353 VALUE rb_block_lambda(void); 00354 DEPRECATED(VALUE rb_f_lambda(void)); 00355 VALUE rb_proc_new(VALUE (*)(ANYARGS/* VALUE yieldarg[, VALUE procarg] */), VALUE); 00356 VALUE rb_obj_is_proc(VALUE); 00357 VALUE rb_proc_call(VALUE, VALUE); 00358 VALUE rb_proc_call_with_block(VALUE, int argc, VALUE *argv, VALUE); 00359 int rb_proc_arity(VALUE); 00360 VALUE rb_proc_lambda_p(VALUE); 00361 VALUE rb_binding_new(void); 00362 VALUE rb_obj_method(VALUE, VALUE); 00363 VALUE rb_obj_is_method(VALUE); 00364 VALUE rb_method_call(int, VALUE*, VALUE); 00365 VALUE rb_method_call_with_block(int, VALUE *, VALUE, VALUE); 00366 int rb_mod_method_arity(VALUE, ID); 00367 int rb_obj_method_arity(VALUE, ID); 00368 VALUE rb_protect(VALUE (*)(VALUE), VALUE, int*); 00369 void rb_set_end_proc(void (*)(VALUE), VALUE); 00370 void rb_mark_end_proc(void); 00371 void rb_exec_end_proc(void); 00372 void ruby_finalize(void); 00373 NORETURN(void ruby_stop(int)); 00374 int ruby_cleanup(volatile int); 00375 DEPRECATED(void rb_gc_mark_threads(void)); 00376 void rb_thread_schedule(void); 00377 void rb_thread_wait_fd(int); 00378 int rb_thread_fd_writable(int); 00379 void rb_thread_fd_close(int); 00380 int rb_thread_alone(void); 00381 void rb_thread_polling(void); 00382 void rb_thread_sleep(int); 00383 void rb_thread_sleep_forever(void); 00384 VALUE rb_thread_stop(void); 00385 VALUE rb_thread_wakeup(VALUE); 00386 VALUE rb_thread_wakeup_alive(VALUE); 00387 VALUE rb_thread_run(VALUE); 00388 VALUE rb_thread_kill(VALUE); 00389 VALUE rb_thread_create(VALUE (*)(ANYARGS), void*); 00390 DEPRECATED(int rb_thread_select(int, fd_set *, fd_set *, fd_set *, struct timeval *)); 00391 int rb_thread_fd_select(int, rb_fdset_t *, rb_fdset_t *, rb_fdset_t *, struct timeval *); 00392 void rb_thread_wait_for(struct timeval); 00393 VALUE rb_thread_current(void); 00394 VALUE rb_thread_main(void); 00395 VALUE rb_thread_local_aref(VALUE, ID); 00396 VALUE rb_thread_local_aset(VALUE, ID, VALUE); 00397 void rb_thread_atfork(void); 00398 void rb_thread_atfork_before_exec(void); 00399 VALUE rb_exec_recursive(VALUE(*)(VALUE, VALUE, int),VALUE,VALUE); 00400 VALUE rb_exec_recursive_paired(VALUE(*)(VALUE, VALUE, int),VALUE,VALUE,VALUE); 00401 VALUE rb_exec_recursive_outer(VALUE(*)(VALUE, VALUE, int),VALUE,VALUE); 00402 /* dir.c */ 00403 VALUE rb_dir_getwd(void); 00404 /* file.c */ 00405 VALUE rb_file_s_expand_path(int, VALUE *); 00406 VALUE rb_file_expand_path(VALUE, VALUE); 00407 VALUE rb_file_s_absolute_path(int, VALUE *); 00408 VALUE rb_file_absolute_path(VALUE, VALUE); 00409 VALUE rb_file_dirname(VALUE fname); 00410 void rb_file_const(const char*, VALUE); 00411 int rb_file_load_ok(const char *); 00412 int rb_find_file_ext_safe(VALUE*, const char* const*, int); 00413 VALUE rb_find_file_safe(VALUE, int); 00414 int rb_find_file_ext(VALUE*, const char* const*); 00415 VALUE rb_find_file(VALUE); 00416 VALUE rb_file_directory_p(VALUE,VALUE); 00417 VALUE rb_str_encode_ospath(VALUE); 00418 int rb_is_absolute_path(const char *); 00419 /* gc.c */ 00420 void ruby_set_stack_size(size_t); 00421 NORETURN(void rb_memerror(void)); 00422 int ruby_stack_check(void); 00423 size_t ruby_stack_length(VALUE**); 00424 int rb_during_gc(void); 00425 void rb_gc_mark_locations(VALUE*, VALUE*); 00426 void rb_mark_tbl(struct st_table*); 00427 void rb_mark_set(struct st_table*); 00428 void rb_mark_hash(struct st_table*); 00429 void rb_gc_mark_maybe(VALUE); 00430 void rb_gc_mark(VALUE); 00431 void rb_gc_force_recycle(VALUE); 00432 void rb_gc(void); 00433 void rb_gc_copy_finalizer(VALUE,VALUE); 00434 void rb_gc_finalize_deferred(void); 00435 void rb_gc_call_finalizer_at_exit(void); 00436 VALUE rb_gc_enable(void); 00437 VALUE rb_gc_disable(void); 00438 VALUE rb_gc_start(void); 00439 #define Init_stack(addr) ruby_init_stack(addr) 00440 void rb_gc_set_params(void); 00441 /* hash.c */ 00442 void st_foreach_safe(struct st_table *, int (*)(ANYARGS), st_data_t); 00443 VALUE rb_check_hash_type(VALUE); 00444 void rb_hash_foreach(VALUE, int (*)(ANYARGS), VALUE); 00445 VALUE rb_hash(VALUE); 00446 VALUE rb_hash_new(void); 00447 VALUE rb_hash_dup(VALUE); 00448 VALUE rb_hash_freeze(VALUE); 00449 VALUE rb_hash_aref(VALUE, VALUE); 00450 VALUE rb_hash_lookup(VALUE, VALUE); 00451 VALUE rb_hash_lookup2(VALUE, VALUE, VALUE); 00452 VALUE rb_hash_fetch(VALUE, VALUE); 00453 VALUE rb_hash_aset(VALUE, VALUE, VALUE); 00454 VALUE rb_hash_delete_if(VALUE); 00455 VALUE rb_hash_delete(VALUE,VALUE); 00456 typedef VALUE rb_hash_update_func(VALUE newkey, VALUE oldkey, VALUE value); 00457 VALUE rb_hash_update_by(VALUE hash1, VALUE hash2, rb_hash_update_func *func); 00458 struct st_table *rb_hash_tbl(VALUE); 00459 int rb_path_check(const char*); 00460 int rb_env_path_tainted(void); 00461 VALUE rb_env_clear(void); 00462 /* io.c */ 00463 #define rb_defout rb_stdout 00464 RUBY_EXTERN VALUE rb_fs; 00465 RUBY_EXTERN VALUE rb_output_fs; 00466 RUBY_EXTERN VALUE rb_rs; 00467 RUBY_EXTERN VALUE rb_default_rs; 00468 RUBY_EXTERN VALUE rb_output_rs; 00469 VALUE rb_io_write(VALUE, VALUE); 00470 VALUE rb_io_gets(VALUE); 00471 VALUE rb_io_getbyte(VALUE); 00472 VALUE rb_io_ungetc(VALUE, VALUE); 00473 VALUE rb_io_ungetbyte(VALUE, VALUE); 00474 VALUE rb_io_close(VALUE); 00475 VALUE rb_io_flush(VALUE); 00476 VALUE rb_io_eof(VALUE); 00477 VALUE rb_io_binmode(VALUE); 00478 VALUE rb_io_ascii8bit_binmode(VALUE); 00479 VALUE rb_io_addstr(VALUE, VALUE); 00480 VALUE rb_io_printf(int, VALUE*, VALUE); 00481 VALUE rb_io_print(int, VALUE*, VALUE); 00482 VALUE rb_io_puts(int, VALUE*, VALUE); 00483 VALUE rb_io_fdopen(int, int, const char*); 00484 VALUE rb_io_get_io(VALUE); 00485 VALUE rb_file_open(const char*, const char*); 00486 VALUE rb_file_open_str(VALUE, const char*); 00487 VALUE rb_gets(void); 00488 void rb_write_error(const char*); 00489 void rb_write_error2(const char*, long); 00490 void rb_close_before_exec(int lowfd, int maxhint, VALUE noclose_fds); 00491 int rb_pipe(int *pipes); 00492 int rb_reserved_fd_p(int fd); 00493 #define RB_RESERVED_FD_P(fd) rb_reserved_fd_p(fd) 00494 void rb_update_max_fd(int fd); 00495 /* marshal.c */ 00496 VALUE rb_marshal_dump(VALUE, VALUE); 00497 VALUE rb_marshal_load(VALUE); 00498 void rb_marshal_define_compat(VALUE newclass, VALUE oldclass, VALUE (*dumper)(VALUE), VALUE (*loader)(VALUE, VALUE)); 00499 /* numeric.c */ 00500 NORETURN(void rb_num_zerodiv(void)); 00501 #define RB_NUM_COERCE_FUNCS_NEED_OPID 1 00502 VALUE rb_num_coerce_bin(VALUE, VALUE, ID); 00503 VALUE rb_num_coerce_cmp(VALUE, VALUE, ID); 00504 VALUE rb_num_coerce_relop(VALUE, VALUE, ID); 00505 VALUE rb_float_new(double); 00506 VALUE rb_num2fix(VALUE); 00507 VALUE rb_fix2str(VALUE, int); 00508 VALUE rb_dbl_cmp(double, double); 00509 /* object.c */ 00510 int rb_eql(VALUE, VALUE); 00511 VALUE rb_any_to_s(VALUE); 00512 VALUE rb_inspect(VALUE); 00513 VALUE rb_obj_is_instance_of(VALUE, VALUE); 00514 VALUE rb_obj_is_kind_of(VALUE, VALUE); 00515 VALUE rb_obj_alloc(VALUE); 00516 VALUE rb_obj_clone(VALUE); 00517 VALUE rb_obj_dup(VALUE); 00518 VALUE rb_obj_init_copy(VALUE,VALUE); 00519 VALUE rb_obj_taint(VALUE); 00520 VALUE rb_obj_tainted(VALUE); 00521 VALUE rb_obj_untaint(VALUE); 00522 VALUE rb_obj_untrust(VALUE); 00523 VALUE rb_obj_untrusted(VALUE); 00524 VALUE rb_obj_trust(VALUE); 00525 VALUE rb_obj_freeze(VALUE); 00526 VALUE rb_obj_frozen_p(VALUE); 00527 VALUE rb_obj_id(VALUE); 00528 VALUE rb_obj_class(VALUE); 00529 VALUE rb_class_real(VALUE); 00530 VALUE rb_class_inherited_p(VALUE, VALUE); 00531 VALUE rb_class_superclass(VALUE); 00532 VALUE rb_class_get_superclass(VALUE); 00533 VALUE rb_convert_type(VALUE,int,const char*,const char*); 00534 VALUE rb_check_convert_type(VALUE,int,const char*,const char*); 00535 VALUE rb_check_to_integer(VALUE, const char *); 00536 VALUE rb_check_to_float(VALUE); 00537 VALUE rb_to_int(VALUE); 00538 VALUE rb_Integer(VALUE); 00539 VALUE rb_to_float(VALUE); 00540 VALUE rb_Float(VALUE); 00541 VALUE rb_String(VALUE); 00542 VALUE rb_Array(VALUE); 00543 double rb_cstr_to_dbl(const char*, int); 00544 double rb_str_to_dbl(VALUE, int); 00545 /* parse.y */ 00546 RUBY_EXTERN int ruby_sourceline; 00547 RUBY_EXTERN char *ruby_sourcefile; 00548 ID rb_id_attrset(ID); 00549 void rb_gc_mark_parser(void); 00550 int rb_is_const_id(ID); 00551 int rb_is_instance_id(ID); 00552 int rb_is_class_id(ID); 00553 int rb_is_local_id(ID); 00554 int rb_is_junk_id(ID); 00555 int rb_symname_p(const char*); 00556 int rb_sym_interned_p(VALUE); 00557 void rb_gc_mark_symbols(void); 00558 VALUE rb_backref_get(void); 00559 void rb_backref_set(VALUE); 00560 VALUE rb_lastline_get(void); 00561 void rb_lastline_set(VALUE); 00562 VALUE rb_sym_all_symbols(void); 00563 /* process.c */ 00564 void rb_last_status_set(int status, rb_pid_t pid); 00565 VALUE rb_last_status_get(void); 00566 struct rb_exec_arg { 00567 int argc; 00568 VALUE *argv; 00569 const char *prog; 00570 VALUE options; 00571 VALUE redirect_fds; 00572 }; 00573 int rb_proc_exec_n(int, VALUE*, const char*); 00574 int rb_proc_exec(const char*); 00575 VALUE rb_exec_arg_init(int argc, VALUE *argv, int accept_shell, struct rb_exec_arg *e); 00576 int rb_exec_arg_addopt(struct rb_exec_arg *e, VALUE key, VALUE val); 00577 void rb_exec_arg_fixup(struct rb_exec_arg *e); 00578 int rb_run_exec_options(const struct rb_exec_arg *e, struct rb_exec_arg *s); 00579 int rb_run_exec_options_err(const struct rb_exec_arg *e, struct rb_exec_arg *s, char*, size_t); 00580 int rb_exec(const struct rb_exec_arg*); 00581 int rb_exec_err(const struct rb_exec_arg*, char*, size_t); 00582 rb_pid_t rb_fork(int*, int (*)(void*), void*, VALUE); 00583 rb_pid_t rb_fork_err(int*, int (*)(void*, char*, size_t), void*, VALUE, char*, size_t); 00584 VALUE rb_f_exec(int,VALUE*); 00585 rb_pid_t rb_waitpid(rb_pid_t pid, int *status, int flags); 00586 void rb_syswait(rb_pid_t pid); 00587 rb_pid_t rb_spawn(int, VALUE*); 00588 rb_pid_t rb_spawn_err(int, VALUE*, char*, size_t); 00589 VALUE rb_proc_times(VALUE); 00590 VALUE rb_detach_process(rb_pid_t pid); 00591 /* range.c */ 00592 VALUE rb_range_new(VALUE, VALUE, int); 00593 VALUE rb_range_beg_len(VALUE, long*, long*, long, int); 00594 int rb_range_values(VALUE range, VALUE *begp, VALUE *endp, int *exclp); 00595 /* random.c */ 00596 unsigned int rb_genrand_int32(void); 00597 double rb_genrand_real(void); 00598 void rb_reset_random_seed(void); 00599 VALUE rb_random_bytes(VALUE rnd, long n); 00600 VALUE rb_random_int(VALUE rnd, VALUE max); 00601 unsigned int rb_random_int32(VALUE rnd); 00602 double rb_random_real(VALUE rnd); 00603 unsigned long rb_genrand_ulong_limited(unsigned long i); 00604 /* re.c */ 00605 #define rb_memcmp memcmp 00606 int rb_memcicmp(const void*,const void*,long); 00607 void rb_match_busy(VALUE); 00608 VALUE rb_reg_nth_defined(int, VALUE); 00609 VALUE rb_reg_nth_match(int, VALUE); 00610 int rb_reg_backref_number(VALUE match, VALUE backref); 00611 VALUE rb_reg_last_match(VALUE); 00612 VALUE rb_reg_match_pre(VALUE); 00613 VALUE rb_reg_match_post(VALUE); 00614 VALUE rb_reg_match_last(VALUE); 00615 #define HAVE_RB_REG_NEW_STR 1 00616 VALUE rb_reg_new_str(VALUE, int); 00617 VALUE rb_reg_new(const char *, long, int); 00618 VALUE rb_reg_alloc(void); 00619 VALUE rb_reg_init_str(VALUE re, VALUE s, int options); 00620 VALUE rb_reg_match(VALUE, VALUE); 00621 VALUE rb_reg_match2(VALUE); 00622 int rb_reg_options(VALUE); 00623 /* ruby.c */ 00624 #define rb_argv rb_get_argv() 00625 RUBY_EXTERN VALUE rb_argv0; 00626 VALUE rb_get_argv(void); 00627 void *rb_load_file(const char*); 00628 void ruby_script(const char*); 00629 void ruby_prog_init(void); 00630 void ruby_set_argv(int, char**); 00631 void *ruby_process_options(int, char**); 00632 void ruby_init_loadpath(void); 00633 void ruby_incpush(const char*); 00634 /* signal.c */ 00635 VALUE rb_f_kill(int, VALUE*); 00636 void rb_gc_mark_trap_list(void); 00637 #ifdef POSIX_SIGNAL 00638 #define posix_signal ruby_posix_signal 00639 RETSIGTYPE (*posix_signal(int, RETSIGTYPE (*)(int)))(int); 00640 #endif 00641 void ruby_sig_finalize(void); 00642 void rb_trap_exit(void); 00643 void rb_trap_exec(void); 00644 const char *ruby_signal_name(int); 00645 void ruby_default_signal(int); 00646 /* sprintf.c */ 00647 VALUE rb_f_sprintf(int, const VALUE*); 00648 PRINTF_ARGS(VALUE rb_sprintf(const char*, ...), 1, 2); 00649 VALUE rb_vsprintf(const char*, va_list); 00650 PRINTF_ARGS(VALUE rb_str_catf(VALUE, const char*, ...), 2, 3); 00651 VALUE rb_str_vcatf(VALUE, const char*, va_list); 00652 VALUE rb_str_format(int, const VALUE *, VALUE); 00653 /* string.c */ 00654 VALUE rb_str_new(const char*, long); 00655 VALUE rb_str_new_cstr(const char*); 00656 VALUE rb_str_new2(const char*); 00657 VALUE rb_str_new_shared(VALUE); 00658 VALUE rb_str_new3(VALUE); 00659 VALUE rb_str_new_frozen(VALUE); 00660 VALUE rb_str_new4(VALUE); 00661 VALUE rb_str_new_with_class(VALUE, const char*, long); 00662 VALUE rb_str_new5(VALUE, const char*, long); 00663 VALUE rb_tainted_str_new_cstr(const char*); 00664 VALUE rb_tainted_str_new(const char*, long); 00665 VALUE rb_tainted_str_new2(const char*); 00666 VALUE rb_external_str_new(const char*, long); 00667 VALUE rb_external_str_new_cstr(const char*); 00668 VALUE rb_locale_str_new(const char*, long); 00669 VALUE rb_locale_str_new_cstr(const char*); 00670 VALUE rb_filesystem_str_new(const char*, long); 00671 VALUE rb_filesystem_str_new_cstr(const char*); 00672 VALUE rb_str_buf_new(long); 00673 VALUE rb_str_buf_new_cstr(const char*); 00674 VALUE rb_str_buf_new2(const char*); 00675 VALUE rb_str_tmp_new(long); 00676 VALUE rb_usascii_str_new(const char*, long); 00677 VALUE rb_usascii_str_new_cstr(const char*); 00678 VALUE rb_usascii_str_new2(const char*); 00679 void rb_str_free(VALUE); 00680 void rb_str_shared_replace(VALUE, VALUE); 00681 VALUE rb_str_buf_append(VALUE, VALUE); 00682 VALUE rb_str_buf_cat(VALUE, const char*, long); 00683 VALUE rb_str_buf_cat2(VALUE, const char*); 00684 VALUE rb_str_buf_cat_ascii(VALUE, const char*); 00685 VALUE rb_obj_as_string(VALUE); 00686 VALUE rb_check_string_type(VALUE); 00687 VALUE rb_str_dup(VALUE); 00688 VALUE rb_str_resurrect(VALUE str); 00689 VALUE rb_str_locktmp(VALUE); 00690 VALUE rb_str_unlocktmp(VALUE); 00691 VALUE rb_str_dup_frozen(VALUE); 00692 #define rb_str_dup_frozen rb_str_new_frozen 00693 VALUE rb_str_plus(VALUE, VALUE); 00694 VALUE rb_str_times(VALUE, VALUE); 00695 long rb_str_sublen(VALUE, long); 00696 VALUE rb_str_substr(VALUE, long, long); 00697 VALUE rb_str_subseq(VALUE, long, long); 00698 void rb_str_modify(VALUE); 00699 void rb_str_modify_expand(VALUE, long); 00700 VALUE rb_str_freeze(VALUE); 00701 void rb_str_set_len(VALUE, long); 00702 VALUE rb_str_resize(VALUE, long); 00703 VALUE rb_str_cat(VALUE, const char*, long); 00704 VALUE rb_str_cat2(VALUE, const char*); 00705 VALUE rb_str_append(VALUE, VALUE); 00706 VALUE rb_str_concat(VALUE, VALUE); 00707 st_index_t rb_memhash(const void *ptr, long len); 00708 st_index_t rb_hash_start(st_index_t); 00709 st_index_t rb_hash_uint32(st_index_t, uint32_t); 00710 st_index_t rb_hash_uint(st_index_t, st_index_t); 00711 st_index_t rb_hash_end(st_index_t); 00712 #define rb_hash_uint32(h, i) st_hash_uint32((h), (i)) 00713 #define rb_hash_uint(h, i) st_hash_uint((h), (i)) 00714 #define rb_hash_end(h) st_hash_end(h) 00715 st_index_t rb_str_hash(VALUE); 00716 int rb_str_hash_cmp(VALUE,VALUE); 00717 int rb_str_comparable(VALUE, VALUE); 00718 int rb_str_cmp(VALUE, VALUE); 00719 VALUE rb_str_equal(VALUE str1, VALUE str2); 00720 VALUE rb_str_drop_bytes(VALUE, long); 00721 void rb_str_update(VALUE, long, long, VALUE); 00722 VALUE rb_str_replace(VALUE, VALUE); 00723 VALUE rb_str_inspect(VALUE); 00724 VALUE rb_str_dump(VALUE); 00725 VALUE rb_str_split(VALUE, const char*); 00726 void rb_str_associate(VALUE, VALUE); 00727 VALUE rb_str_associated(VALUE); 00728 void rb_str_setter(VALUE, ID, VALUE*); 00729 VALUE rb_str_intern(VALUE); 00730 VALUE rb_sym_to_s(VALUE); 00731 long rb_str_strlen(VALUE); 00732 VALUE rb_str_length(VALUE); 00733 long rb_str_offset(VALUE, long); 00734 size_t rb_str_capacity(VALUE); 00735 VALUE rb_str_ellipsize(VALUE, long); 00736 #if defined(__GNUC__) && !defined(__PCC__) 00737 #define rb_str_new_cstr(str) __extension__ ( \ 00738 { \ 00739 (__builtin_constant_p(str)) ? \ 00740 rb_str_new((str), (long)strlen(str)) : \ 00741 rb_str_new_cstr(str); \ 00742 }) 00743 #define rb_tainted_str_new_cstr(str) __extension__ ( \ 00744 { \ 00745 (__builtin_constant_p(str)) ? \ 00746 rb_tainted_str_new((str), (long)strlen(str)) : \ 00747 rb_tainted_str_new_cstr(str); \ 00748 }) 00749 #define rb_usascii_str_new_cstr(str) __extension__ ( \ 00750 { \ 00751 (__builtin_constant_p(str)) ? \ 00752 rb_usascii_str_new((str), (long)strlen(str)) : \ 00753 rb_usascii_str_new_cstr(str); \ 00754 }) 00755 #define rb_external_str_new_cstr(str) __extension__ ( \ 00756 { \ 00757 (__builtin_constant_p(str)) ? \ 00758 rb_external_str_new((str), (long)strlen(str)) : \ 00759 rb_external_str_new_cstr(str); \ 00760 }) 00761 #define rb_locale_str_new_cstr(str) __extension__ ( \ 00762 { \ 00763 (__builtin_constant_p(str)) ? \ 00764 rb_locale_str_new((str), (long)strlen(str)) : \ 00765 rb_locale_str_new_cstr(str); \ 00766 }) 00767 #define rb_str_buf_new_cstr(str) __extension__ ( \ 00768 { \ 00769 (__builtin_constant_p(str)) ? \ 00770 rb_str_buf_cat(rb_str_buf_new((long)strlen(str)), \ 00771 (str), (long)strlen(str)) : \ 00772 rb_str_buf_new_cstr(str); \ 00773 }) 00774 #define rb_str_buf_cat2(str, ptr) __extension__ ( \ 00775 { \ 00776 (__builtin_constant_p(ptr)) ? \ 00777 rb_str_buf_cat((str), (ptr), (long)strlen(ptr)) : \ 00778 rb_str_buf_cat2((str), (ptr)); \ 00779 }) 00780 #define rb_str_cat2(str, ptr) __extension__ ( \ 00781 { \ 00782 (__builtin_constant_p(ptr)) ? \ 00783 rb_str_cat((str), (ptr), (long)strlen(ptr)) : \ 00784 rb_str_cat2((str), (ptr)); \ 00785 }) 00786 #define rb_exc_new2(klass, ptr) __extension__ ( \ 00787 { \ 00788 (__builtin_constant_p(ptr)) ? \ 00789 rb_exc_new((klass), (ptr), (long)strlen(ptr)) : \ 00790 rb_exc_new2((klass), (ptr)); \ 00791 }) 00792 #endif 00793 #define rb_str_new2 rb_str_new_cstr 00794 #define rb_str_new3 rb_str_new_shared 00795 #define rb_str_new4 rb_str_new_frozen 00796 #define rb_str_new5 rb_str_new_with_class 00797 #define rb_tainted_str_new2 rb_tainted_str_new_cstr 00798 #define rb_str_buf_new2 rb_str_buf_new_cstr 00799 #define rb_usascii_str_new2 rb_usascii_str_new_cstr 00800 /* struct.c */ 00801 VALUE rb_struct_new(VALUE, ...); 00802 VALUE rb_struct_define(const char*, ...); 00803 VALUE rb_struct_alloc(VALUE, VALUE); 00804 VALUE rb_struct_initialize(VALUE, VALUE); 00805 VALUE rb_struct_aref(VALUE, VALUE); 00806 VALUE rb_struct_aset(VALUE, VALUE, VALUE); 00807 VALUE rb_struct_getmember(VALUE, ID); 00808 DEPRECATED(VALUE rb_struct_iv_get(VALUE, const char*)); 00809 VALUE rb_struct_s_members(VALUE); 00810 VALUE rb_struct_members(VALUE); 00811 VALUE rb_struct_alloc_noinit(VALUE); 00812 VALUE rb_struct_define_without_accessor(const char *, VALUE, rb_alloc_func_t, ...); 00813 /* thread.c */ 00814 typedef void rb_unblock_function_t(void *); 00815 typedef VALUE rb_blocking_function_t(void *); 00816 void rb_thread_check_ints(void); 00817 int rb_thread_interrupted(VALUE thval); 00818 VALUE rb_thread_blocking_region(rb_blocking_function_t *func, void *data1, 00819 rb_unblock_function_t *ubf, void *data2); 00820 #define RUBY_UBF_IO ((rb_unblock_function_t *)-1) 00821 #define RUBY_UBF_PROCESS ((rb_unblock_function_t *)-1) 00822 VALUE rb_mutex_new(void); 00823 VALUE rb_mutex_locked_p(VALUE mutex); 00824 VALUE rb_mutex_trylock(VALUE mutex); 00825 VALUE rb_mutex_lock(VALUE mutex); 00826 VALUE rb_mutex_unlock(VALUE mutex); 00827 VALUE rb_mutex_sleep(VALUE self, VALUE timeout); 00828 VALUE rb_mutex_synchronize(VALUE mutex, VALUE (*func)(VALUE arg), VALUE arg); 00829 VALUE rb_barrier_new(void); 00830 VALUE rb_barrier_wait(VALUE self); 00831 VALUE rb_barrier_release(VALUE self); 00832 VALUE rb_barrier_destroy(VALUE self); 00833 /* time.c */ 00834 VALUE rb_time_new(time_t, long); 00835 VALUE rb_time_nano_new(time_t, long); 00836 VALUE rb_time_num_new(VALUE, VALUE); 00837 struct timeval rb_time_interval(VALUE num); 00838 struct timeval rb_time_timeval(VALUE time); 00839 struct timespec rb_time_timespec(VALUE time); 00840 /* variable.c */ 00841 VALUE rb_mod_name(VALUE); 00842 VALUE rb_class_path(VALUE); 00843 void rb_set_class_path(VALUE, VALUE, const char*); 00844 void rb_set_class_path_string(VALUE, VALUE, VALUE); 00845 VALUE rb_path_to_class(VALUE); 00846 VALUE rb_path2class(const char*); 00847 void rb_name_class(VALUE, ID); 00848 VALUE rb_class_name(VALUE); 00849 void rb_autoload(VALUE, ID, const char*); 00850 VALUE rb_autoload_load(VALUE, ID); 00851 VALUE rb_autoload_p(VALUE, ID); 00852 void rb_gc_mark_global_tbl(void); 00853 VALUE rb_f_trace_var(int, VALUE*); 00854 VALUE rb_f_untrace_var(int, VALUE*); 00855 VALUE rb_f_global_variables(void); 00856 void rb_alias_variable(ID, ID); 00857 struct st_table* rb_generic_ivar_table(VALUE); 00858 void rb_copy_generic_ivar(VALUE,VALUE); 00859 void rb_mark_generic_ivar(VALUE); 00860 void rb_mark_generic_ivar_tbl(void); 00861 void rb_free_generic_ivar(VALUE); 00862 VALUE rb_ivar_get(VALUE, ID); 00863 VALUE rb_ivar_set(VALUE, ID, VALUE); 00864 VALUE rb_ivar_defined(VALUE, ID); 00865 void rb_ivar_foreach(VALUE, int (*)(ANYARGS), st_data_t); 00866 st_index_t rb_ivar_count(VALUE); 00867 VALUE rb_iv_set(VALUE, const char*, VALUE); 00868 VALUE rb_iv_get(VALUE, const char*); 00869 VALUE rb_attr_get(VALUE, ID); 00870 VALUE rb_obj_instance_variables(VALUE); 00871 VALUE rb_obj_remove_instance_variable(VALUE, VALUE); 00872 void *rb_mod_const_at(VALUE, void*); 00873 void *rb_mod_const_of(VALUE, void*); 00874 VALUE rb_const_list(void*); 00875 VALUE rb_mod_constants(int, VALUE *, VALUE); 00876 VALUE rb_mod_remove_const(VALUE, VALUE); 00877 int rb_const_defined(VALUE, ID); 00878 int rb_const_defined_at(VALUE, ID); 00879 int rb_const_defined_from(VALUE, ID); 00880 VALUE rb_const_get(VALUE, ID); 00881 VALUE rb_const_get_at(VALUE, ID); 00882 VALUE rb_const_get_from(VALUE, ID); 00883 void rb_const_set(VALUE, ID, VALUE); 00884 VALUE rb_const_remove(VALUE, ID); 00885 VALUE rb_mod_const_missing(VALUE,VALUE); 00886 VALUE rb_cvar_defined(VALUE, ID); 00887 void rb_cvar_set(VALUE, ID, VALUE); 00888 VALUE rb_cvar_get(VALUE, ID); 00889 void rb_cv_set(VALUE, const char*, VALUE); 00890 VALUE rb_cv_get(VALUE, const char*); 00891 void rb_define_class_variable(VALUE, const char*, VALUE); 00892 VALUE rb_mod_class_variables(VALUE); 00893 VALUE rb_mod_remove_cvar(VALUE, VALUE); 00894 /* version.c */ 00895 void ruby_show_version(void); 00896 void ruby_show_copyright(void); 00897 00898 ID rb_frame_callee(void); 00899 VALUE rb_str_succ(VALUE); 00900 VALUE rb_time_succ(VALUE); 00901 void rb_frame_pop(void); 00902 int rb_frame_method_id_and_class(ID *idp, VALUE *klassp); 00903 VALUE rb_make_backtrace(void); 00904 VALUE rb_make_exception(int, VALUE*); 00905 00906 #if defined __GNUC__ && __GNUC__ >= 4 00907 #pragma GCC visibility pop 00908 #endif 00909 00910 #if defined(__cplusplus) 00911 #if 0 00912 { /* satisfy cc-mode */ 00913 #endif 00914 } /* extern "C" { */ 00915 #endif 00916 00917 #endif /* RUBY_INTERN_H */ 00918
1.7.6.1