00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
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 }
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
00051
00052
00053
00054 #define ID_ALLOCATOR 1
00055
00056
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
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
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
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
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
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
00199 int rb_cmpint(VALUE, VALUE, VALUE);
00200 NORETURN(void rb_cmperr(VALUE, VALUE));
00201
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
00208
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
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
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 DEPRECATED(VALUE rb_f_lambda(void));
00354 VALUE rb_block_lambda(void);
00355 VALUE rb_proc_new(VALUE (*)(ANYARGS), 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 VALUE rb_exec_recursive_paired_outer(VALUE(*)(VALUE, VALUE, int),VALUE,VALUE,VALUE);
00403
00404 VALUE rb_dir_getwd(void);
00405
00406 VALUE rb_file_s_expand_path(int, VALUE *);
00407 VALUE rb_file_expand_path(VALUE, VALUE);
00408 VALUE rb_file_s_absolute_path(int, VALUE *);
00409 VALUE rb_file_absolute_path(VALUE, VALUE);
00410 VALUE rb_file_dirname(VALUE fname);
00411 void rb_file_const(const char*, VALUE);
00412 int rb_file_load_ok(const char *);
00413 int rb_find_file_ext_safe(VALUE*, const char* const*, int);
00414 VALUE rb_find_file_safe(VALUE, int);
00415 int rb_find_file_ext(VALUE*, const char* const*);
00416 VALUE rb_find_file(VALUE);
00417 DEPRECATED(char *rb_path_next(const char *));
00418 DEPRECATED(char *rb_path_skip_prefix(const char *));
00419 DEPRECATED(char *rb_path_last_separator(const char *));
00420 DEPRECATED(char *rb_path_end(const char *));
00421 VALUE rb_file_directory_p(VALUE,VALUE);
00422 VALUE rb_str_encode_ospath(VALUE);
00423 int rb_is_absolute_path(const char *);
00424 DEPRECATED(const char *ruby_find_basename(const char *name, long *baselen, long *alllen));
00425 DEPRECATED(const char *ruby_find_extname(const char *name, long *len));
00426
00427 void ruby_set_stack_size(size_t);
00428 NORETURN(void rb_memerror(void));
00429 int ruby_stack_check(void);
00430 size_t ruby_stack_length(VALUE**);
00431 int rb_during_gc(void);
00432 void rb_gc_mark_locations(VALUE*, VALUE*);
00433 void rb_mark_tbl(struct st_table*);
00434 void rb_mark_set(struct st_table*);
00435 void rb_mark_hash(struct st_table*);
00436 void rb_gc_mark_maybe(VALUE);
00437 void rb_gc_mark(VALUE);
00438 void rb_gc_force_recycle(VALUE);
00439 void rb_gc(void);
00440 void rb_gc_copy_finalizer(VALUE,VALUE);
00441 void rb_gc_finalize_deferred(void);
00442 void rb_gc_call_finalizer_at_exit(void);
00443 VALUE rb_gc_enable(void);
00444 VALUE rb_gc_disable(void);
00445 VALUE rb_gc_start(void);
00446 #define Init_stack(addr) ruby_init_stack(addr)
00447 void rb_gc_set_params(void);
00448
00449 void st_foreach_safe(struct st_table *, int (*)(ANYARGS), st_data_t);
00450 VALUE rb_check_hash_type(VALUE);
00451 void rb_hash_foreach(VALUE, int (*)(ANYARGS), VALUE);
00452 VALUE rb_hash(VALUE);
00453 VALUE rb_hash_new(void);
00454 VALUE rb_hash_dup(VALUE);
00455 VALUE rb_hash_freeze(VALUE);
00456 VALUE rb_hash_aref(VALUE, VALUE);
00457 VALUE rb_hash_lookup(VALUE, VALUE);
00458 VALUE rb_hash_lookup2(VALUE, VALUE, VALUE);
00459 VALUE rb_hash_fetch(VALUE, VALUE);
00460 VALUE rb_hash_aset(VALUE, VALUE, VALUE);
00461 VALUE rb_hash_delete_if(VALUE);
00462 VALUE rb_hash_delete(VALUE,VALUE);
00463 typedef VALUE rb_hash_update_func(VALUE newkey, VALUE oldkey, VALUE value);
00464 VALUE rb_hash_update_by(VALUE hash1, VALUE hash2, rb_hash_update_func *func);
00465 struct st_table *rb_hash_tbl(VALUE);
00466 int rb_path_check(const char*);
00467 int rb_env_path_tainted(void);
00468 VALUE rb_env_clear(void);
00469
00470 #define rb_defout rb_stdout
00471 RUBY_EXTERN VALUE rb_fs;
00472 RUBY_EXTERN VALUE rb_output_fs;
00473 RUBY_EXTERN VALUE rb_rs;
00474 RUBY_EXTERN VALUE rb_default_rs;
00475 RUBY_EXTERN VALUE rb_output_rs;
00476 VALUE rb_io_write(VALUE, VALUE);
00477 VALUE rb_io_gets(VALUE);
00478 VALUE rb_io_getbyte(VALUE);
00479 VALUE rb_io_ungetc(VALUE, VALUE);
00480 VALUE rb_io_ungetbyte(VALUE, VALUE);
00481 VALUE rb_io_close(VALUE);
00482 VALUE rb_io_flush(VALUE);
00483 VALUE rb_io_eof(VALUE);
00484 VALUE rb_io_binmode(VALUE);
00485 VALUE rb_io_ascii8bit_binmode(VALUE);
00486 VALUE rb_io_addstr(VALUE, VALUE);
00487 VALUE rb_io_printf(int, VALUE*, VALUE);
00488 VALUE rb_io_print(int, VALUE*, VALUE);
00489 VALUE rb_io_puts(int, VALUE*, VALUE);
00490 VALUE rb_io_fdopen(int, int, const char*);
00491 VALUE rb_io_get_io(VALUE);
00492 VALUE rb_file_open(const char*, const char*);
00493 VALUE rb_file_open_str(VALUE, const char*);
00494 VALUE rb_gets(void);
00495 void rb_write_error(const char*);
00496 void rb_write_error2(const char*, long);
00497 void rb_close_before_exec(int lowfd, int maxhint, VALUE noclose_fds);
00498 int rb_pipe(int *pipes);
00499 int rb_reserved_fd_p(int fd);
00500 #define RB_RESERVED_FD_P(fd) rb_reserved_fd_p(fd)
00501 void rb_update_max_fd(int fd);
00502
00503 VALUE rb_marshal_dump(VALUE, VALUE);
00504 VALUE rb_marshal_load(VALUE);
00505 void rb_marshal_define_compat(VALUE newclass, VALUE oldclass, VALUE (*dumper)(VALUE), VALUE (*loader)(VALUE, VALUE));
00506
00507 NORETURN(void rb_num_zerodiv(void));
00508 #define RB_NUM_COERCE_FUNCS_NEED_OPID 1
00509 VALUE rb_num_coerce_bin(VALUE, VALUE, ID);
00510 VALUE rb_num_coerce_cmp(VALUE, VALUE, ID);
00511 VALUE rb_num_coerce_relop(VALUE, VALUE, ID);
00512 VALUE rb_float_new(double);
00513 VALUE rb_num2fix(VALUE);
00514 VALUE rb_fix2str(VALUE, int);
00515 VALUE rb_dbl_cmp(double, double);
00516
00517 int rb_eql(VALUE, VALUE);
00518 VALUE rb_any_to_s(VALUE);
00519 VALUE rb_inspect(VALUE);
00520 VALUE rb_obj_is_instance_of(VALUE, VALUE);
00521 VALUE rb_obj_is_kind_of(VALUE, VALUE);
00522 VALUE rb_obj_alloc(VALUE);
00523 VALUE rb_obj_clone(VALUE);
00524 VALUE rb_obj_dup(VALUE);
00525 VALUE rb_obj_init_copy(VALUE,VALUE);
00526 VALUE rb_obj_taint(VALUE);
00527 VALUE rb_obj_tainted(VALUE);
00528 VALUE rb_obj_untaint(VALUE);
00529 VALUE rb_obj_untrust(VALUE);
00530 VALUE rb_obj_untrusted(VALUE);
00531 VALUE rb_obj_trust(VALUE);
00532 VALUE rb_obj_freeze(VALUE);
00533 VALUE rb_obj_frozen_p(VALUE);
00534 VALUE rb_obj_id(VALUE);
00535 VALUE rb_obj_class(VALUE);
00536 VALUE rb_class_real(VALUE);
00537 VALUE rb_class_inherited_p(VALUE, VALUE);
00538 VALUE rb_class_superclass(VALUE);
00539 VALUE rb_class_get_superclass(VALUE);
00540 VALUE rb_convert_type(VALUE,int,const char*,const char*);
00541 VALUE rb_check_convert_type(VALUE,int,const char*,const char*);
00542 VALUE rb_check_to_integer(VALUE, const char *);
00543 VALUE rb_check_to_float(VALUE);
00544 VALUE rb_to_int(VALUE);
00545 VALUE rb_Integer(VALUE);
00546 VALUE rb_to_float(VALUE);
00547 VALUE rb_Float(VALUE);
00548 VALUE rb_String(VALUE);
00549 VALUE rb_Array(VALUE);
00550 double rb_cstr_to_dbl(const char*, int);
00551 double rb_str_to_dbl(VALUE, int);
00552
00553 RUBY_EXTERN int ruby_sourceline;
00554 RUBY_EXTERN char *ruby_sourcefile;
00555 ID rb_id_attrset(ID);
00556 void rb_gc_mark_parser(void);
00557 int rb_is_const_id(ID);
00558 int rb_is_instance_id(ID);
00559 int rb_is_class_id(ID);
00560 int rb_is_local_id(ID);
00561 int rb_is_junk_id(ID);
00562 int rb_symname_p(const char*);
00563 int rb_sym_interned_p(VALUE);
00564 void rb_gc_mark_symbols(void);
00565 VALUE rb_backref_get(void);
00566 void rb_backref_set(VALUE);
00567 VALUE rb_lastline_get(void);
00568 void rb_lastline_set(VALUE);
00569 VALUE rb_sym_all_symbols(void);
00570
00571 void rb_last_status_set(int status, rb_pid_t pid);
00572 VALUE rb_last_status_get(void);
00573 struct rb_exec_arg {
00574 int argc;
00575 VALUE *argv;
00576 const char *prog;
00577 VALUE options;
00578 VALUE redirect_fds;
00579 };
00580 int rb_proc_exec_n(int, VALUE*, const char*);
00581 int rb_proc_exec(const char*);
00582 VALUE rb_exec_arg_init(int argc, VALUE *argv, int accept_shell, struct rb_exec_arg *e);
00583 int rb_exec_arg_addopt(struct rb_exec_arg *e, VALUE key, VALUE val);
00584 void rb_exec_arg_fixup(struct rb_exec_arg *e);
00585 int rb_run_exec_options(const struct rb_exec_arg *e, struct rb_exec_arg *s);
00586 int rb_run_exec_options_err(const struct rb_exec_arg *e, struct rb_exec_arg *s, char*, size_t);
00587 int rb_exec(const struct rb_exec_arg*);
00588 int rb_exec_err(const struct rb_exec_arg*, char*, size_t);
00589 rb_pid_t rb_fork(int*, int (*)(void*), void*, VALUE);
00590 rb_pid_t rb_fork_err(int*, int (*)(void*, char*, size_t), void*, VALUE, char*, size_t);
00591 VALUE rb_f_exec(int,VALUE*);
00592 rb_pid_t rb_waitpid(rb_pid_t pid, int *status, int flags);
00593 void rb_syswait(rb_pid_t pid);
00594 rb_pid_t rb_spawn(int, VALUE*);
00595 rb_pid_t rb_spawn_err(int, VALUE*, char*, size_t);
00596 VALUE rb_proc_times(VALUE);
00597 VALUE rb_detach_process(rb_pid_t pid);
00598
00599 VALUE rb_range_new(VALUE, VALUE, int);
00600 VALUE rb_range_beg_len(VALUE, long*, long*, long, int);
00601 int rb_range_values(VALUE range, VALUE *begp, VALUE *endp, int *exclp);
00602
00603 unsigned int rb_genrand_int32(void);
00604 double rb_genrand_real(void);
00605 void rb_reset_random_seed(void);
00606 VALUE rb_random_bytes(VALUE rnd, long n);
00607 VALUE rb_random_int(VALUE rnd, VALUE max);
00608 unsigned int rb_random_int32(VALUE rnd);
00609 double rb_random_real(VALUE rnd);
00610 unsigned long rb_genrand_ulong_limited(unsigned long i);
00611
00612 #define rb_memcmp memcmp
00613 int rb_memcicmp(const void*,const void*,long);
00614 void rb_match_busy(VALUE);
00615 VALUE rb_reg_nth_defined(int, VALUE);
00616 VALUE rb_reg_nth_match(int, VALUE);
00617 int rb_reg_backref_number(VALUE match, VALUE backref);
00618 VALUE rb_reg_last_match(VALUE);
00619 VALUE rb_reg_match_pre(VALUE);
00620 VALUE rb_reg_match_post(VALUE);
00621 VALUE rb_reg_match_last(VALUE);
00622 #define HAVE_RB_REG_NEW_STR 1
00623 VALUE rb_reg_new_str(VALUE, int);
00624 VALUE rb_reg_new(const char *, long, int);
00625 VALUE rb_reg_alloc(void);
00626 VALUE rb_reg_init_str(VALUE re, VALUE s, int options);
00627 VALUE rb_reg_match(VALUE, VALUE);
00628 VALUE rb_reg_match2(VALUE);
00629 int rb_reg_options(VALUE);
00630
00631 #define rb_argv rb_get_argv()
00632 RUBY_EXTERN VALUE rb_argv0;
00633 VALUE rb_get_argv(void);
00634 void *rb_load_file(const char*);
00635 void ruby_script(const char*);
00636 void ruby_prog_init(void);
00637 void ruby_set_argv(int, char**);
00638 void *ruby_process_options(int, char**);
00639 void ruby_init_loadpath(void);
00640 void ruby_incpush(const char*);
00641
00642 VALUE rb_f_kill(int, VALUE*);
00643 void rb_gc_mark_trap_list(void);
00644 #ifdef POSIX_SIGNAL
00645 #define posix_signal ruby_posix_signal
00646 RETSIGTYPE (*posix_signal(int, RETSIGTYPE (*)(int)))(int);
00647 #endif
00648 void ruby_sig_finalize(void);
00649 void rb_trap_exit(void);
00650 void rb_trap_exec(void);
00651 const char *ruby_signal_name(int);
00652 void ruby_default_signal(int);
00653
00654 VALUE rb_f_sprintf(int, const VALUE*);
00655 PRINTF_ARGS(VALUE rb_sprintf(const char*, ...), 1, 2);
00656 VALUE rb_vsprintf(const char*, va_list);
00657 PRINTF_ARGS(VALUE rb_str_catf(VALUE, const char*, ...), 2, 3);
00658 VALUE rb_str_vcatf(VALUE, const char*, va_list);
00659 VALUE rb_str_format(int, const VALUE *, VALUE);
00660
00661 VALUE rb_str_new(const char*, long);
00662 VALUE rb_str_new_cstr(const char*);
00663 VALUE rb_str_new2(const char*);
00664 VALUE rb_str_new_shared(VALUE);
00665 VALUE rb_str_new3(VALUE);
00666 VALUE rb_str_new_frozen(VALUE);
00667 VALUE rb_str_new4(VALUE);
00668 VALUE rb_str_new_with_class(VALUE, const char*, long);
00669 VALUE rb_str_new5(VALUE, const char*, long);
00670 VALUE rb_tainted_str_new_cstr(const char*);
00671 VALUE rb_tainted_str_new(const char*, long);
00672 VALUE rb_tainted_str_new2(const char*);
00673 VALUE rb_external_str_new(const char*, long);
00674 VALUE rb_external_str_new_cstr(const char*);
00675 VALUE rb_locale_str_new(const char*, long);
00676 VALUE rb_locale_str_new_cstr(const char*);
00677 VALUE rb_filesystem_str_new(const char*, long);
00678 VALUE rb_filesystem_str_new_cstr(const char*);
00679 VALUE rb_str_buf_new(long);
00680 VALUE rb_str_buf_new_cstr(const char*);
00681 VALUE rb_str_buf_new2(const char*);
00682 VALUE rb_str_tmp_new(long);
00683 VALUE rb_usascii_str_new(const char*, long);
00684 VALUE rb_usascii_str_new_cstr(const char*);
00685 VALUE rb_usascii_str_new2(const char*);
00686 void rb_str_free(VALUE);
00687 void rb_str_shared_replace(VALUE, VALUE);
00688 VALUE rb_str_buf_append(VALUE, VALUE);
00689 VALUE rb_str_buf_cat(VALUE, const char*, long);
00690 VALUE rb_str_buf_cat2(VALUE, const char*);
00691 VALUE rb_str_buf_cat_ascii(VALUE, const char*);
00692 VALUE rb_obj_as_string(VALUE);
00693 VALUE rb_check_string_type(VALUE);
00694 VALUE rb_str_dup(VALUE);
00695 VALUE rb_str_resurrect(VALUE str);
00696 VALUE rb_str_locktmp(VALUE);
00697 VALUE rb_str_unlocktmp(VALUE);
00698 VALUE rb_str_dup_frozen(VALUE);
00699 #define rb_str_dup_frozen rb_str_new_frozen
00700 VALUE rb_str_plus(VALUE, VALUE);
00701 VALUE rb_str_times(VALUE, VALUE);
00702 long rb_str_sublen(VALUE, long);
00703 VALUE rb_str_substr(VALUE, long, long);
00704 VALUE rb_str_subseq(VALUE, long, long);
00705 void rb_str_modify(VALUE);
00706 void rb_str_modify_expand(VALUE, long);
00707 VALUE rb_str_freeze(VALUE);
00708 void rb_str_set_len(VALUE, long);
00709 VALUE rb_str_resize(VALUE, long);
00710 VALUE rb_str_cat(VALUE, const char*, long);
00711 VALUE rb_str_cat2(VALUE, const char*);
00712 VALUE rb_str_append(VALUE, VALUE);
00713 VALUE rb_str_concat(VALUE, VALUE);
00714 st_index_t rb_memhash(const void *ptr, long len);
00715 st_index_t rb_hash_start(st_index_t);
00716 st_index_t rb_hash_uint32(st_index_t, uint32_t);
00717 st_index_t rb_hash_uint(st_index_t, st_index_t);
00718 st_index_t rb_hash_end(st_index_t);
00719 #define rb_hash_uint32(h, i) st_hash_uint32((h), (i))
00720 #define rb_hash_uint(h, i) st_hash_uint((h), (i))
00721 #define rb_hash_end(h) st_hash_end(h)
00722 st_index_t rb_str_hash(VALUE);
00723 int rb_str_hash_cmp(VALUE,VALUE);
00724 int rb_str_comparable(VALUE, VALUE);
00725 int rb_str_cmp(VALUE, VALUE);
00726 VALUE rb_str_equal(VALUE str1, VALUE str2);
00727 VALUE rb_str_drop_bytes(VALUE, long);
00728 void rb_str_update(VALUE, long, long, VALUE);
00729 VALUE rb_str_replace(VALUE, VALUE);
00730 VALUE rb_str_inspect(VALUE);
00731 VALUE rb_str_dump(VALUE);
00732 VALUE rb_str_split(VALUE, const char*);
00733 void rb_str_associate(VALUE, VALUE);
00734 VALUE rb_str_associated(VALUE);
00735 void rb_str_setter(VALUE, ID, VALUE*);
00736 VALUE rb_str_intern(VALUE);
00737 VALUE rb_sym_to_s(VALUE);
00738 long rb_str_strlen(VALUE);
00739 VALUE rb_str_length(VALUE);
00740 long rb_str_offset(VALUE, long);
00741 size_t rb_str_capacity(VALUE);
00742 VALUE rb_str_ellipsize(VALUE, long);
00743 #if defined(__GNUC__) && !defined(__PCC__)
00744 #define rb_str_new_cstr(str) __extension__ ( \
00745 { \
00746 (__builtin_constant_p(str)) ? \
00747 rb_str_new((str), (long)strlen(str)) : \
00748 rb_str_new_cstr(str); \
00749 })
00750 #define rb_tainted_str_new_cstr(str) __extension__ ( \
00751 { \
00752 (__builtin_constant_p(str)) ? \
00753 rb_tainted_str_new((str), (long)strlen(str)) : \
00754 rb_tainted_str_new_cstr(str); \
00755 })
00756 #define rb_usascii_str_new_cstr(str) __extension__ ( \
00757 { \
00758 (__builtin_constant_p(str)) ? \
00759 rb_usascii_str_new((str), (long)strlen(str)) : \
00760 rb_usascii_str_new_cstr(str); \
00761 })
00762 #define rb_external_str_new_cstr(str) __extension__ ( \
00763 { \
00764 (__builtin_constant_p(str)) ? \
00765 rb_external_str_new((str), (long)strlen(str)) : \
00766 rb_external_str_new_cstr(str); \
00767 })
00768 #define rb_locale_str_new_cstr(str) __extension__ ( \
00769 { \
00770 (__builtin_constant_p(str)) ? \
00771 rb_locale_str_new((str), (long)strlen(str)) : \
00772 rb_locale_str_new_cstr(str); \
00773 })
00774 #define rb_str_buf_new_cstr(str) __extension__ ( \
00775 { \
00776 (__builtin_constant_p(str)) ? \
00777 rb_str_buf_cat(rb_str_buf_new((long)strlen(str)), \
00778 (str), (long)strlen(str)) : \
00779 rb_str_buf_new_cstr(str); \
00780 })
00781 #define rb_str_buf_cat2(str, ptr) __extension__ ( \
00782 { \
00783 (__builtin_constant_p(ptr)) ? \
00784 rb_str_buf_cat((str), (ptr), (long)strlen(ptr)) : \
00785 rb_str_buf_cat2((str), (ptr)); \
00786 })
00787 #define rb_str_cat2(str, ptr) __extension__ ( \
00788 { \
00789 (__builtin_constant_p(ptr)) ? \
00790 rb_str_cat((str), (ptr), (long)strlen(ptr)) : \
00791 rb_str_cat2((str), (ptr)); \
00792 })
00793 #define rb_exc_new2(klass, ptr) __extension__ ( \
00794 { \
00795 (__builtin_constant_p(ptr)) ? \
00796 rb_exc_new((klass), (ptr), (long)strlen(ptr)) : \
00797 rb_exc_new2((klass), (ptr)); \
00798 })
00799 #endif
00800 #define rb_str_new2 rb_str_new_cstr
00801 #define rb_str_new3 rb_str_new_shared
00802 #define rb_str_new4 rb_str_new_frozen
00803 #define rb_str_new5 rb_str_new_with_class
00804 #define rb_tainted_str_new2 rb_tainted_str_new_cstr
00805 #define rb_str_buf_new2 rb_str_buf_new_cstr
00806 #define rb_usascii_str_new2 rb_usascii_str_new_cstr
00807
00808 VALUE rb_struct_new(VALUE, ...);
00809 VALUE rb_struct_define(const char*, ...);
00810 VALUE rb_struct_alloc(VALUE, VALUE);
00811 VALUE rb_struct_initialize(VALUE, VALUE);
00812 VALUE rb_struct_aref(VALUE, VALUE);
00813 VALUE rb_struct_aset(VALUE, VALUE, VALUE);
00814 VALUE rb_struct_getmember(VALUE, ID);
00815 DEPRECATED(VALUE rb_struct_iv_get(VALUE, const char*));
00816 VALUE rb_struct_s_members(VALUE);
00817 VALUE rb_struct_members(VALUE);
00818 VALUE rb_struct_alloc_noinit(VALUE);
00819 VALUE rb_struct_define_without_accessor(const char *, VALUE, rb_alloc_func_t, ...);
00820
00821 typedef void rb_unblock_function_t(void *);
00822 typedef VALUE rb_blocking_function_t(void *);
00823 void rb_thread_check_ints(void);
00824 int rb_thread_interrupted(VALUE thval);
00825 VALUE rb_thread_blocking_region(rb_blocking_function_t *func, void *data1,
00826 rb_unblock_function_t *ubf, void *data2);
00827 #define RUBY_UBF_IO ((rb_unblock_function_t *)-1)
00828 #define RUBY_UBF_PROCESS ((rb_unblock_function_t *)-1)
00829 VALUE rb_mutex_new(void);
00830 VALUE rb_mutex_locked_p(VALUE mutex);
00831 VALUE rb_mutex_trylock(VALUE mutex);
00832 VALUE rb_mutex_lock(VALUE mutex);
00833 VALUE rb_mutex_unlock(VALUE mutex);
00834 VALUE rb_mutex_sleep(VALUE self, VALUE timeout);
00835 VALUE rb_mutex_synchronize(VALUE mutex, VALUE (*func)(VALUE arg), VALUE arg);
00836 VALUE rb_barrier_new(void);
00837 VALUE rb_barrier_wait(VALUE self);
00838 VALUE rb_barrier_release(VALUE self);
00839 VALUE rb_barrier_destroy(VALUE self);
00840
00841 VALUE rb_time_new(time_t, long);
00842 VALUE rb_time_nano_new(time_t, long);
00843 VALUE rb_time_num_new(VALUE, VALUE);
00844 struct timeval rb_time_interval(VALUE num);
00845 struct timeval rb_time_timeval(VALUE time);
00846 struct timespec rb_time_timespec(VALUE time);
00847
00848 VALUE rb_mod_name(VALUE);
00849 VALUE rb_class_path(VALUE);
00850 void rb_set_class_path(VALUE, VALUE, const char*);
00851 void rb_set_class_path_string(VALUE, VALUE, VALUE);
00852 VALUE rb_path_to_class(VALUE);
00853 VALUE rb_path2class(const char*);
00854 void rb_name_class(VALUE, ID);
00855 VALUE rb_class_name(VALUE);
00856 void rb_autoload(VALUE, ID, const char*);
00857 VALUE rb_autoload_load(VALUE, ID);
00858 VALUE rb_autoload_p(VALUE, ID);
00859 void rb_gc_mark_global_tbl(void);
00860 VALUE rb_f_trace_var(int, VALUE*);
00861 VALUE rb_f_untrace_var(int, VALUE*);
00862 VALUE rb_f_global_variables(void);
00863 void rb_alias_variable(ID, ID);
00864 struct st_table* rb_generic_ivar_table(VALUE);
00865 void rb_copy_generic_ivar(VALUE,VALUE);
00866 void rb_mark_generic_ivar(VALUE);
00867 void rb_mark_generic_ivar_tbl(void);
00868 void rb_free_generic_ivar(VALUE);
00869 VALUE rb_ivar_get(VALUE, ID);
00870 VALUE rb_ivar_set(VALUE, ID, VALUE);
00871 VALUE rb_ivar_defined(VALUE, ID);
00872 void rb_ivar_foreach(VALUE, int (*)(ANYARGS), st_data_t);
00873 st_index_t rb_ivar_count(VALUE);
00874 VALUE rb_iv_set(VALUE, const char*, VALUE);
00875 VALUE rb_iv_get(VALUE, const char*);
00876 VALUE rb_attr_get(VALUE, ID);
00877 VALUE rb_obj_instance_variables(VALUE);
00878 VALUE rb_obj_remove_instance_variable(VALUE, VALUE);
00879 void *rb_mod_const_at(VALUE, void*);
00880 void *rb_mod_const_of(VALUE, void*);
00881 VALUE rb_const_list(void*);
00882 VALUE rb_mod_constants(int, VALUE *, VALUE);
00883 VALUE rb_mod_remove_const(VALUE, VALUE);
00884 int rb_const_defined(VALUE, ID);
00885 int rb_const_defined_at(VALUE, ID);
00886 int rb_const_defined_from(VALUE, ID);
00887 VALUE rb_const_get(VALUE, ID);
00888 VALUE rb_const_get_at(VALUE, ID);
00889 VALUE rb_const_get_from(VALUE, ID);
00890 void rb_const_set(VALUE, ID, VALUE);
00891 VALUE rb_const_remove(VALUE, ID);
00892 VALUE rb_mod_const_missing(VALUE,VALUE);
00893 VALUE rb_cvar_defined(VALUE, ID);
00894 void rb_cvar_set(VALUE, ID, VALUE);
00895 VALUE rb_cvar_get(VALUE, ID);
00896 void rb_cv_set(VALUE, const char*, VALUE);
00897 VALUE rb_cv_get(VALUE, const char*);
00898 void rb_define_class_variable(VALUE, const char*, VALUE);
00899 VALUE rb_mod_class_variables(VALUE);
00900 VALUE rb_mod_remove_cvar(VALUE, VALUE);
00901
00902 void ruby_show_version(void);
00903 void ruby_show_copyright(void);
00904
00905 ID rb_frame_callee(void);
00906 VALUE rb_str_succ(VALUE);
00907 VALUE rb_time_succ(VALUE);
00908 void rb_frame_pop(void);
00909 int rb_frame_method_id_and_class(ID *idp, VALUE *klassp);
00910 VALUE rb_make_backtrace(void);
00911 VALUE rb_make_exception(int, VALUE*);
00912
00913 #if defined __GNUC__ && __GNUC__ >= 4
00914 #pragma GCC visibility pop
00915 #endif
00916
00917 #if defined(__cplusplus)
00918 #if 0
00919 {
00920 #endif
00921 }
00922 #endif
00923
00924 #endif
00925