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