15 #define RUBY_INTERN_H 1    17 #if defined(__cplusplus)    26 #include RUBY_EXTCONF_H    29 #ifdef HAVE_STDARG_PROTOTYPES    44 #define UNLIMITED_ARGUMENTS (-1)    90 #define rb_ary_new2 rb_ary_new_capa    91 #define rb_ary_new3 rb_ary_new_from_args    92 #define rb_ary_new4 rb_ary_new_from_values   106 #define rb_big2int(x) rb_big2long(x)   108 #define rb_big2uint(x) rb_big2ulong(x)   110 LONG_LONG rb_big2ll(
VALUE);
   111 unsigned LONG_LONG rb_big2ull(
VALUE);
   138 #define INTEGER_PACK_MSWORD_FIRST       0x01   139 #define INTEGER_PACK_LSWORD_FIRST       0x02   140 #define INTEGER_PACK_MSBYTE_FIRST       0x10   141 #define INTEGER_PACK_LSBYTE_FIRST       0x20   142 #define INTEGER_PACK_NATIVE_BYTE_ORDER  0x40   143 #define INTEGER_PACK_2COMP              0x80   144 #define INTEGER_PACK_FORCE_GENERIC_IMPLEMENTATION     0x400   146 #define INTEGER_PACK_FORCE_BIGNUM       0x100   147 #define INTEGER_PACK_NEGATIVE           0x200   149 #define INTEGER_PACK_LITTLE_ENDIAN \   150     (INTEGER_PACK_LSWORD_FIRST | \   151      INTEGER_PACK_LSBYTE_FIRST)   152 #define INTEGER_PACK_BIG_ENDIAN \   153     (INTEGER_PACK_MSWORD_FIRST | \   154      INTEGER_PACK_MSBYTE_FIRST)   163 #define rb_rational_raw1(x) rb_rational_raw((x), INT2FIX(1))   164 #define rb_rational_raw2(x,y) rb_rational_raw((x), (y))   166 #define rb_rational_new1(x) rb_rational_new((x), INT2FIX(1))   167 #define rb_rational_new2(x,y) rb_rational_new((x), (y))   169 #define rb_Rational1(x) rb_Rational((x), INT2FIX(1))   170 #define rb_Rational2(x,y) rb_Rational((x), (y))   177 #define rb_complex_raw1(x) rb_complex_raw((x), INT2FIX(0))   178 #define rb_complex_raw2(x,y) rb_complex_raw((x), (y))   180 #define rb_complex_new1(x) rb_complex_new((x), INT2FIX(0))   181 #define rb_complex_new2(x,y) rb_complex_new((x), (y))   184 #define rb_Complex1(x) rb_Complex((x), INT2FIX(0))   185 #define rb_Complex2(x,y) rb_Complex((x), (y))   228 #define rb_enumeratorize_with_size(obj, id, argc, argv, size_fn) \   229     rb_enumeratorize_with_size(obj, id, argc, argv, (rb_enumerator_size_func *)(size_fn))   231 #define SIZED_ENUMERATOR(obj, argc, argv, size_fn) \   232     rb_enumeratorize_with_size((obj), ID2SYM(rb_frame_this_func()), \   233                                (argc), (argv), (size_fn))   234 #define RETURN_SIZED_ENUMERATOR(obj, argc, argv, size_fn) do {          \   235         if (!rb_block_given_p())                                        \   236             return SIZED_ENUMERATOR(obj, argc, argv, size_fn);          \   238 #define RETURN_ENUMERATOR(obj, argc, argv) RETURN_SIZED_ENUMERATOR(obj, argc, argv, 0)   243 #define rb_exc_new2 rb_exc_new_cstr   244 #define rb_exc_new3 rb_exc_new_str   255 #define rb_check_frozen_internal(obj) do { \   256         VALUE frozen_obj = (obj); \   257         if (OBJ_FROZEN(frozen_obj)) { \   258             rb_error_frozen_object(frozen_obj); \   261 #define rb_check_trusted_internal(obj) ((void) 0)   263 #define rb_check_frozen(obj) __extension__({rb_check_frozen_internal(obj);})   264 #define rb_check_trusted(obj) __extension__({rb_check_trusted_internal(obj);})   267 rb_check_frozen_inline(
VALUE obj)
   271 #define rb_check_frozen(obj) rb_check_frozen_inline(obj)   273 rb_check_trusted_inline(
VALUE obj)
   277 #define rb_check_trusted(obj) rb_check_trusted_inline(obj)   281 #define RB_OBJ_INIT_COPY(obj, orig) \   282     ((obj) != (orig) && (rb_obj_init_copy((obj), (orig)), 1))   283 #define OBJ_INIT_COPY(obj, orig) RB_OBJ_INIT_COPY(obj, orig)   298 #define rb_check_arity rb_check_arity    300 #if defined(NFDBITS) && defined(HAVE_RB_FD_INIT)   318 #define rb_fd_ptr(f)    ((f)->fdset)   319 #define rb_fd_max(f)    ((f)->maxfd)   321 #elif defined(_WIN32)   330 #define rb_fd_zero(f)           ((f)->fdset->fd_count = 0)   332 #define rb_fd_clr(n, f)         rb_w32_fdclr((n), (f)->fdset)   333 #define rb_fd_isset(n, f)       rb_w32_fdisset((n), (f)->fdset)   334 #define rb_fd_copy(d, s, n)     rb_w32_fd_copy((d), (s), (n))   336 #define rb_fd_dup(d, s) rb_w32_fd_dup((d), (s))   338 #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))   339 #define rb_fd_resize(n, f)      ((void)(f))   341 #define rb_fd_ptr(f)    ((f)->fdset)   342 #define rb_fd_max(f)    ((f)->fdset->fd_count)   347 #define rb_fd_zero(f)   FD_ZERO(f)   348 #define rb_fd_set(n, f) FD_SET((n), (f))   349 #define rb_fd_clr(n, f) FD_CLR((n), (f))   350 #define rb_fd_isset(n, f) FD_ISSET((n), (f))   351 #define rb_fd_copy(d, s, n) (*(d) = *(s))   352 #define rb_fd_dup(d, s) (*(d) = *(s))   353 #define rb_fd_resize(n, f)      ((void)(f))   354 #define rb_fd_ptr(f)    (f)   355 #define rb_fd_init(f)   FD_ZERO(f)   356 #define rb_fd_init_copy(d, s) (*(d) = *(s))   357 #define rb_fd_term(f)   ((void)(f))   358 #define rb_fd_max(f)    FD_SETSIZE   359 #define rb_fd_select(n, rfds, wfds, efds, timeout)      select((n), (rfds), (wfds), (efds), (timeout))   369 #define HAVE_RB_DEFINE_ALLOC_FUNC 1   384 #if !defined(RUBY_EXPORT) && defined(_WIN32)   386 #define rb_f_notimplement (*rb_f_notimplement_)   421 VALUE 
rb_protect(VALUE (*)(VALUE), VALUE, 
int*);
   513 #define rb_defout rb_stdout   548 #define RB_RESERVED_FD_P(fd) rb_reserved_fd_p(fd)   554 void rb_marshal_define_compat(VALUE newclass, VALUE oldclass, VALUE (*dumper)(VALUE), VALUE (*loader)(VALUE, VALUE));
   557 #define RB_NUM_COERCE_FUNCS_NEED_OPID 1   625 rb_pid_t 
rb_spawn(
int, 
const VALUE*);
   626 rb_pid_t 
rb_spawn_err(
int, 
const VALUE*, 
char*, 
size_t);
   644 #define rb_memcmp memcmp   654 #define HAVE_RB_REG_NEW_STR 1   663 #define rb_argv rb_get_argv()   671 #define posix_signal ruby_posix_signal   672 RETSIGTYPE (*posix_signal(
int, RETSIGTYPE (*)(
int)))(int);
   724 #define rb_str_dup_frozen rb_str_new_frozen   746 #define rb_hash_uint32(h, i) st_hash_uint32((h), (i))   747 #define rb_hash_uint(h, i) st_hash_uint((h), (i))   748 #define rb_hash_end(h) st_hash_end(h)   772 #ifdef HAVE_BUILTIN___BUILTIN_CONSTANT_P   773 #define rb_str_new(str, len) RB_GNUC_EXTENSION_BLOCK(   \   774     (__builtin_constant_p(str) && __builtin_constant_p(len)) ? \   775         rb_str_new_static((str), (len)) : \   776         rb_str_new((str), (len))          \   778 #define rb_str_new_cstr(str) RB_GNUC_EXTENSION_BLOCK(   \   779     (__builtin_constant_p(str)) ?               \   780         rb_str_new_static((str), (long)strlen(str)) : \   781         rb_str_new_cstr(str)                    \   783 #define rb_usascii_str_new(str, len) RB_GNUC_EXTENSION_BLOCK( \   784     (__builtin_constant_p(str) && __builtin_constant_p(len)) ? \   785         rb_usascii_str_new_static((str), (len)) : \   786         rb_usascii_str_new((str), (len))          \   788 #define rb_utf8_str_new(str, len) RB_GNUC_EXTENSION_BLOCK( \   789     (__builtin_constant_p(str) && __builtin_constant_p(len)) ? \   790         rb_utf8_str_new_static((str), (len)) : \   791         rb_utf8_str_new((str), (len))     \   793 #define rb_tainted_str_new_cstr(str) RB_GNUC_EXTENSION_BLOCK( \   794     (__builtin_constant_p(str)) ?              \   795         rb_tainted_str_new((str), (long)strlen(str)) : \   796         rb_tainted_str_new_cstr(str)           \   798 #define rb_usascii_str_new_cstr(str) RB_GNUC_EXTENSION_BLOCK( \   799     (__builtin_constant_p(str)) ?              \   800         rb_usascii_str_new_static((str), (long)strlen(str)) : \   801         rb_usascii_str_new_cstr(str)           \   803 #define rb_utf8_str_new_cstr(str) RB_GNUC_EXTENSION_BLOCK( \   804     (__builtin_constant_p(str)) ?               \   805         rb_utf8_str_new_static((str), (long)strlen(str)) : \   806         rb_utf8_str_new_cstr(str)               \   808 #define rb_external_str_new_cstr(str) RB_GNUC_EXTENSION_BLOCK( \   809     (__builtin_constant_p(str)) ?               \   810         rb_external_str_new((str), (long)strlen(str)) : \   811         rb_external_str_new_cstr(str)           \   813 #define rb_locale_str_new_cstr(str) RB_GNUC_EXTENSION_BLOCK( \   814     (__builtin_constant_p(str)) ?              \   815         rb_locale_str_new((str), (long)strlen(str)) :  \   816         rb_locale_str_new_cstr(str)            \   818 #define rb_str_buf_new_cstr(str) RB_GNUC_EXTENSION_BLOCK( \   819     (__builtin_constant_p(str)) ?               \   820         rb_str_buf_cat(rb_str_buf_new((long)strlen(str)), \   821                        (str), (long)strlen(str)) : \   822         rb_str_buf_new_cstr(str)                \   824 #define rb_str_cat_cstr(str, ptr) RB_GNUC_EXTENSION_BLOCK( \   825     (__builtin_constant_p(ptr)) ?               \   826         rb_str_cat((str), (ptr), (long)strlen(ptr)) : \   827         rb_str_cat_cstr((str), (ptr))           \   829 #define rb_exc_new_cstr(klass, ptr) RB_GNUC_EXTENSION_BLOCK( \   830     (__builtin_constant_p(ptr)) ?               \   831         rb_exc_new((klass), (ptr), (long)strlen(ptr)) : \   832         rb_exc_new_cstr((klass), (ptr))         \   835 #define rb_str_new2 rb_str_new_cstr   836 #define rb_str_new3 rb_str_new_shared   837 #define rb_str_new4 rb_str_new_frozen   838 #define rb_str_new5 rb_str_new_with_class   839 #define rb_tainted_str_new2 rb_tainted_str_new_cstr   840 #define rb_str_buf_new2 rb_str_buf_new_cstr   841 #define rb_usascii_str_new2 rb_usascii_str_new_cstr   842 #define rb_str_buf_cat rb_str_cat   843 #define rb_str_buf_cat2 rb_str_cat_cstr   844 #define rb_str_cat2 rb_str_cat_cstr   845 #define rb_strlen_lit(str) (sizeof(str "") - 1)   846 #define rb_str_new_lit(str) rb_str_new_static((str), rb_strlen_lit(str))   847 #define rb_usascii_str_new_lit(str) rb_usascii_str_new_static((str), rb_strlen_lit(str))   848 #define rb_utf8_str_new_lit(str) rb_utf8_str_new_static((str), rb_strlen_lit(str))   849 #define rb_enc_str_new_lit(str, enc) rb_enc_str_new_static((str), rb_strlen_lit(str), (enc))   850 #define rb_str_new_literal(str) rb_str_new_lit(str)   851 #define rb_usascii_str_new_literal(str) rb_usascii_str_new_lit(str)   852 #define rb_utf8_str_new_literal(str) rb_utf8_str_new_lit(str)   853 #define rb_enc_str_new_literal(str, enc) rb_enc_str_new_lit(str, enc)   877 #define RUBY_UBF_IO ((rb_unblock_function_t *)-1)   878 #define RUBY_UBF_PROCESS ((rb_unblock_function_t *)-1)   938 void rb_cv_set(VALUE, 
const char*, VALUE);
   953 #if defined(__cplusplus) VALUE rb_apply(VALUE, ID, VALUE)
Calls a method. 
void rb_gc_call_finalizer_at_exit(void)
struct timeval rb_time_interval(VALUE num)
int rb_provided(const char *)
VALUE rb_mutex_lock(VALUE mutex)
struct st_table * rb_hash_tbl(VALUE)
VALUE rb_cvar_get(VALUE, ID)
VALUE rb_mod_module_exec(int, const VALUE *, VALUE)
void rb_thread_schedule(void)
void rb_thread_atfork_before_exec(void)
VALUE rb_io_addstr(VALUE, VALUE)
VALUE rb_reg_match_last(VALUE)
int rb_reg_backref_number(VALUE match, VALUE backref)
VALUE rb_hash_delete_if(VALUE)
VALUE rb_hash_delete(VALUE, VALUE)
VALUE rb_check_to_float(VALUE)
Tries to convert an object into Float. 
VALUE rb_define_module_id_under(VALUE, ID)
int rb_is_instance_id(ID id)
void rb_thread_atfork(void)
VALUE rb_file_dirname(VALUE fname)
VALUE rb_protect(VALUE(*)(VALUE), VALUE, int *)
Protects a function call from potential global escapes from the function. 
int rb_find_file_ext_safe(VALUE *, const char *const *, int)
int rb_cloexec_fcntl_dupfd(int fd, int minfd)
VALUE rb_str_length(VALUE)
VALUE rb_class_public_instance_methods(int, const VALUE *, VALUE)
VALUE rb_mod_include_p(VALUE, VALUE)
VALUE rb_proc_call_with_block(VALUE, int argc, const VALUE *argv, VALUE)
VALUE rb_num_coerce_bin(VALUE, VALUE, ID)
VALUE rb_ary_new_from_args(long n,...)
VALUE rb_detach_process(rb_pid_t pid)
VALUE rb_big_clone(VALUE)
VALUE rb_str_equal(VALUE str1, VALUE str2)
VALUE rb_ary_new_capa(long capa)
void rb_cv_set(VALUE, const char *, VALUE)
void rb_check_inheritable(VALUE)
Ensures a class can be derived from super. 
VALUE rb_mod_const_missing(VALUE klass, VALUE name)
void rb_update_max_fd(int fd)
VALUE rb_ary_delete(VALUE, VALUE)
void rb_backref_set(VALUE)
VALUE rb_time_nano_new(time_t, long)
VALUE rb_Rational(VALUE, VALUE)
VALUE rb_io_get_io(VALUE)
VALUE rb_file_expand_path(VALUE, VALUE)
VALUE rb_hash_lookup2(VALUE, VALUE, VALUE)
VALUE rb_hash_aref(VALUE, VALUE)
void rb_gc_force_recycle(VALUE)
VALUE rb_range_new(VALUE, VALUE, int)
VALUE rb_big_pow(VALUE, VALUE)
VALUE rb_check_to_int(VALUE)
Tries to convert val into Integer. 
void rb_w32_fd_dup(rb_fdset_t *dst, const rb_fdset_t *src)
void rb_undef_alloc_func(VALUE)
void rb_define_singleton_method(VALUE, const char *, VALUE(*)(ANYARGS), int)
Defines a singleton method for obj. 
VALUE rb_exec_recursive_outer(VALUE(*)(VALUE, VALUE, int), VALUE, VALUE)
VALUE rb_f_sprintf(int, const VALUE *)
VALUE rb_ary_reverse(VALUE)
VALUE rb_ary_shared_with_p(VALUE, VALUE)
int rb_obj_method_arity(VALUE, ID)
VALUE rb_fiber_resume(VALUE fib, int argc, const VALUE *argv)
void rb_thread_sleep_deadly(void)
int rb_cloexec_open(const char *pathname, int flags, mode_t mode)
void rb_define_class_variable(VALUE, const char *, VALUE)
VALUE rb_str_cat(VALUE, const char *, long)
VALUE rb_define_class_id_under(VALUE, ID, VALUE)
Defines a class under the namespace of outer. 
void rb_unblock_function_t(void *)
VALUE rb_f_exit(int argc, const VALUE *argv)
#define rb_str_dup_frozen
void rb_jump_tag(int tag)
Continues the exception caught by rb_protect() and rb_eval_string_protect(). 
VALUE rb_hash_lookup(VALUE, VALUE)
int rb_is_absolute_path(const char *)
VALUE rb_class_protected_instance_methods(int, const VALUE *, VALUE)
VALUE rb_enumerator_size_func(VALUE, VALUE, VALUE)
VALUE rb_complex_raw(VALUE, VALUE)
VALUE rb_mod_ancestors(VALUE)
VALUE rb_ary_cmp(VALUE, VALUE)
void rb_write_error2(const char *, long)
int rb_symname_p(const char *)
int rb_is_const_id(ID id)
#define rb_check_frozen_internal(obj)
VALUE rb_exc_new(VALUE, const char *, long)
VALUE rb_cstr2inum(const char *, int)
VALUE rb_str_unlocktmp(VALUE)
void rb_define_private_method(VALUE, const char *, VALUE(*)(ANYARGS), int)
VALUE rb_hash_clear(VALUE)
VALUE rb_str_new_with_class(VALUE, const char *, long)
void rb_must_asciicompat(VALUE)
VALUE rb_dbl_cmp(double a, double b)
VALUE rb_struct_alloc_noinit(VALUE)
VALUE rb_reg_match(VALUE, VALUE)
int rb_range_values(VALUE range, VALUE *begp, VALUE *endp, int *exclp)
VALUE rb_struct_new(VALUE,...)
void rb_close_before_exec(int lowfd, int maxhint, VALUE noclose_fds)
VALUE rb_reg_nth_defined(int, VALUE)
void rb_cvar_set(VALUE, ID, VALUE)
VALUE rb_singleton_class_clone(VALUE)
VALUE rb_str_concat(VALUE, VALUE)
int rb_thread_alone(void)
VALUE rb_obj_is_method(VALUE)
st_index_t rb_memhash(const void *ptr, long len)
VALUE rb_io_ungetc(VALUE, VALUE)
VALUE rb_str_plus(VALUE, VALUE)
void rb_mark_hash(struct st_table *)
VALUE rb_usascii_str_new_static(const char *, long)
VALUE rb_thread_wakeup(VALUE)
VALUE rb_mod_init_copy(VALUE, VALUE)
#define rb_hash_uint32(h, i)
#define rb_check_trusted(obj)
const char * rb_sourcefile(void)
int rb_path_check(const char *)
double rb_cstr_to_dbl(const char *, int)
Parses a string representation of a floating point number. 
int rb_thread_fd_select(int, rb_fdset_t *, rb_fdset_t *, rb_fdset_t *, struct timeval *)
VALUE rb_String(VALUE)
Equivalent to Kernel#String in Ruby. 
double rb_genrand_real(void)
VALUE rb_file_absolute_path(VALUE, VALUE)
VALUE rb_str_times(VALUE, VALUE)
VALUE rb_path_to_class(VALUE)
void rb_str_set_len(VALUE, long)
int rb_reg_options(VALUE)
VALUE rb_backref_get(void)
VALUE rb_undefine_finalizer(VALUE)
VALUE rb_obj_dup(VALUE)
call-seq: obj.dup -> an_object 
VALUE rb_ivar_get(VALUE, ID)
void rb_str_update(VALUE, long, long, VALUE)
VALUE rb_io_getbyte(VALUE)
VALUE rb_exc_new_str(VALUE, VALUE)
void rb_big_pack(VALUE val, unsigned long *buf, long num_longs)
VALUE rb_exec_recursive(VALUE(*)(VALUE, VALUE, int), VALUE, VALUE)
void rb_define_alloc_func(VALUE, rb_alloc_func_t)
VALUE rb_Integer(VALUE)
Equivalent to Kernel#Integer in Ruby. 
VALUE rb_obj_alloc(VALUE)
Allocates an instance of klass. 
void rb_clear_constant_cache(void)
int rb_const_defined(VALUE, ID)
VALUE rb_reg_match2(VALUE)
VALUE rb_check_convert_type(VALUE, int, const char *, const char *)
Tries to convert an object into another type. 
VALUE rb_obj_untrusted(VALUE obj)
call-seq: obj.untrusted? -> true or false 
st_index_t rb_str_hash(VALUE)
char * rb_str_subpos(VALUE, long, long *)
void rb_syswait(rb_pid_t pid)
int rb_feature_provided(const char *, const char **)
VALUE rb_range_beg_len(VALUE, long *, long *, long, int)
VALUE rb_big_xor(VALUE, VALUE)
VALUE rb_ary_sort_bang(VALUE)
VALUE rb_hash_fetch(VALUE, VALUE)
VALUE rb_reg_match_post(VALUE)
VALUE rb_io_write(VALUE, VALUE)
VALUE rb_tainted_str_new_cstr(const char *)
int rb_str_cmp(VALUE, VALUE)
VALUE rb_file_open_str(VALUE, const char *)
VALUE rb_ary_entry(VALUE, long)
void rb_define_protected_method(VALUE, const char *, VALUE(*)(ANYARGS), int)
VALUE rb_obj_init_copy(VALUE, VALUE)
:nodoc: Default implementation of #initialize_copy 
int rb_env_path_tainted(void)
VALUE rb_fiber_yield(int argc, const VALUE *argv)
VALUE rb_utf8_str_new_cstr(const char *)
void rb_obj_call_init(VALUE, int, const VALUE *)
Calls #initialize method of obj with the given arguments. 
VALUE rb_inspect(VALUE)
Convenient wrapper of Object::inspect. 
VALUE rb_path2class(const char *)
void rb_name_error(ID id, const char *fmt,...)
VALUE rb_proc_times(VALUE)
VALUE rb_find_file(VALUE)
VALUE rb_struct_getmember(VALUE, ID)
VALUE rb_str_tmp_new(long)
int rb_const_defined_from(VALUE, ID)
VALUE rb_str_buf_append(VALUE, VALUE)
void rb_ary_store(VALUE, long, VALUE)
VALUE rb_f_notimplement(int argc, const VALUE *argv, VALUE obj)
VALUE rb_big2str(VALUE, int)
VALUE rb_fix2str(VALUE, int)
VALUE rb_ivar_defined(VALUE, ID)
VALUE rb_flt_rationalize_with_prec(VALUE, VALUE)
VALUE rb_struct_define_under(VALUE, const char *,...)
VALUE rb_mod_remove_cvar(VALUE, VALUE)
VALUE rb_reg_last_match(VALUE)
VALUE rb_external_str_new_cstr(const char *)
void rb_ivar_foreach(VALUE, int(*)(ANYARGS), st_data_t)
VALUE rb_ary_delete_at(VALUE, long)
VALUE rb_str_to_inum(VALUE, int, int)
struct timespec rb_time_timespec(VALUE time)
VALUE rb_obj_untrust(VALUE)
call-seq: obj.untrust -> obj 
VALUE rb_thread_local_aref(VALUE, ID)
VALUE rb_f_kill(int, const VALUE *)
PRINTF_ARGS(NORETURN(void rb_loaderror(const char *,...)), 1, 2)
VALUE rb_enumeratorize(VALUE, VALUE, int, const VALUE *)
RUBY_SYMBOL_EXPORT_BEGIN typedef unsigned long st_data_t
void rb_thread_fd_close(int)
VALUE rb_Complex(VALUE, VALUE)
#define rb_fd_isset(n, f)
VALUE rb_utf8_str_new(const char *, long)
void * rb_load_file(const char *)
VALUE rb_struct_members(VALUE)
VALUE rb_gc_latest_gc_info(VALUE)
struct timeval rb_time_timeval(VALUE time)
VALUE rb_to_float(VALUE)
Converts a Numeric object into Float. 
VALUE rb_singleton_class(VALUE)
Returns the singleton class of obj. 
void * rb_load_file_str(VALUE)
VALUE rb_obj_class(VALUE)
call-seq: obj.class -> class 
void rb_reset_random_seed(void)
VALUE rb_mutex_locked_p(VALUE mutex)
VALUE rb_struct_s_members(VALUE)
VALUE rb_method_call_with_block(int, const VALUE *, VALUE, VALUE)
VALUE rb_obj_is_kind_of(VALUE, VALUE)
call-seq: obj.is_a?(class) -> true or false obj.kind_of?(class) -> true or false 
void rb_write_error(const char *)
VALUE rb_binding_new(void)
VALUE rb_file_open(const char *, const char *)
VALUE rb_thread_kill(VALUE)
VALUE rb_str_encode_ospath(VALUE)
VALUE rb_big_cmp(VALUE, VALUE)
int rb_thread_fd_writable(int)
VALUE rb_rational_raw(VALUE, VALUE)
VALUE rb_obj_method(VALUE, VALUE)
VALUE rb_lastline_get(void)
VALUE rb_enum_values_pack(int, const VALUE *)
VALUE rb_hash_freeze(VALUE)
RUBY_EXTERN VALUE rb_output_rs
void rb_free_generic_ivar(VALUE)
void rb_str_setter(VALUE, ID, VALUE *)
VALUE rb_obj_tainted(VALUE obj)
call-seq: obj.tainted? -> true or false 
VALUE rb_cvar_defined(VALUE, ID)
void rb_thread_sleep(int)
VALUE rb_marshal_dump(VALUE, VALUE)
VALUE rb_obj_taint(VALUE)
call-seq: obj.taint -> obj 
VALUE rb_io_printf(int, const VALUE *, VALUE)
VALUE rb_class_name(VALUE)
void * rb_mod_const_at(VALUE, void *)
VALUE rb_str_new_shared(VALUE)
int rb_proc_exec(const char *)
VALUE rb_str_substr(VALUE, long, long)
VALUE rb_big_and(VALUE, VALUE)
VALUE rb_time_timespec_new(const struct timespec *, int)
Returns a time object with UTC/localtime/fixed offset. 
RUBY_EXTERN VALUE rb_output_fs
VALUE rb_f_exec(int argc, const VALUE *argv)
VALUE rb_exec_recursive_paired(VALUE(*)(VALUE, VALUE, int), VALUE, VALUE, VALUE)
NORETURN(void rb_cmperr(VALUE, VALUE))
int rb_is_class_id(ID id)
VALUE rb_block_lambda(void)
void rb_mem_clear(register VALUE *, register long)
void rb_attr(VALUE, ID, int, int, int)
VALUE rb_mutex_sleep(VALUE self, VALUE timeout)
const char * ruby_signal_name(int)
VALUE rb_time_succ(VALUE)
VALUE rb_check_hash_type(VALUE)
int rb_frame_method_id_and_class(ID *idp, VALUE *klassp)
VALUE rb_obj_as_string(VALUE)
VALUE rb_ary_replace(VALUE copy, VALUE orig)
void rb_gc_mark_locations(const VALUE *, const VALUE *)
VALUE rb_f_require(VALUE, VALUE)
VALUE rb_any_to_s(VALUE)
call-seq: obj.to_s -> string 
VALUE rb_hash_size(VALUE)
VALUE rb_thread_current(void)
VALUE rb_check_to_integer(VALUE, const char *)
Tries to convert val into Integer. 
VALUE rb_locale_str_new(const char *, long)
void rb_invalid_str(const char *str, const char *type)
void rb_set_end_proc(void(*)(VALUE), VALUE)
void rb_frozen_class_p(VALUE)
Asserts that klass is not a frozen class. 
void rb_w32_fd_copy(rb_fdset_t *dst, const fd_set *src, int max)
size_t rb_absint_size(VALUE val, int *nlz_bits_ret)
VALUE rb_mutex_synchronize(VALUE mutex, VALUE(*func)(VALUE arg), VALUE arg)
void rb_remove_method_id(VALUE, ID)
VALUE rb_define_module_id(ID)
VALUE rb_hash_update_func(VALUE newkey, VALUE oldkey, VALUE value)
void rb_lastline_set(VALUE)
VALUE rb_ary_join(VALUE, VALUE)
VALUE rb_ary_concat(VALUE, VALUE)
VALUE rb_complex_polar(VALUE, VALUE)
VALUE rb_require_safe(VALUE, int)
VALUE rb_external_str_new(const char *, long)
VALUE rb_ary_rassoc(VALUE, VALUE)
VALUE rb_rational_new(VALUE, VALUE)
int rb_cloexec_dup2(int oldfd, int newfd)
VALUE rb_mutex_trylock(VALUE mutex)
int rb_uv_to_utf8(char[6], unsigned long)
size_t rb_absint_numwords(VALUE val, size_t word_numbits, size_t *nlz_bits_ret)
#define range(low, item, hi)
void rb_big_resize(VALUE big, size_t len)
VALUE rb_obj_is_instance_of(VALUE, VALUE)
call-seq: obj.instance_of?(class) -> true or false 
VALUE rb_big_mul(VALUE, VALUE)
rb_alloc_func_t rb_get_alloc_func(VALUE)
double rb_random_real(VALUE rnd)
VALUE rb_Array(VALUE)
Equivalent to Kernel#Array in Ruby. 
VALUE rb_str_split(VALUE, const char *)
VALUE rb_struct_aset(VALUE, VALUE, VALUE)
void st_foreach_safe(struct st_table *, int(*)(ANYARGS), st_data_t)
void rb_error_frozen(const char *what)
void rb_num_zerodiv(void)
VALUE rb_reg_init_str(VALUE re, VALUE s, int options)
VALUE rb_thread_wakeup_alive(VALUE)
VALUE rb_time_new(time_t, long)
VALUE rb_flt_rationalize(VALUE)
VALUE rb_struct_size(VALUE s)
VALUE rb_ary_subseq(VALUE, long, long)
VALUE rb_make_backtrace(void)
VALUE rb_str_resurrect(VALUE str)
void rb_name_error_str(VALUE str, const char *fmt,...)
VALUE rb_big_divmod(VALUE, VALUE)
void rb_remove_method(VALUE, const char *)
VALUE rb_str_resize(VALUE, long)
VALUE rb_io_binmode(VALUE)
long rb_str_offset(VALUE, long)
VALUE rb_const_get(VALUE, ID)
VALUE rb_define_finalizer(VALUE, VALUE)
int rb_str_hash_cmp(VALUE, VALUE)
VALUE rb_num_coerce_bit(VALUE, VALUE, ID)
VALUE rb_big_or(VALUE, VALUE)
VALUE rb_ary_plus(VALUE, VALUE)
VALUE rb_thread_local_aset(VALUE, ID, VALUE)
VALUE rb_str_subseq(VALUE, long, long)
int rb_absint_singlebit_p(VALUE val)
void rb_alias_variable(ID, ID)
VALUE rb_locale_str_new_cstr(const char *)
VALUE rb_str_new_static(const char *, long)
VALUE rb_str_replace(VALUE, VALUE)
VALUE rb_str2inum(VALUE, int)
VALUE rb_io_fdopen(int, int, const char *)
VALUE rb_io_print(int, const VALUE *, VALUE)
VALUE rb_reg_new(const char *, long, int)
unsigned long rb_genrand_ulong_limited(unsigned long i)
void rb_mark_tbl(struct st_table *)
VALUE rb_obj_freeze(VALUE)
call-seq: obj.freeze -> obj 
VALUE rb_obj_is_proc(VALUE)
VALUE rb_sprintf(const char *format,...)
VALUE rb_random_bytes(VALUE rnd, long n)
VALUE rb_ary_resurrect(VALUE ary)
VALUE rb_str_format(int, const VALUE *, VALUE)
int rb_obj_respond_to(VALUE, ID, int)
#define rb_fd_copy(d, s, n)
void rb_last_status_set(int status, rb_pid_t pid)
VALUE(*const rb_f_notimplement_)(int, const VALUE *, VALUE)
VALUE rb_class_path(VALUE)
VALUE rb_mod_module_eval(int, const VALUE *, VALUE)
VALUE rb_complex_new(VALUE, VALUE)
VALUE rb_ary_assoc(VALUE, VALUE)
VALUE rb_str_vcatf(VALUE, const char *, va_list)
#define RUBY_SYMBOL_EXPORT_END
rb_pid_t rb_spawn_err(int, const VALUE *, char *, size_t)
void * rb_mod_const_of(VALUE, void *)
VALUE rb_Hash(VALUE)
Equivalent to Kernel#Hash in Ruby. 
void rb_str_modify_expand(VALUE, long)
VALUE rb_class_inherited_p(VALUE mod, VALUE arg)
call-seq: mod <= other -> true, false, or nil 
VALUE rb_ivar_set(VALUE, ID, VALUE)
unsigned char buf[MIME_BUF_SIZE]
void rb_thread_wait_fd(int)
VALUE rb_class_instance_methods(int, const VALUE *, VALUE)
VALUE rb_thread_main(void)
VALUE rb_big_unpack(unsigned long *buf, long num_longs)
void rb_hash_foreach(VALUE, int(*)(ANYARGS), VALUE)
VALUE rb_make_exception(int, const VALUE *)
Make an Exception object from the list of arguments in a manner similar to Kernel#raise. 
VALUE rb_obj_frozen_p(VALUE obj)
call-seq: obj.frozen? -> true or false 
void rb_clear_method_cache_by_class(VALUE)
int rb_str_comparable(VALUE, VALUE)
void rb_const_set(VALUE, ID, VALUE)
void rb_exc_raise(VALUE mesg)
Raises an exception in the current thread. 
void rb_error_untrusted(VALUE obj)
VALUE rb_const_list(void *)
VALUE rb_ary_includes(VALUE, VALUE)
VALUE rb_ary_unshift(VALUE, VALUE)
VALUE rb_f_trace_var(int, const VALUE *)
void rb_name_class(VALUE, ID)
VALUE rb_fiber_new(VALUE(*)(ANYARGS), VALUE)
VALUE rb_big_plus(VALUE, VALUE)
VALUE rb_mod_class_variables(int, const VALUE *, VALUE)
VALUE rb_big_idiv(VALUE, VALUE)
#define RUBY_SYMBOL_EXPORT_BEGIN
VALUE rb_io_puts(int, const VALUE *, VALUE)
VALUE rb_rational_den(VALUE rat)
void rb_alias(VALUE, ID, ID)
void rb_match_busy(VALUE)
VALUE rb_check_funcall(VALUE, ID, int, const VALUE *)
VALUE rb_random_int(VALUE rnd, VALUE max)
VALUE rb_num_coerce_relop(VALUE, VALUE, ID)
VALUE rb_file_directory_p(VALUE, VALUE)
VALUE rb_cv_get(VALUE, const char *)
int rb_sym_interned_p(VALUE)
VALUE rb_str_ellipsize(VALUE, long)
Shortens str and adds three dots, an ellipsis, if it is longer than len characters. 
VALUE rb_str_new_cstr(const char *)
VALUE rb_proc_call(VALUE, VALUE)
VALUE rb_proc_lambda_p(VALUE)
VALUE rb_obj_trust(VALUE)
call-seq: obj.trust -> obj 
int rb_is_global_id(ID id)
VALUE rb_blocking_function_t(void *)
VALUE rb_io_ungetbyte(VALUE, VALUE)
VALUE rb_obj_remove_instance_variable(VALUE, VALUE)
int rb_bigzero_p(VALUE x)
int rb_reserved_fd_p(int fd)
void rb_loaderror_with_path(VALUE path, const char *fmt,...)
unsigned long rb_random_ulong_limited(VALUE rnd, unsigned long limit)
VALUE rb_file_s_absolute_path(int, const VALUE *)
rb_pid_t rb_spawn(int, const VALUE *)
int rb_respond_to(VALUE, ID)
VALUE rb_method_call(int, const VALUE *, VALUE)
register unsigned int len
VALUE rb_str_freeze(VALUE)
VALUE rb_mod_constants(int, const VALUE *, VALUE)
VALUE rb_big_new(size_t, int)
RUBY_EXTERN VALUE rb_default_rs
#define rb_enumeratorize_with_size(obj, id, argc, argv, size_fn)
int rb_cloexec_pipe(int fildes[2])
void rb_mark_set(struct st_table *)
void rb_thread_wait_for(struct timeval)
void rb_str_modify(VALUE)
VALUE rb_obj_instance_eval(int, const VALUE *, VALUE)
int rb_const_defined_at(VALUE, ID)
void rb_define_method_id(VALUE, ID, VALUE(*)(ANYARGS), int)
VALUE rb_f_untrace_var(int, const VALUE *)
void rb_singleton_class_attached(VALUE, VALUE)
Attach a object to a singleton class. 
#define UNLIMITED_ARGUMENTS
int rb_integer_pack(VALUE val, void *words, size_t numwords, size_t wordsize, size_t nails, int flags)
VALUE rb_fiber_current(void)
VALUE rb_module_new(void)
VALUE rb_rational_num(VALUE rat)
ID rb_frame_callee(void)
The name of the current method. 
VALUE rb_ary_tmp_new(long)
double rb_str_to_dbl(VALUE, int)
Parses a string representation of a floating point number. 
VALUE rb_integer_unpack(const void *words, size_t numwords, size_t wordsize, size_t nails, int flags)
VALUE rb_block_proc(void)
void rb_interrupt(void)
Raises an Interrupt exception. 
VALUE rb_ary_resize(VALUE ary, long len)
expands or shrinks ary to len elements. 
VALUE rb_str_buf_cat_ascii(VALUE, const char *)
VALUE rb_Float(VALUE)
Equivalent to Kernel#Float in Ruby. 
VALUE rb_str_buf_new_cstr(const char *)
void rb_fd_fix_cloexec(int fd)
VALUE rb_big_div(VALUE, VALUE)
VALUE rb_class_superclass(VALUE)
call-seq: class.superclass -> a_super_class or nil 
void rb_gc_mark_maybe(VALUE)
VALUE rb_struct_aref(VALUE, VALUE)
VALUE rb_get_values_at(VALUE, long, int, const VALUE *, VALUE(*)(VALUE, long))
VALUE rb_big_eql(VALUE, VALUE)
void rb_error_arity(int argc, int min, int max)
VALUE rb_utf8_str_new_static(const char *, long)
ID rb_frame_this_func(void)
The original name of the current method. 
VALUE rb_convert_type(VALUE, int, const char *, const char *)
Converts an object into another type. 
#define rb_fd_select(n, rfds, wfds, efds, timeout)
CONSTFUNC(void rb_error_untrusted(VALUE))
VALUE rb_str_catf(VALUE str, const char *format,...)
VALUE rb_class_path_cached(VALUE)
VALUE rb_check_string_type(VALUE)
VALUE rb_io_ascii8bit_binmode(VALUE)
VALUE rb_ary_push(VALUE, VALUE)
VALUE rb_obj_singleton_methods(int, const VALUE *, VALUE)
void rb_str_shared_replace(VALUE, VALUE)
void rb_check_copyable(VALUE obj, VALUE orig)
void rb_marshal_define_compat(VALUE newclass, VALUE oldclass, VALUE(*dumper)(VALUE), VALUE(*loader)(VALUE, VALUE))
void rb_error_frozen_object(VALUE frozen_obj)
VALUE rb_proc_new(VALUE(*)(ANYARGS), VALUE)
void rb_thread_check_ints(void)
VALUE rb_thread_run(VALUE)
VALUE rb_str_locktmp(VALUE)
VALUE rb_mod_remove_const(VALUE, VALUE)
unsigned long rb_big2ulong(VALUE)
VALUE rb_class_new_instance(int, const VALUE *, VALUE)
Allocates and initializes an instance of klass. 
VALUE rb_mutex_unlock(VALUE mutex)
size_t rb_str_capacity(VALUE str)
int rb_method_basic_definition_p(VALUE, ID)
#define rb_check_trusted_internal(obj)
VALUE rb_str_cat_cstr(VALUE, const char *)
long rb_str_sublen(VALUE, long)
VALUE rb_hash_update_by(VALUE hash1, VALUE hash2, rb_hash_update_func *func)
VALUE rb_f_global_variables(void)
VALUE rb_obj_instance_exec(int, const VALUE *, VALUE)
VALUE rb_find_file_safe(VALUE, int)
VALUE rb_marshal_load(VALUE)
VALUE rb_struct_define_without_accessor_under(VALUE outer, const char *class_name, VALUE super, rb_alloc_func_t alloc,...)
VALUE rb_class_private_instance_methods(int, const VALUE *, VALUE)
VALUE rb_str_inspect(VALUE)
VALUE rb_eval_cmd(VALUE, VALUE, int)
int rb_is_local_id(ID id)
VALUE rb_exec_recursive_paired_outer(VALUE(*)(VALUE, VALUE, int), VALUE, VALUE, VALUE)
VALUE rb_obj_untaint(VALUE)
call-seq: obj.untaint -> obj 
VALUE rb_filesystem_str_new_cstr(const char *)
VALUE rb_gc_disable(void)
VALUE rb_const_get_at(VALUE, ID)
VALUE rb_reg_match_pre(VALUE)
void rb_set_class_path(VALUE, VALUE, const char *)
void rb_gc_adjust_memory_usage(ssize_t)
VALUE rb_ary_shift(VALUE)
int rb_thread_interrupted(VALUE thval)
VALUE rb_file_s_expand_path(int, const VALUE *)
void rb_gc_finalize_deferred(void)
long rb_str_strlen(VALUE)
PUREFUNC(int rb_during_gc(void))
int rb_eql(VALUE, VALUE)
Determines if obj1 and obj2 are equal in terms of Object::eql?. 
VALUE rb_sym_all_symbols(void)
VALUE rb_reg_new_str(VALUE, int)
VALUE rb_assoc_new(VALUE, VALUE)
VALUE rb_thread_stop(void)
int rb_is_attrset_id(ID id)
void rb_gc_copy_finalizer(VALUE, VALUE)
VALUE rb_mod_included_modules(VALUE)
VALUE rb_ary_aref(int, const VALUE *, VALUE)
VALUE rb_str_new_frozen(VALUE)
VALUE rb_big_modulo(VALUE, VALUE)
VALUE rb_struct_define_without_accessor(const char *, VALUE, rb_alloc_func_t,...)
void rb_exc_fatal(VALUE mesg)
Raises a fatal error in the current thread. 
VALUE rb_str_drop_bytes(VALUE, long)
VALUE rb_define_class_id(ID, VALUE)
Defines a new class. 
VALUE rb_big_minus(VALUE, VALUE)
int rb_cloexec_dup(int oldfd)
VALUE rb_big_rshift(VALUE, VALUE)
void rb_ary_modify(VALUE)
VALUE rb_ary_freeze(VALUE)
unsigned int rb_random_int32(VALUE rnd)
#define rb_check_frozen(obj)
VALUE rb_ary_cat(VALUE, const VALUE *, long)
VALUE rb_str_intern(VALUE)
void rb_copy_generic_ivar(VALUE, VALUE)
VALUE rb_struct_define(const char *,...)
int rb_cmpint(VALUE, VALUE, VALUE)
VALUE rb_tainted_str_new(const char *, long)
VALUE rb_str_buf_new(long)
VALUE rb_usascii_str_new(const char *, long)
int rb_method_boundp(VALUE, ID, int)
VALUE rb_obj_instance_variables(VALUE)
VALUE rb_const_remove(VALUE, ID)
VALUE rb_const_get_from(VALUE, ID)
VALUE rb_vsprintf(const char *, va_list)
VALUE rb_str_scrub(VALUE, VALUE)
VALUE rb_last_status_get(void)
VALUE rb_ary_new_from_values(long n, const VALUE *elts)
void rb_timespec_now(struct timespec *)
VALUE rb_cstr_to_inum(const char *, int, int)
VALUE(* rb_alloc_func_t)(VALUE)
VALUE rb_fiber_alive_p(VALUE)
VALUE rb_hash_aset(VALUE, VALUE, VALUE)
VALUE rb_hash_set_ifnone(VALUE hash, VALUE ifnone)
VALUE rb_class_real(VALUE cl)
Looks up the nearest ancestor of cl, skipping singleton classes or module inclusions. 
VALUE rb_struct_initialize(VALUE, VALUE)
void ruby_default_signal(int)
VALUE rb_exc_new_cstr(VALUE, const char *)
VALUE rb_thread_create(VALUE(*)(ANYARGS), void *)
VALUE rb_obj_clone(VALUE)
:nodoc Almost same as Object::clone ++ 
rb_pid_t rb_waitpid(rb_pid_t pid, int *status, int flags)
VALUE rb_class_new(VALUE)
Creates a new class. 
VALUE rb_check_array_type(VALUE)
VALUE rb_str_append(VALUE, VALUE)
unsigned int rb_genrand_int32(void)
void rb_load_protect(VALUE, int, int *)
void rb_provide(const char *)
int rb_memcicmp(const void *, const void *, long)
VALUE rb_time_num_new(VALUE, VALUE)
void rb_loaderror(const char *fmt,...)
int rb_find_file_ext(VALUE *, const char *const *)
st_index_t rb_ivar_count(VALUE)
VALUE rb_struct_alloc(VALUE, VALUE)
VALUE rb_ary_rotate(VALUE, long)
#define rb_hash_uint(h, i)
VALUE rb_autoload_load(VALUE, ID)
void rb_set_class_path_string(VALUE, VALUE, VALUE)
void rb_cmperr(VALUE x, VALUE y)
void rb_exec_end_proc(void)
VALUE rb_big_eq(VALUE, VALUE)
st_index_t rb_hash_start(st_index_t)
VALUE rb_ary_to_ary(VALUE)
VALUE rb_to_int(VALUE)
Converts val into Integer. 
VALUE rb_reg_nth_match(int, VALUE)
VALUE rb_attr_get(VALUE, ID)
VALUE rb_usascii_str_new_cstr(const char *)
VALUE rb_ary_clear(VALUE)
VALUE rb_class_get_superclass(VALUE)
Returns the superclass of klass The return value might be an iclass of a module, unlike rb_class_supe...
VALUE rb_num_coerce_cmp(VALUE, VALUE, ID)
VALUE rb_f_abort(int argc, const VALUE *argv)
VALUE rb_filesystem_str_new(const char *, long)
RUBY_EXTERN VALUE rb_argv0
void rb_thread_sleep_forever(void)
VALUE rb_autoload_p(VALUE, ID)
VALUE rb_str_new(const char *, long)
int rb_mod_method_arity(VALUE, ID)
VALUE rb_big_lshift(VALUE, VALUE)