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