Ruby  2.1.10p492(2016-04-01revision54464)
Data Structures | Macros | Typedefs | Functions | Variables
internal.h File Reference

Go to the source code of this file.

Data Structures

struct  rb_deprecated_classext_struct
 
struct  rb_subclass_entry
 
struct  rb_classext_struct
 
struct  method_table_wrapper
 
struct  RBasicRaw
 
struct  rb_execarg
 

Macros

#define VALGRIND_MAKE_MEM_DEFINED(p, n)   0
 
#define VALGRIND_MAKE_MEM_UNDEFINED(p, n)   0
 
#define numberof(array)   ((int)(sizeof(array) / sizeof((array)[0])))
 
#define STATIC_ASSERT(name, expr)   typedef int static_assert_##name##_check[1 - 2*!(expr)]
 
#define GCC_VERSION_SINCE(major, minor, patchlevel)
 
#define SIGNED_INTEGER_TYPE_P(int_type)   (0 > ((int_type)0)-1)
 
#define SIGNED_INTEGER_MAX(sint_type)
 
#define SIGNED_INTEGER_MIN(sint_type)   (-SIGNED_INTEGER_MAX(sint_type)-1)
 
#define UNSIGNED_INTEGER_MAX(uint_type)   (~(uint_type)0)
 
#define TIMET_MAX_PLUS_ONE   (2*(double)(TIMET_MAX/2+1))
 
#define MUL_OVERFLOW_SIGNED_INTEGER_P(a, b, min, max)
 
#define MUL_OVERFLOW_FIXNUM_P(a, b)   MUL_OVERFLOW_SIGNED_INTEGER_P(a, b, FIXNUM_MIN, FIXNUM_MAX)
 
#define MUL_OVERFLOW_LONG_P(a, b)   MUL_OVERFLOW_SIGNED_INTEGER_P(a, b, LONG_MIN, LONG_MAX)
 
#define MUL_OVERFLOW_INT_P(a, b)   MUL_OVERFLOW_SIGNED_INTEGER_P(a, b, INT_MIN, INT_MAX)
 
#define swap16(x)   ((uint16_t)((((x)&0xFF)<<8) | (((x)>>8)&0xFF)))
 
#define swap32(x)
 
#define bit_length(x)
 
#define SERIALT2NUM   ULONG2NUM
 
#define RCLASS_EXT(c)   (RCLASS(c)->ptr)
 
#define RCLASS_IV_TBL(c)   (RCLASS_EXT(c)->iv_tbl)
 
#define RCLASS_CONST_TBL(c)   (RCLASS_EXT(c)->const_tbl)
 
#define RCLASS_M_TBL_WRAPPER(c)   (RCLASS(c)->m_tbl_wrapper)
 
#define RCLASS_M_TBL(c)   (RCLASS_M_TBL_WRAPPER(c) ? RCLASS_M_TBL_WRAPPER(c)->tbl : 0)
 
#define RCLASS_IV_INDEX_TBL(c)   (RCLASS_EXT(c)->iv_index_tbl)
 
#define RCLASS_ORIGIN(c)   (RCLASS_EXT(c)->origin)
 
#define RCLASS_REFINED_CLASS(c)   (RCLASS_EXT(c)->refined_class)
 
#define RCLASS_SERIAL(c)   (RCLASS_EXT(c)->class_serial)
 
#define rb_ascii8bit_encindex()   ENCINDEX_ASCII
 
#define rb_utf8_encindex()   ENCINDEX_UTF_8
 
#define rb_usascii_encindex()   ENCINDEX_US_ASCII
 
#define rb_sys_fail_path(path)   rb_sys_fail_str(path)
 
#define rb_syserr_fail_path(err, path)   rb_syserr_fail_str((err), (path))
 
#define SIZED_REALLOC_N(var, type, n, old_n)   ((var)=(type*)ruby_sized_xrealloc((char*)(var), (n) * sizeof(type), (old_n) * sizeof(type)))
 
#define RHASH_TBL_RAW(h)   rb_hash_tbl_raw(h)
 
#define HASH_DELETED   FL_USER1
 
#define HASH_PROC_DEFAULT   FL_USER2
 
#define rb_float_value(v)   rb_float_value_inline(v)
 
#define rb_float_new(d)   rb_float_new_inline(d)
 
#define RBASIC_CLEAR_CLASS(obj)   (((struct RBasicRaw *)((VALUE)(obj)))->klass = 0)
 
#define RBASIC_SET_CLASS_RAW(obj, cls)   (((struct RBasicRaw *)((VALUE)(obj)))->klass = (cls))
 
#define RBASIC_SET_CLASS(obj, cls)
 
#define RB_MAX_GROUPS   (65536)
 
#define ARGVSTR2ARGC(argv_str)   (RSTRING_LEN(argv_str) / sizeof(char *) - 2)
 
#define ARGVSTR2ARGV(argv_str)   ((char **)RSTRING_PTR(argv_str) + 1)
 
#define QUOTE(str)   rb_str_quote_unprintable(str)
 
#define QUOTE_ID(id)   rb_id_quote_unprintable(id)
 
#define STR_NOEMBED   FL_USER1
 
#define STR_SHARED   FL_USER2 /* = ELTS_SHARED */
 
#define STR_ASSOC   FL_USER3
 
#define STR_SHARED_P(s)   FL_ALL_RAW((s), STR_NOEMBED|ELTS_SHARED)
 
#define STR_ASSOC_P(s)   FL_ALL_RAW((s), STR_NOEMBED|STR_ASSOC)
 
#define STR_NOCAPA   (STR_NOEMBED|ELTS_SHARED|STR_ASSOC)
 
#define STR_NOCAPA_P(s)   (FL_TEST_RAW((s),STR_NOEMBED) && FL_ANY_RAW((s),ELTS_SHARED|STR_ASSOC))
 
#define STR_EMBED_P(str)   (!FL_TEST_RAW((str), STR_NOEMBED))
 
#define is_ascii_string(str)   (rb_enc_str_coderange(str) == ENC_CODERANGE_7BIT)
 
#define is_broken_string(str)   (rb_enc_str_coderange(str) == ENC_CODERANGE_BROKEN)
 
#define RB_OBJ_GC_FLAGS_MAX   5
 

Typedefs

typedef struct rb_subclass_entry rb_subclass_entry_t
 
typedef unsigned long rb_serial_t
 
typedef void rb_check_funcall_hook(int, VALUE, ID, int, const VALUE *, VALUE)
 

Functions

static int nlz_int (unsigned int x)
 
static int nlz_long (unsigned long x)
 
void rb_class_subclass_add (VALUE super, VALUE klass)
 
void rb_class_remove_from_super_subclasses (VALUE)
 
static void RCLASS_M_TBL_INIT (VALUE c)
 
static VALUE RCLASS_SUPER (VALUE klass)
 
static VALUE RCLASS_SET_SUPER (VALUE klass, VALUE super)
 
VALUE rb_ary_last (int, VALUE *, VALUE)
 
void rb_ary_set_len (VALUE, long)
 
void rb_ary_delete_same (VALUE, VALUE)
 
VALUE rb_big_fdiv (VALUE x, VALUE y)
 
VALUE rb_big_uminus (VALUE x)
 
VALUE rb_integer_float_cmp (VALUE x, VALUE y)
 
VALUE rb_integer_float_eq (VALUE x, VALUE y)
 
void rb_class_foreach_subclass (VALUE klass, void(*f)(VALUE))
 
void rb_class_detach_subclasses (VALUE)
 
void rb_class_detach_module_subclasses (VALUE)
 
void rb_class_remove_from_module_subclasses (VALUE)
 
VALUE rb_obj_methods (int argc, VALUE *argv, VALUE obj)
 
VALUE rb_obj_protected_methods (int argc, VALUE *argv, VALUE obj)
 
VALUE rb_obj_private_methods (int argc, VALUE *argv, VALUE obj)
 
VALUE rb_obj_public_methods (int argc, VALUE *argv, VALUE obj)
 
int rb_obj_basic_to_s_p (VALUE)
 
VALUE rb_special_singleton_class (VALUE)
 
VALUE rb_singleton_class_clone_and_attach (VALUE obj, VALUE attach)
 
VALUE rb_singleton_class_get (VALUE obj)
 Returns the singleton class of obj, or nil if obj is not a singleton object. More...
 
void Init_class_hierarchy (void)
 
VALUE rb_invcmp (VALUE, VALUE)
 
int rb_dvar_defined (ID)
 
int rb_local_defined (ID)
 
int rb_parse_in_eval (void)
 
int rb_parse_in_main (void)
 
const char * rb_insns_name (int i)
 
VALUE rb_insns_name_array (void)
 
VALUE rb_obj_is_fiber (VALUE)
 
void rb_fiber_reset_root_local_storage (VALUE)
 
void ruby_register_rollback_func_for_ensure (VALUE(*ensure_func)(ANYARGS), VALUE(*rollback_func)(ANYARGS))
 
 PRINTF_ARGS (void ruby_debug_printf(const char *,...), 1, 2)
 
void Init_ext (void)
 
ID rb_id_encoding (void)
 
void rb_gc_mark_encodings (void)
 
 NORETURN (PRINTF_ARGS(void rb_compile_bug(const char *, int, const char *,...), 3, 4))
 
VALUE rb_check_backtrace (VALUE)
 
 NORETURN (void rb_async_bug_errno(const char *, int))
 
const char * rb_builtin_type_name (int t)
 
const char * rb_builtin_class_name (VALUE x)
 
VALUE rb_refinement_module_get_refined_class (VALUE module)
 
void ruby_error_print (void)
 
VALUE rb_get_backtrace (VALUE info)
 
void rb_call_end_proc (VALUE data)
 
void rb_mark_end_proc (void)
 
VALUE rb_home_dir_of (VALUE user, VALUE result)
 
VALUE rb_default_home_dir (VALUE result)
 
VALUE rb_realpath_internal (VALUE basedir, VALUE path, int strict)
 
void rb_file_const (const char *, VALUE)
 
int rb_file_load_ok (const char *)
 
VALUE rb_file_expand_path_fast (VALUE, VALUE)
 
VALUE rb_file_expand_path_internal (VALUE, VALUE, int, int, VALUE)
 
VALUE rb_get_path_check_to_string (VALUE, int)
 
VALUE rb_get_path_check_convert (VALUE, VALUE, int)
 
void Init_File (void)
 
void Init_heap (void)
 
void * ruby_mimmalloc (size_t size)
 
void ruby_mimfree (void *ptr)
 
void rb_objspace_set_event_hook (const rb_event_flag_t event)
 
void rb_gc_writebarrier_remember_promoted (VALUE obj)
 
void ruby_gc_set_params (int safe_level)
 
void * ruby_sized_xrealloc (void *ptr, size_t new_size, size_t old_size) RUBY_ATTR_ALLOC_SIZE((2))
 
void * ruby_sized_xrealloc2 (void *ptr, size_t new_count, size_t element_size, size_t old_count) RUBY_ATTR_ALLOC_SIZE((2
 
void void ruby_sized_xfree (void *x, size_t size)
 
void rb_gc_resurrect (VALUE ptr)
 
struct st_tablerb_hash_tbl_raw (VALUE hash)
 
VALUE rb_hash_keys (VALUE hash)
 
VALUE rb_hash_values (VALUE hash)
 
void rb_call_inits (void)
 
const char * ruby_get_inplace_mode (void)
 
void ruby_set_inplace_mode (const char *)
 
ssize_t rb_io_bufread (VALUE io, void *buf, size_t size)
 
void rb_stdio_set_default_encoding (void)
 
void rb_write_error_str (VALUE mesg)
 
VALUE rb_io_flush_raw (VALUE, int)
 
VALUE rb_iseq_clone (VALUE iseqval, VALUE newcbase)
 
VALUE rb_iseq_path (VALUE iseqval)
 
VALUE rb_iseq_absolute_path (VALUE iseqval)
 
VALUE rb_iseq_label (VALUE iseqval)
 
VALUE rb_iseq_base_label (VALUE iseqval)
 
VALUE rb_iseq_first_lineno (VALUE iseqval)
 
VALUE rb_iseq_klass (VALUE iseqval)
 
VALUE rb_iseq_method_name (VALUE self)
 
VALUE rb_get_load_path (void)
 
VALUE rb_get_expanded_load_path (void)
 
 NORETURN (void rb_load_fail(VALUE, const char *))
 
VALUE rb_math_atan2 (VALUE, VALUE)
 
VALUE rb_math_cos (VALUE)
 
VALUE rb_math_cosh (VALUE)
 
VALUE rb_math_exp (VALUE)
 
VALUE rb_math_hypot (VALUE, VALUE)
 
VALUE rb_math_log (int argc, VALUE *argv)
 
VALUE rb_math_sin (VALUE)
 
VALUE rb_math_sinh (VALUE)
 
VALUE rb_math_sqrt (VALUE)
 
void Init_newline (void)
 
int rb_num_to_uint (VALUE val, unsigned int *ret)
 
VALUE ruby_num_interval_step_size (VALUE from, VALUE to, VALUE step, int excl)
 
int ruby_float_step (VALUE from, VALUE to, VALUE step, int excl)
 
double ruby_float_mod (double x, double y)
 
int rb_num_negative_p (VALUE)
 
VALUE rb_int_succ (VALUE num)
 
VALUE rb_int_pred (VALUE num)
 
VALUE rb_dbl_hash (double d)
 
static double rb_float_value_inline (VALUE v)
 
static VALUE rb_float_new_inline (double d)
 
void rb_obj_copy_ivar (VALUE dest, VALUE obj)
 
VALUE rb_obj_equal (VALUE obj1, VALUE obj2)
 
VALUE rb_class_search_ancestor (VALUE klass, VALUE super)
 
 NORETURN (void rb_undefined_alloc(VALUE klass))
 
VALUE rb_parser_get_yydebug (VALUE)
 
VALUE rb_parser_set_yydebug (VALUE, VALUE)
 
int rb_is_const_name (VALUE name)
 
int rb_is_class_name (VALUE name)
 
int rb_is_global_name (VALUE name)
 
int rb_is_instance_name (VALUE name)
 
int rb_is_attrset_name (VALUE name)
 
int rb_is_local_name (VALUE name)
 
int rb_is_method_name (VALUE name)
 
int rb_is_junk_name (VALUE name)
 
void rb_gc_mark_parser (void)
 
void rb_gc_mark_symbols (int full_mark)
 
VALUE rb_proc_location (VALUE self)
 
st_index_t rb_hash_proc (st_index_t hash, VALUE proc)
 
int rb_block_arity (void)
 
VALUE rb_block_clear_env_self (VALUE proc)
 
rb_pid_t rb_fork_ruby (int *status)
 
void rb_last_status_clear (void)
 
VALUE rb_lcm (VALUE x, VALUE y)
 
VALUE rb_rational_reciprocal (VALUE x)
 
VALUE rb_reg_compile (VALUE str, int options, const char *sourcefile, int sourceline)
 
VALUE rb_reg_check_preprocess (VALUE)
 
int rb_get_next_signal (void)
 
int rb_sigaltstack_size (void)
 
VALUE rb_fstring (VALUE)
 
int rb_str_buf_cat_escaped_char (VALUE result, unsigned int c, int unicode_p)
 
int rb_str_symname_p (VALUE)
 
VALUE rb_str_quote_unprintable (VALUE)
 
VALUE rb_id_quote_unprintable (ID)
 
void rb_str_fill_terminator (VALUE str, const int termlen)
 
VALUE rb_str_locktmp_ensure (VALUE str, VALUE(*func)(VALUE), VALUE arg)
 
VALUE rb_struct_init_copy (VALUE copy, VALUE s)
 
struct timeval rb_time_timeval (VALUE)
 
VALUE rb_obj_is_mutex (VALUE obj)
 
VALUE rb_suppress_tracing (VALUE(*func)(VALUE), VALUE arg)
 
void rb_thread_execute_interrupts (VALUE th)
 
void rb_clear_trace_func (void)
 
VALUE rb_get_coverages (void)
 
VALUE rb_thread_shield_new (void)
 
VALUE rb_thread_shield_wait (VALUE self)
 
VALUE rb_thread_shield_release (VALUE self)
 
VALUE rb_thread_shield_destroy (VALUE self)
 
void rb_mutex_allow_trap (VALUE self, int val)
 
VALUE rb_uninterruptible (VALUE(*b_proc)(ANYARGS), VALUE data)
 
VALUE rb_mutex_owned_p (VALUE self)
 
void ruby_kill (rb_pid_t pid, int sig)
 
void Init_native_thread (void)
 
rb_serial_t rb_next_class_serial (void)
 
VALUE rb_obj_is_thread (VALUE obj)
 
void rb_vm_mark (void *ptr)
 
void Init_BareVM (void)
 
VALUE rb_vm_top_self (void)
 
void rb_thread_recycle_stack_release (VALUE *)
 
void rb_vm_change_state (void)
 
void rb_vm_inc_const_missing_count (void)
 
void rb_thread_mark (void *th)
 
const void ** rb_vm_get_insns_address_table (void)
 
VALUE rb_sourcefilename (void)
 
void rb_vm_pop_cfunc_frame (void)
 
void rb_vm_bugreport (void)
 
void rb_print_backtrace (void)
 
void Init_vm_eval (void)
 
VALUE rb_current_realfilepath (void)
 
VALUE rb_check_block_call (VALUE, ID, int, const VALUE *, rb_block_call_func_t, VALUE)
 
VALUE rb_check_funcall_with_hook (VALUE recv, ID mid, int argc, const VALUE *argv, rb_check_funcall_hook *hook, VALUE arg)
 
VALUE rb_catch_protect (VALUE t, rb_block_call_func *func, VALUE data, int *stateptr)
 
VALUE rb_equal_opt (VALUE obj1, VALUE obj2)
 
int rb_get_kwargs (VALUE keyword_hash, const ID *table, int required, int optional, VALUE *)
 
VALUE rb_extract_keywords (VALUE *orighash)
 
void Init_eval_method (void)
 
int rb_method_defined_by (VALUE obj, ID mid, VALUE(*cfunc)(ANYARGS))
 
void Init_prelude (void)
 
void Init_vm_backtrace (void)
 
VALUE rb_vm_thread_backtrace (int argc, VALUE *argv, VALUE thval)
 
VALUE rb_vm_thread_backtrace_locations (int argc, VALUE *argv, VALUE thval)
 
VALUE rb_make_backtrace (void)
 
void rb_backtrace_print_as_bugreport (void)
 
int rb_backtrace_p (VALUE obj)
 
VALUE rb_backtrace_to_str_ary (VALUE obj)
 
VALUE rb_backtrace_to_location_ary (VALUE obj)
 
void rb_backtrace_print_to (VALUE output)
 
VALUE rb_vm_backtrace_object (void)
 
RUBY_SYMBOL_EXPORT_BEGIN const char * rb_objspace_data_type_name (VALUE obj)
 
VALUE rb_thread_io_blocking_region (rb_blocking_function_t *func, void *data1, int fd)
 
VALUE rb_big_mul_normal (VALUE x, VALUE y)
 
VALUE rb_big_mul_balance (VALUE x, VALUE y)
 
VALUE rb_big_mul_karatsuba (VALUE x, VALUE y)
 
VALUE rb_big_mul_toom3 (VALUE x, VALUE y)
 
VALUE rb_big_sq_fast (VALUE x)
 
VALUE rb_big_divrem_normal (VALUE x, VALUE y)
 
VALUE rb_big2str_poweroftwo (VALUE x, int base)
 
VALUE rb_big2str_generic (VALUE x, int base)
 
VALUE rb_str2big_poweroftwo (VALUE arg, int base, int badcheck)
 
VALUE rb_str2big_normal (VALUE arg, int base, int badcheck)
 
VALUE rb_str2big_karatsuba (VALUE arg, int base, int badcheck)
 
int rb_bug_reporter_add (void(*func)(FILE *, void *), void *data)
 
void rb_maygvl_fd_fix_cloexec (int fd)
 
VALUE rb_int_positive_pow (long x, unsigned long y)
 
int rb_exec_async_signal_safe (const struct rb_execarg *e, char *errmsg, size_t errmsg_buflen)
 
rb_pid_t rb_fork_async_signal_safe (int *status, int(*chfunc)(void *, char *, size_t), void *charg, VALUE fds, char *errmsg, size_t errmsg_buflen)
 
VALUE rb_execarg_new (int argc, VALUE *argv, int accept_shell)
 
struct rb_execargrb_execarg_get (VALUE execarg_obj)
 
VALUE rb_execarg_init (int argc, VALUE *argv, int accept_shell, VALUE execarg_obj)
 
int rb_execarg_addopt (VALUE execarg_obj, VALUE key, VALUE val)
 
void rb_execarg_fixup (VALUE execarg_obj)
 
int rb_execarg_run_options (const struct rb_execarg *e, struct rb_execarg *s, char *errmsg, size_t errmsg_buflen)
 
VALUE rb_execarg_extract_options (VALUE execarg_obj, VALUE opthash)
 
void rb_execarg_setenv (VALUE execarg_obj, VALUE env)
 
VALUE rb_gcd_normal (VALUE self, VALUE other)
 
unsigned long ruby_scan_digits (const char *str, ssize_t len, int base, size_t *retlen, int *overflow)
 
void rb_gc_mark_global_tbl (void)
 
void rb_mark_generic_ivar (VALUE)
 
void rb_mark_generic_ivar_tbl (void)
 
int rb_st_insert_id_and_value (VALUE obj, st_table *tbl, ID key, VALUE value)
 
st_tablerb_st_copy (VALUE obj, struct st_table *orig_tbl)
 
size_t rb_obj_memsize_of (VALUE)
 
size_t rb_obj_gc_flags (VALUE, ID[], size_t)
 

Variables

const signed char ruby_digit36_to_number_table []
 

Macro Definition Documentation

◆ ARGVSTR2ARGC

#define ARGVSTR2ARGC (   argv_str)    (RSTRING_LEN(argv_str) / sizeof(char *) - 2)

Definition at line 685 of file internal.h.

Referenced by rb_spawn_process().

◆ ARGVSTR2ARGV

#define ARGVSTR2ARGV (   argv_str)    ((char **)RSTRING_PTR(argv_str) + 1)

Definition at line 686 of file internal.h.

Referenced by pipe_open(), proc_exec_cmd(), and rb_spawn_process().

◆ bit_length

#define bit_length (   x)
Value:
(sizeof(x) <= SIZEOF_INT ? SIZEOF_INT * CHAR_BIT - nlz_int((unsigned int)(x)) : \
SIZEOF_LONG * CHAR_BIT - nlz_long((unsigned long)(x)))
#define CHAR_BIT
Definition: ruby.h:198
static int nlz_int(unsigned int x)
Definition: internal.h:116
static int nlz_long(unsigned long x)
Definition: internal.h:146

Definition at line 236 of file internal.h.

Referenced by bary_mul_precheck(), big_shift2(), bigdivrem_single1(), rb_big_lshift(), rb_big_rshift(), rb_cstr_to_inum(), rb_fix_bit_length(), and rb_str2big_poweroftwo().

◆ GCC_VERSION_SINCE

#define GCC_VERSION_SINCE (   major,
  minor,
  patchlevel 
)
Value:
(defined(__GNUC__) && !defined(__INTEL_COMPILER) && \
((__GNUC__ > (major)) || \
(__GNUC__ == (major) && __GNUC_MINOR__ > (minor)) || \
(__GNUC__ == (major) && __GNUC_MINOR__ == (minor) && __GNUC_PATCHLEVEL__ >= (patchlevel))))
int minor
Definition: tcltklib.c:111
int patchlevel
Definition: tcltklib.c:113
int major
Definition: tcltklib.c:110

Definition at line 39 of file internal.h.

◆ HASH_DELETED

#define HASH_DELETED   FL_USER1

Definition at line 481 of file internal.h.

Referenced by hash_foreach_ensure(), hash_foreach_iter(), and rb_hash_delete_key().

◆ HASH_PROC_DEFAULT

#define HASH_PROC_DEFAULT   FL_USER2

◆ is_ascii_string

#define is_ascii_string (   str)    (rb_enc_str_coderange(str) == ENC_CODERANGE_7BIT)

Definition at line 732 of file internal.h.

Referenced by dump_object(), rb_str_conv_enc_opts(), rb_str_split_m(), and rb_str_upto().

◆ is_broken_string

#define is_broken_string (   str)    (rb_enc_str_coderange(str) == ENC_CODERANGE_BROKEN)

◆ MUL_OVERFLOW_FIXNUM_P

#define MUL_OVERFLOW_FIXNUM_P (   a,
 
)    MUL_OVERFLOW_SIGNED_INTEGER_P(a, b, FIXNUM_MIN, FIXNUM_MAX)

Definition at line 68 of file internal.h.

Referenced by fix_mul(), and int_pow().

◆ MUL_OVERFLOW_INT_P

#define MUL_OVERFLOW_INT_P (   a,
 
)    MUL_OVERFLOW_SIGNED_INTEGER_P(a, b, INT_MIN, INT_MAX)

Definition at line 70 of file internal.h.

◆ MUL_OVERFLOW_LONG_P

#define MUL_OVERFLOW_LONG_P (   a,
 
)    MUL_OVERFLOW_SIGNED_INTEGER_P(a, b, LONG_MIN, LONG_MAX)

Definition at line 69 of file internal.h.

Referenced by f_imul(), and rb_ary_product().

◆ MUL_OVERFLOW_SIGNED_INTEGER_P

#define MUL_OVERFLOW_SIGNED_INTEGER_P (   a,
  b,
  min,
  max 
)
Value:
( \
(a) == 0 ? 0 : \
(a) == -1 ? (b) < -(max) : \
(a) > 0 ? \
((b) > 0 ? (max) / (a) < (b) : (min) / (a) > (b)) : \
((b) > 0 ? (min) / (a) < (b) : (max) / (a) > (b)))
static int max(int a, int b)
Definition: strftime.c:141

Definition at line 62 of file internal.h.

◆ numberof

#define numberof (   array)    ((int)(sizeof(array) / sizeof((array)[0])))

Definition at line 35 of file internal.h.

◆ QUOTE

#define QUOTE (   str)    rb_str_quote_unprintable(str)

◆ QUOTE_ID

#define QUOTE_ID (   id)    rb_id_quote_unprintable(id)

◆ rb_ascii8bit_encindex

#define rb_ascii8bit_encindex (   void)    ENCINDEX_ASCII

◆ rb_float_new

#define rb_float_new (   d)    rb_float_new_inline(d)

◆ rb_float_value

#define rb_float_value (   v)    rb_float_value_inline(v)

Definition at line 595 of file internal.h.

Referenced by rb_any_hash().

◆ RB_MAX_GROUPS

#define RB_MAX_GROUPS   (65536)

Definition at line 637 of file internal.h.

Referenced by rb_group_member().

◆ RB_OBJ_GC_FLAGS_MAX

#define RB_OBJ_GC_FLAGS_MAX   5

Definition at line 884 of file internal.h.

Referenced by dump_object().

◆ rb_sys_fail_path

#define rb_sys_fail_path (   path)    rb_sys_fail_str(path)

◆ rb_syserr_fail_path

#define rb_syserr_fail_path (   err,
  path 
)    rb_syserr_fail_str((err), (path))

Definition at line 451 of file internal.h.

Referenced by rb_io_reopen().

◆ rb_usascii_encindex

#define rb_usascii_encindex (   void)    ENCINDEX_US_ASCII

◆ rb_utf8_encindex

#define rb_utf8_encindex (   void)    ENCINDEX_UTF_8

◆ RBASIC_CLEAR_CLASS

#define RBASIC_CLEAR_CLASS (   obj)    (((struct RBasicRaw *)((VALUE)(obj)))->klass = 0)

◆ RBASIC_SET_CLASS

#define RBASIC_SET_CLASS (   obj,
  cls 
)

◆ RBASIC_SET_CLASS_RAW

#define RBASIC_SET_CLASS_RAW (   obj,
  cls 
)    (((struct RBasicRaw *)((VALUE)(obj)))->klass = (cls))

◆ RCLASS_CONST_TBL

#define RCLASS_CONST_TBL (   c)    (RCLASS_EXT(c)->const_tbl)

◆ RCLASS_EXT

#define RCLASS_EXT (   c)    (RCLASS(c)->ptr)

Definition at line 291 of file internal.h.

◆ RCLASS_IV_INDEX_TBL

#define RCLASS_IV_INDEX_TBL (   c)    (RCLASS_EXT(c)->iv_index_tbl)

Definition at line 296 of file internal.h.

Referenced by class_alloc(), obj_free(), obj_memsize_of(), and rb_ivar_set().

◆ RCLASS_IV_TBL

#define RCLASS_IV_TBL (   c)    (RCLASS_EXT(c)->iv_tbl)

◆ RCLASS_M_TBL

#define RCLASS_M_TBL (   c)    (RCLASS_M_TBL_WRAPPER(c) ? RCLASS_M_TBL_WRAPPER(c)->tbl : 0)

◆ RCLASS_M_TBL_WRAPPER

#define RCLASS_M_TBL_WRAPPER (   c)    (RCLASS(c)->m_tbl_wrapper)

◆ RCLASS_ORIGIN

#define RCLASS_ORIGIN (   c)    (RCLASS_EXT(c)->origin)

◆ RCLASS_REFINED_CLASS

#define RCLASS_REFINED_CLASS (   c)    (RCLASS_EXT(c)->refined_class)

◆ RCLASS_SERIAL

#define RCLASS_SERIAL (   c)    (RCLASS_EXT(c)->class_serial)

◆ RHASH_TBL_RAW

#define RHASH_TBL_RAW (   h)    rb_hash_tbl_raw(h)

Definition at line 478 of file internal.h.

Referenced by count_objects(), kwmerge_i(), rb_ary_or(), and rb_execarg_fixup().

◆ SERIALT2NUM

#define SERIALT2NUM   ULONG2NUM

Definition at line 261 of file internal.h.

◆ SIGNED_INTEGER_MAX

#define SIGNED_INTEGER_MAX (   sint_type)
Value:
(sint_type) \
((((sint_type)1) << (sizeof(sint_type) * CHAR_BIT - 2)) | \
((((sint_type)1) << (sizeof(sint_type) * CHAR_BIT - 2)) - 1))
#define CHAR_BIT
Definition: ruby.h:198

Definition at line 46 of file internal.h.

◆ SIGNED_INTEGER_MIN

#define SIGNED_INTEGER_MIN (   sint_type)    (-SIGNED_INTEGER_MAX(sint_type)-1)

Definition at line 50 of file internal.h.

◆ SIGNED_INTEGER_TYPE_P

#define SIGNED_INTEGER_TYPE_P (   int_type)    (0 > ((int_type)0)-1)

Definition at line 45 of file internal.h.

◆ SIZED_REALLOC_N

#define SIZED_REALLOC_N (   var,
  type,
  n,
  old_n 
)    ((var)=(type*)ruby_sized_xrealloc((char*)(var), (n) * sizeof(type), (old_n) * sizeof(type)))

Definition at line 471 of file internal.h.

Referenced by ary_resize_capa(), and rb_ary_resize().

◆ STATIC_ASSERT

#define STATIC_ASSERT (   name,
  expr 
)    typedef int static_assert_##name##_check[1 - 2*!(expr)]

Definition at line 37 of file internal.h.

◆ STR_ASSOC

#define STR_ASSOC   FL_USER3

Definition at line 726 of file internal.h.

◆ STR_ASSOC_P

#define STR_ASSOC_P (   s)    FL_ALL_RAW((s), STR_NOEMBED|STR_ASSOC)

◆ STR_EMBED_P

#define STR_EMBED_P (   str)    (!FL_TEST_RAW((str), STR_NOEMBED))

◆ STR_NOCAPA

#define STR_NOCAPA   (STR_NOEMBED|ELTS_SHARED|STR_ASSOC)

Definition at line 729 of file internal.h.

Referenced by rb_str_shared_replace().

◆ STR_NOCAPA_P

#define STR_NOCAPA_P (   s)    (FL_TEST_RAW((s),STR_NOEMBED) && FL_ANY_RAW((s),ELTS_SHARED|STR_ASSOC))

Definition at line 730 of file internal.h.

Referenced by dump_object(), rb_str_capacity(), and rb_str_shared_replace().

◆ STR_NOEMBED

#define STR_NOEMBED   FL_USER1

◆ STR_SHARED

#define STR_SHARED   FL_USER2 /* = ELTS_SHARED */

Definition at line 725 of file internal.h.

◆ STR_SHARED_P

#define STR_SHARED_P (   s)    FL_ALL_RAW((s), STR_NOEMBED|ELTS_SHARED)

◆ swap16

#define swap16 (   x)    ((uint16_t)((((x)&0xFF)<<8) | (((x)>>8)&0xFF)))

Definition at line 79 of file internal.h.

Referenced by bary_pack(), and bary_unpack_internal().

◆ swap32

#define swap32 (   x)
Value:
((uint32_t)((((x)&0xFF)<<24) \
|(((x)>>24)&0xFF) \
|(((x)&0x0000FF00)<<8) \
|(((x)&0x00FF0000)>>8) ))
unsigned int uint32_t
Definition: sha2.h:101

Definition at line 89 of file internal.h.

Referenced by bary_pack(), bary_unpack_internal(), and define_swapx().

◆ TIMET_MAX_PLUS_ONE

#define TIMET_MAX_PLUS_ONE   (2*(double)(TIMET_MAX/2+1))

Definition at line 60 of file internal.h.

◆ UNSIGNED_INTEGER_MAX

#define UNSIGNED_INTEGER_MAX (   uint_type)    (~(uint_type)0)

Definition at line 51 of file internal.h.

◆ VALGRIND_MAKE_MEM_DEFINED

#define VALGRIND_MAKE_MEM_DEFINED (   p,
 
)    0

Definition at line 31 of file internal.h.

◆ VALGRIND_MAKE_MEM_UNDEFINED

#define VALGRIND_MAKE_MEM_UNDEFINED (   p,
 
)    0

Definition at line 32 of file internal.h.

Typedef Documentation

◆ rb_check_funcall_hook

typedef void rb_check_funcall_hook(int, VALUE, ID, int, const VALUE *, VALUE)

Definition at line 783 of file internal.h.

◆ rb_serial_t

typedef unsigned long rb_serial_t

Definition at line 260 of file internal.h.

◆ rb_subclass_entry_t

Definition at line 246 of file internal.h.

Function Documentation

◆ Init_BareVM()

void Init_BareVM ( void  )

◆ Init_eval_method()

void Init_eval_method ( void  )

◆ Init_ext()

void Init_ext ( void  )

Definition at line 2 of file dmyext.c.

Referenced by init_libraries_internal(), and process_options().

◆ Init_File()

void Init_File ( void  )

Definition at line 5623 of file file.c.

References define_filetest_function(), INT2FIX, LOCK_EX, LOCK_NB, LOCK_SH, LOCK_UN, null_device, O_BINARY, O_NONBLOCK, PATH_SEP, Qnil, rb_cFile, rb_cIO, rb_cObject, rb_cStat, rb_define_alloc_func(), rb_define_class(), rb_define_class_under(), rb_define_const(), rb_define_global_function(), rb_define_method(), rb_define_module(), rb_define_module_under(), rb_define_singleton_method(), rb_f_test(), rb_file_atime(), rb_file_blockdev_p(), rb_file_chardev_p(), rb_file_chmod(), rb_file_chown(), rb_file_ctime(), rb_file_directory_p(), rb_file_executable_p(), rb_file_executable_real_p(), rb_file_exist_p(), rb_file_exists_p(), rb_file_file_p(), rb_file_flock(), rb_file_grpowned_p(), rb_file_identical_p(), rb_file_lstat(), rb_file_mtime(), rb_file_owned_p(), rb_file_path(), rb_file_pipe_p(), rb_file_readable_p(), rb_file_readable_real_p(), rb_file_s_absolute_path(), rb_file_s_atime(), rb_file_s_basename(), rb_file_s_chmod(), rb_file_s_chown(), rb_file_s_ctime(), rb_file_s_dirname(), rb_file_s_expand_path(), rb_file_s_extname(), rb_file_s_ftype(), rb_file_s_join(), rb_file_s_lchmod, rb_file_s_lchown, rb_file_s_link, rb_file_s_lstat(), rb_file_s_mtime(), rb_file_s_path(), rb_file_s_readlink, rb_file_s_realdirpath(), rb_file_s_realpath(), rb_file_s_rename(), rb_file_s_size(), rb_file_s_split(), rb_file_s_stat(), rb_file_s_symlink, rb_file_s_truncate, rb_file_s_umask(), rb_file_s_unlink(), rb_file_s_utime(), rb_file_sgid_p(), rb_file_size(), rb_file_size_p(), rb_file_socket_p(), rb_file_sticky_p(), rb_file_suid_p(), rb_file_symlink_p(), rb_file_truncate, rb_file_world_readable_p(), rb_file_world_writable_p(), rb_file_writable_p(), rb_file_writable_real_p(), rb_file_zero_p(), rb_include_module(), rb_io_stat(), rb_mComparable, rb_mFConst, rb_mFileTest, rb_obj_freeze(), rb_stat_atime(), rb_stat_b(), rb_stat_blksize(), rb_stat_blocks(), rb_stat_c(), rb_stat_cmp(), rb_stat_ctime(), rb_stat_d(), rb_stat_dev(), rb_stat_dev_major(), rb_stat_dev_minor(), rb_stat_f(), rb_stat_ftype(), rb_stat_gid(), rb_stat_grpowned(), rb_stat_init(), rb_stat_init_copy(), rb_stat_ino(), rb_stat_inspect(), rb_stat_l(), rb_stat_mode(), rb_stat_mtime(), rb_stat_nlink(), rb_stat_owned(), rb_stat_p(), rb_stat_r(), rb_stat_R(), rb_stat_rdev(), rb_stat_rdev_major(), rb_stat_rdev_minor(), rb_stat_S(), rb_stat_s(), rb_stat_s_alloc(), rb_stat_sgid(), rb_stat_size(), rb_stat_sticky(), rb_stat_suid(), rb_stat_uid(), rb_stat_w(), rb_stat_W(), rb_stat_wr(), rb_stat_ww(), rb_stat_x(), rb_stat_X(), rb_stat_z(), rb_str_new2, rb_usascii_str_new2, and separator.

Referenced by Init_IO().

◆ Init_heap()

void Init_heap ( void  )

◆ Init_native_thread()

void Init_native_thread ( void  )

Referenced by Init_BareVM().

◆ Init_newline()

void Init_newline ( void  )

Definition at line 183 of file newline.c.

References rb_cr_newline, rb_crlf_newline, rb_register_transcoder(), and rb_universal_newline.

Referenced by Init_transcode().

◆ Init_prelude()

void Init_prelude ( void  )

Referenced by ruby_init_prelude().

◆ Init_vm_backtrace()

void Init_vm_backtrace ( void  )

◆ Init_vm_eval()

void Init_vm_eval ( void  )

◆ nlz_int()

static int nlz_int ( unsigned int  x)
inlinestatic

Definition at line 116 of file internal.h.

References CHAR_BIT.

Referenced by nlz().

◆ nlz_long()

static int nlz_long ( unsigned long  x)
inlinestatic

Definition at line 146 of file internal.h.

References CHAR_BIT.

◆ NORETURN() [1/4]

NORETURN ( PRINTF_ARGS(void rb_compile_bug(const char *, int, const char *,...), 3, 4)  )

◆ NORETURN() [2/4]

NORETURN ( void   rb_async_bug_errnoconst char *, int)

◆ NORETURN() [3/4]

NORETURN ( void   rb_load_failVALUE, const char *)

◆ NORETURN() [4/4]

NORETURN ( void   rb_undefined_allocVALUE klass)

◆ PRINTF_ARGS()

PRINTF_ARGS ( void   ruby_debug_printfconst char *,...,
,
 
)

◆ rb_ary_delete_same()

void rb_ary_delete_same ( VALUE  ,
VALUE   
)

Definition at line 2939 of file array.c.

References ary_sort_data::ary, ary_resize_smaller(), RARRAY_AREF, RARRAY_LEN, and rb_ary_store().

◆ rb_ary_last()

VALUE rb_ary_last ( int  ,
VALUE ,
VALUE   
)

Definition at line 1337 of file array.c.

References argc, argv, ary_take_first_or_last(), ARY_TAKE_LAST, Qnil, RARRAY_AREF, and RARRAY_LEN.

Referenced by Init_Array(), and range_last().

◆ rb_ary_set_len()

void rb_ary_set_len ( VALUE  ,
long   
)

◆ rb_backtrace_p()

int rb_backtrace_p ( VALUE  obj)

Definition at line 417 of file vm_backtrace.c.

References backtrace_data_type, and rb_typeddata_is_kind_of().

Referenced by exc_backtrace(), rb_check_backtrace(), and set_backtrace().

◆ rb_backtrace_print_as_bugreport()

void rb_backtrace_print_as_bugreport ( void  )

◆ rb_backtrace_print_to()

void rb_backtrace_print_to ( VALUE  output)

◆ rb_backtrace_to_location_ary()

VALUE rb_backtrace_to_location_ary ( VALUE  obj)

◆ rb_backtrace_to_str_ary()

VALUE rb_backtrace_to_str_ary ( VALUE  obj)

◆ rb_big2str_generic()

VALUE rb_big2str_generic ( VALUE  x,
int  base 
)

Definition at line 4892 of file bignum.c.

References big2str_struct::base, and big2str_generic().

◆ rb_big2str_poweroftwo()

VALUE rb_big2str_poweroftwo ( VALUE  x,
int  base 
)

Definition at line 4809 of file bignum.c.

References big2str_base_poweroftwo().

◆ rb_big_divrem_normal()

VALUE rb_big_divrem_normal ( VALUE  x,
VALUE  y 
)

◆ rb_big_fdiv()

VALUE rb_big_fdiv ( VALUE  x,
VALUE  y 
)

◆ rb_big_mul_balance()

VALUE rb_big_mul_balance ( VALUE  x,
VALUE  y 
)

◆ rb_big_mul_karatsuba()

VALUE rb_big_mul_karatsuba ( VALUE  x,
VALUE  y 
)

◆ rb_big_mul_normal()

VALUE rb_big_mul_normal ( VALUE  x,
VALUE  y 
)

Definition at line 1540 of file bignum.c.

References bary_mul_normal(), BDIGITS, bignew, RB_GC_GUARD, RBIGNUM_LEN, and RBIGNUM_SIGN.

◆ rb_big_mul_toom3()

VALUE rb_big_mul_toom3 ( VALUE  x,
VALUE  y 
)

◆ rb_big_sq_fast()

VALUE rb_big_sq_fast ( VALUE  x)

Definition at line 1609 of file bignum.c.

References bary_sq_fast(), BDIGITS, bignew, RB_GC_GUARD, and RBIGNUM_LEN.

◆ rb_big_uminus()

VALUE rb_big_uminus ( VALUE  x)

Definition at line 5578 of file bignum.c.

References bignorm(), rb_big_clone(), RBIGNUM_SET_SIGN, and RBIGNUM_SIGN.

Referenced by Init_Bignum(), and rand_int().

◆ rb_block_arity()

int rb_block_arity ( void  )

◆ rb_block_clear_env_self()

VALUE rb_block_clear_env_self ( VALUE  proc)

Definition at line 640 of file proc.c.

References env, rb_proc_t::envval, GetEnvPtr, GetProcPtr, and Qnil.

Referenced by sym_to_proc().

◆ rb_bug_reporter_add()

int rb_bug_reporter_add ( void(*)(FILE *, void *)  func,
void *  data 
)

◆ rb_builtin_class_name()

const char* rb_builtin_class_name ( VALUE  x)

Definition at line 451 of file error.c.

References FIXNUM_P, NIL_P, rb_obj_classname(), RB_TYPE_P, SYMBOL_P, T_FALSE, and T_TRUE.

Referenced by enum_to_h_i(), rb_ary_to_h(), and rb_hash_s_create().

◆ rb_builtin_type_name()

const char* rb_builtin_type_name ( int  t)

Definition at line 440 of file error.c.

References builtin_types, name, numberof, and t().

Referenced by rb_check_type(), and w_object().

◆ rb_call_end_proc()

void rb_call_end_proc ( VALUE  data)

Definition at line 11 of file eval_jump.c.

References rb_ary_new(), and rb_proc_call().

Referenced by m_core_set_postexe(), and rb_f_at_exit().

◆ rb_call_inits()

void rb_call_inits ( void  )

Definition at line 18 of file inits.c.

References CALL, signal(), sym, and version().

Referenced by ruby_setup().

◆ rb_catch_protect()

VALUE rb_catch_protect ( VALUE  t,
rb_block_call_func func,
VALUE  data,
int *  stateptr 
)

◆ rb_check_backtrace()

VALUE rb_check_backtrace ( VALUE  )

◆ rb_check_block_call()

VALUE rb_check_block_call ( VALUE  ,
ID  ,
int  ,
const VALUE ,
rb_block_call_func_t  ,
VALUE   
)

Referenced by take_items().

◆ rb_check_funcall_with_hook()

VALUE rb_check_funcall_with_hook ( VALUE  recv,
ID  mid,
int  argc,
const VALUE argv,
rb_check_funcall_hook hook,
VALUE  arg 
)

◆ rb_class_search_ancestor()

VALUE rb_class_search_ancestor ( VALUE  klass,
VALUE  super 
)

Definition at line 666 of file object.c.

References class_or_module_required(), class_search_ancestor(), and RCLASS_ORIGIN.

Referenced by umethod_bind().

◆ rb_clear_trace_func()

void rb_clear_trace_func ( void  )

Definition at line 225 of file vm_trace.c.

References clear_trace_func_i(), GET_VM, rb_remove_event_hook(), st_data_t, and st_foreach().

Referenced by ruby_finalize_0(), and ruby_options().

◆ rb_current_realfilepath()

VALUE rb_current_realfilepath ( void  )

◆ rb_dbl_hash()

VALUE rb_dbl_hash ( double  d)

Definition at line 1122 of file numeric.c.

References hash(), LONG2FIX, and rb_memhash().

Referenced by flo_hash(), and rb_any_hash().

◆ rb_default_home_dir()

VALUE rb_default_home_dir ( VALUE  result)

Definition at line 3019 of file file.c.

References copy_home_path(), getenv, rb_eArgError, rb_raise(), and result.

Referenced by dir_s_home(), and rb_file_expand_path_internal().

◆ rb_dvar_defined()

int rb_dvar_defined ( ID  )

◆ rb_equal_opt()

VALUE rb_equal_opt ( VALUE  obj1,
VALUE  obj2 
)

◆ rb_exec_async_signal_safe()

int rb_exec_async_signal_safe ( const struct rb_execarg e,
char *  errmsg,
size_t  errmsg_buflen 
)

◆ rb_execarg_addopt()

int rb_execarg_addopt ( VALUE  execarg_obj,
VALUE  key,
VALUE  val 
)

◆ rb_execarg_extract_options()

VALUE rb_execarg_extract_options ( VALUE  execarg_obj,
VALUE  opthash 
)

◆ rb_execarg_fixup()

void rb_execarg_fixup ( VALUE  execarg_obj)

◆ rb_execarg_get()

struct rb_execarg* rb_execarg_get ( VALUE  execarg_obj)

◆ rb_execarg_init()

VALUE rb_execarg_init ( int  argc,
VALUE argv,
int  accept_shell,
VALUE  execarg_obj 
)

◆ rb_execarg_new()

VALUE rb_execarg_new ( int  argc,
VALUE argv,
int  accept_shell 
)

◆ rb_execarg_run_options()

int rb_execarg_run_options ( const struct rb_execarg e,
struct rb_execarg s,
char *  errmsg,
size_t  errmsg_buflen 
)

◆ rb_execarg_setenv()

void rb_execarg_setenv ( VALUE  execarg_obj,
VALUE  env 
)

Definition at line 2300 of file process.c.

References env, rb_execarg::env_modification, NIL_P, Qfalse, rb_check_exec_env(), and rb_execarg_get().

Referenced by rb_io_s_popen().

◆ rb_fiber_reset_root_local_storage()

void rb_fiber_reset_root_local_storage ( VALUE  )

◆ rb_file_const()

void rb_file_const ( const char *  ,
VALUE   
)

Definition at line 5276 of file file.c.

References name, rb_define_const(), and rb_mFConst.

Referenced by Init_Dir().

◆ rb_file_expand_path_fast()

VALUE rb_file_expand_path_fast ( VALUE  ,
VALUE   
)

Definition at line 3429 of file file.c.

References expand_path, and EXPAND_PATH_BUFFER.

Referenced by rb_construct_expanded_load_path(), and rb_feature_provided().

◆ rb_file_expand_path_internal()

VALUE rb_file_expand_path_internal ( VALUE  ,
VALUE  ,
int  ,
int  ,
VALUE   
)

◆ rb_file_load_ok()

int rb_file_load_ok ( const char *  )

◆ rb_float_new_inline()

static VALUE rb_float_new_inline ( double  d)
inlinestatic

Definition at line 566 of file internal.h.

References rb_float_new_in_heap(), and t().

Referenced by rb_float_new().

◆ rb_float_value_inline()

static double rb_float_value_inline ( VALUE  v)
inlinestatic

Definition at line 540 of file internal.h.

References FLONUM_P, and t().

Referenced by rb_float_value().

◆ rb_fork_async_signal_safe()

rb_pid_t rb_fork_async_signal_safe ( int *  status,
int(*)(void *, char *, size_t)  chfunc,
void *  charg,
VALUE  fds,
char *  errmsg,
size_t  errmsg_buflen 
)

◆ rb_fork_ruby()

rb_pid_t rb_fork_ruby ( int *  status)

Referenced by pipe_open().

◆ rb_fstring()

VALUE rb_fstring ( VALUE  )

◆ rb_gc_mark_encodings()

void rb_gc_mark_encodings ( void  )

Definition at line 236 of file encoding.c.

Referenced by gc_mark_roots().

◆ rb_gc_mark_global_tbl()

void rb_gc_mark_global_tbl ( void  )

Definition at line 562 of file variable.c.

References mark_global_entry(), rb_global_tbl, and st_foreach_safe().

Referenced by gc_mark_roots().

◆ rb_gc_mark_parser()

void rb_gc_mark_parser ( void  )

Definition at line 16648 of file ripper.c.

Referenced by gc_mark_roots().

◆ rb_gc_mark_symbols()

void rb_gc_mark_symbols ( int  full_mark)

◆ rb_gc_resurrect()

void rb_gc_resurrect ( VALUE  ptr)

Definition at line 3615 of file gc.c.

References gc_mark_ptr(), gc_marked(), heap_eden, is_lazy_sweeping, is_swept_object(), and rb_objspace.

Referenced by fstr_update_callback().

◆ rb_gc_writebarrier_remember_promoted()

void rb_gc_writebarrier_remember_promoted ( VALUE  obj)

Definition at line 4785 of file gc.c.

References rb_objspace, and rgengc_remember().

Referenced by ary_memcpy(), rb_ary_modify(), rb_hash_keys(), and rb_hash_values().

◆ rb_gcd_normal()

VALUE rb_gcd_normal ( VALUE  self,
VALUE  other 
)

Definition at line 356 of file rational.c.

References f_gcd_normal().

◆ rb_get_backtrace()

VALUE rb_get_backtrace ( VALUE  info)

Definition at line 55 of file eval_error.c.

References get_backtrace().

Referenced by eval_string_with_cref().

◆ rb_get_coverages()

VALUE rb_get_coverages ( void  )

Definition at line 5297 of file thread.c.

Referenced by coverage(), prepare_iseq_build(), rb_coverage_result(), and rb_coverage_start().

◆ rb_get_expanded_load_path()

VALUE rb_get_expanded_load_path ( void  )

◆ rb_get_load_path()

VALUE rb_get_load_path ( void  )

Definition at line 32 of file load.c.

References GET_VM.

◆ rb_get_next_signal()

int rb_get_next_signal ( void  )

Definition at line 696 of file signal.c.

References ATOMIC_DEC, RUBY_NSIG, and signal_buff.

Referenced by rb_threadptr_execute_interrupts().

◆ rb_get_path_check_convert()

VALUE rb_get_path_check_convert ( VALUE  ,
VALUE  ,
int   
)

◆ rb_get_path_check_to_string()

VALUE rb_get_path_check_to_string ( VALUE  ,
int   
)

◆ rb_hash_keys()

VALUE rb_hash_keys ( VALUE  hash)

◆ rb_hash_proc()

st_index_t rb_hash_proc ( st_index_t  hash,
VALUE  proc 
)

◆ rb_hash_tbl_raw()

struct st_table* rb_hash_tbl_raw ( VALUE  hash)

◆ rb_hash_values()

VALUE rb_hash_values ( VALUE  hash)

◆ rb_home_dir_of()

VALUE rb_home_dir_of ( VALUE  user,
VALUE  result 
)

Definition at line 3002 of file file.c.

References copy_home_path(), PRIsVALUE, rb_eArgError, rb_raise(), result, and RSTRING_PTR.

Referenced by dir_s_home(), and rb_file_expand_path_internal().

◆ rb_id_encoding()

ID rb_id_encoding ( void  )

Definition at line 732 of file encoding.c.

References CONST_ID, and id_encoding.

Referenced by enc_set_index(), id2encidx(), rb_enc_get_index(), w_encoding(), and w_obj_each().

◆ rb_id_quote_unprintable()

VALUE rb_id_quote_unprintable ( ID  )

Definition at line 8424 of file string.c.

References rb_id2str(), and rb_str_quote_unprintable().

◆ rb_insns_name()

const char* rb_insns_name ( int  i)

Definition at line 5612 of file compile.c.

◆ rb_insns_name_array()

VALUE rb_insns_name_array ( void  )

Definition at line 5618 of file compile.c.

References numberof, rb_ary_new(), rb_ary_push(), rb_fstring(), rb_obj_freeze(), and rb_str_new2.

Referenced by Init_VM().

◆ rb_int_positive_pow()

VALUE rb_int_positive_pow ( long  x,
unsigned long  y 
)

Definition at line 3056 of file numeric.c.

References int_pow().

Referenced by parser_yylex().

◆ rb_int_pred()

VALUE rb_int_pred ( VALUE  num)

Definition at line 2508 of file numeric.c.

References FIX2LONG, FIXNUM_P, INT2FIX, LONG2NUM, rb_big_minus(), rb_funcall(), RB_TYPE_P, and T_BIGNUM.

◆ rb_int_succ()

VALUE rb_int_succ ( VALUE  num)

Definition at line 2483 of file numeric.c.

References FIX2LONG, FIXNUM_P, INT2FIX, LONG2NUM, rb_big_plus(), rb_funcall(), RB_TYPE_P, and T_BIGNUM.

Referenced by enumerator_with_index_i().

◆ rb_integer_float_cmp()

VALUE rb_integer_float_cmp ( VALUE  x,
VALUE  y 
)

◆ rb_integer_float_eq()

VALUE rb_integer_float_eq ( VALUE  x,
VALUE  y 
)

Definition at line 5349 of file bignum.c.

References FIX2LONG, FIXNUM_P, isinf(), isnan, LONG_MAX, LONG_MIN, Qfalse, Qtrue, rb_big_eq(), rb_dbl2big(), and RFLOAT_VALUE.

Referenced by fix_equal(), flo_eq(), and rb_big_eq().

◆ rb_invcmp()

VALUE rb_invcmp ( VALUE  ,
VALUE   
)

Definition at line 42 of file compar.c.

References INT2FIX, invcmp_recursive(), NIL_P, Qnil, Qundef, rb_cmpint(), rb_exec_recursive(), and result.

Referenced by rb_str_cmp_m(), and time_cmp().

◆ rb_io_bufread()

ssize_t rb_io_bufread ( VALUE  io,
void *  buf,
size_t  size 
)

Definition at line 2094 of file io.c.

References buf, bufread_arg::fptr, GetOpenFile, io_bufread(), rb_io_check_readable(), and size.

◆ rb_io_flush_raw()

VALUE rb_io_flush_raw ( VALUE  ,
int   
)

◆ rb_is_attrset_name()

int rb_is_attrset_name ( VALUE  name)

Definition at line 17454 of file ripper.c.

References ID_ATTRSET, IDSET_ATTRSET_FOR_INTERN, name, and rb_str_symname_type().

Referenced by rb_check_id(), and rb_check_id_cstr().

◆ rb_is_class_name()

int rb_is_class_name ( VALUE  name)

Definition at line 17436 of file ripper.c.

References ID_CLASS, name, and rb_str_symname_type().

Referenced by rb_mod_cvar_defined(), rb_mod_cvar_get(), and rb_mod_remove_cvar().

◆ rb_is_const_name()

int rb_is_const_name ( VALUE  name)

◆ rb_is_global_name()

int rb_is_global_name ( VALUE  name)

Definition at line 17442 of file ripper.c.

References ID_GLOBAL, name, and rb_str_symname_type().

◆ rb_is_instance_name()

int rb_is_instance_name ( VALUE  name)

◆ rb_is_junk_name()

int rb_is_junk_name ( VALUE  name)

Definition at line 17476 of file ripper.c.

References IDSET_ATTRSET_FOR_SYNTAX, name, and rb_str_symname_type().

◆ rb_is_local_name()

int rb_is_local_name ( VALUE  name)

Definition at line 17460 of file ripper.c.

References ID_LOCAL, name, and rb_str_symname_type().

Referenced by check_local_id(), and rb_is_attr_name().

◆ rb_is_method_name()

int rb_is_method_name ( VALUE  name)

Definition at line 17466 of file ripper.c.

References FALSE, ID_ATTRSET, ID_JUNK, ID_LOCAL, name, rb_str_symname_type(), and TRUE.

◆ rb_iseq_absolute_path()

VALUE rb_iseq_absolute_path ( VALUE  iseqval)

◆ rb_iseq_base_label()

VALUE rb_iseq_base_label ( VALUE  iseqval)

◆ rb_iseq_clone()

VALUE rb_iseq_clone ( VALUE  iseqval,
VALUE  newcbase 
)

◆ rb_iseq_first_lineno()

VALUE rb_iseq_first_lineno ( VALUE  iseqval)

◆ rb_iseq_klass()

VALUE rb_iseq_klass ( VALUE  iseqval)

◆ rb_iseq_label()

VALUE rb_iseq_label ( VALUE  iseqval)

Definition at line 913 of file iseq.c.

References GetISeqPtr, rb_iseq_location_struct::label, and rb_iseq_struct::location.

Referenced by Init_ISeq(), and rb_profile_frame_label().

◆ rb_iseq_method_name()

VALUE rb_iseq_method_name ( VALUE  self)

◆ rb_iseq_path()

VALUE rb_iseq_path ( VALUE  iseqval)

Definition at line 858 of file iseq.c.

References GetISeqPtr, rb_iseq_struct::location, and rb_iseq_location_struct::path.

Referenced by Init_ISeq(), and rb_profile_frame_path().

◆ rb_last_status_clear()

void rb_last_status_clear ( void  )

◆ rb_lcm()

VALUE rb_lcm ( VALUE  x,
VALUE  y 
)

Definition at line 1732 of file rational.c.

References f_lcm(), and nurat_int_value().

Referenced by Init_Rational(), and nucomp_denominator().

◆ rb_local_defined()

int rb_local_defined ( ID  )

◆ rb_make_backtrace()

VALUE rb_make_backtrace ( void  )

Definition at line 817 of file vm_backtrace.c.

References GET_THREAD(), and rb_vm_backtrace_str_ary().

◆ rb_mark_end_proc()

void rb_mark_end_proc ( void  )

Definition at line 80 of file eval_jump.c.

References end_procs, ephemeral_end_procs, link(), and rb_gc_mark().

Referenced by gc_mark_roots().

◆ rb_mark_generic_ivar()

void rb_mark_generic_ivar ( VALUE  )

Definition at line 992 of file variable.c.

References generic_iv_tbl, rb_mark_tbl(), st_data_t, and st_lookup().

Referenced by gc_mark_children().

◆ rb_mark_generic_ivar_tbl()

void rb_mark_generic_ivar_tbl ( void  )

Definition at line 1022 of file variable.c.

References generic_iv_tbl, givar_i(), special_generic_ivar, and st_foreach_safe().

Referenced by gc_mark_roots().

◆ rb_math_atan2()

VALUE rb_math_atan2 ( VALUE  ,
VALUE   
)

◆ rb_math_cos()

VALUE rb_math_cos ( VALUE  )

◆ rb_math_cosh()

VALUE rb_math_cosh ( VALUE  )

◆ rb_math_exp()

VALUE rb_math_exp ( VALUE  )

◆ rb_math_hypot()

VALUE rb_math_hypot ( VALUE  ,
VALUE   
)

◆ rb_math_log()

VALUE rb_math_log ( int  argc,
VALUE argv 
)

Referenced by imp2().

◆ rb_math_sin()

VALUE rb_math_sin ( VALUE  )

◆ rb_math_sinh()

VALUE rb_math_sinh ( VALUE  )

◆ rb_math_sqrt()

VALUE rb_math_sqrt ( VALUE  )

◆ rb_maygvl_fd_fix_cloexec()

void rb_maygvl_fd_fix_cloexec ( int  fd)

◆ rb_method_defined_by()

int rb_method_defined_by ( VALUE  obj,
ID  mid,
VALUE(*)(ANYARGS cfunc 
)

◆ rb_mutex_allow_trap()

void rb_mutex_allow_trap ( VALUE  self,
int  val 
)

Definition at line 4646 of file thread.c.

References rb_mutex_struct::allow_trap, GetMutexPtr, and val.

Referenced by io_binwrite().

◆ rb_mutex_owned_p()

VALUE rb_mutex_owned_p ( VALUE  self)

Definition at line 4453 of file thread.c.

References GET_THREAD(), GetMutexPtr, Qfalse, Qtrue, and rb_mutex_struct::th.

Referenced by finish_writeconv(), Init_Thread(), and io_flush_buffer().

◆ rb_next_class_serial()

rb_serial_t rb_next_class_serial ( void  )

Definition at line 92 of file vm.c.

References NEXT_CLASS_SERIAL.

Referenced by class_alloc(), and rb_class_clear_method_cache().

◆ rb_num_negative_p()

int rb_num_negative_p ( VALUE  )

Definition at line 197 of file numeric.c.

References negative_int_p().

Referenced by rb_random_ulong_limited().

◆ rb_num_to_uint()

int rb_num_to_uint ( VALUE  val,
unsigned int *  ret 
)

◆ rb_obj_copy_ivar()

void rb_obj_copy_ivar ( VALUE  dest,
VALUE  obj 
)

Definition at line 255 of file object.c.

References ALLOC_N, MEMCPY, RBASIC, ROBJECT, ROBJECT_EMBED, ROBJECT_EMBED_LEN_MAX, ROBJECT_IVPTR, and xfree().

Referenced by init_copy().

◆ rb_obj_equal()

VALUE rb_obj_equal ( VALUE  obj1,
VALUE  obj2 
)

Definition at line 142 of file object.c.

References Qfalse, and Qtrue.

Referenced by Init_Object(), and opt_eq_func().

◆ rb_obj_gc_flags()

size_t rb_obj_gc_flags ( VALUE  ,
ID  [],
size_t   
)

◆ rb_obj_is_fiber()

VALUE rb_obj_is_fiber ( VALUE  )

Definition at line 376 of file cont.c.

References fiber_data_type, Qfalse, Qtrue, and rb_typeddata_is_kind_of().

Referenced by rb_objspace_call_finalizer().

◆ rb_obj_is_mutex()

VALUE rb_obj_is_mutex ( VALUE  obj)

Definition at line 4220 of file thread.c.

References mutex_data_type, Qfalse, Qtrue, and rb_typeddata_is_kind_of().

Referenced by rb_objspace_call_finalizer().

◆ rb_obj_is_thread()

VALUE rb_obj_is_thread ( VALUE  obj)

Definition at line 2159 of file vm.c.

References Qfalse, Qtrue, rb_typeddata_is_kind_of(), and thread_data_type.

Referenced by rb_objspace_call_finalizer().

◆ rb_obj_memsize_of()

size_t rb_obj_memsize_of ( VALUE  )

Definition at line 2551 of file gc.c.

References obj_memsize_of(), and TRUE.

Referenced by cos_i(), dump_object(), iow_size(), memsize_of_m(), and total_i().

◆ rb_objspace_data_type_name()

RUBY_SYMBOL_EXPORT_BEGIN const char* rb_objspace_data_type_name ( VALUE  obj)

Definition at line 1394 of file gc.c.

References RTYPEDDATA_P, and RTYPEDDATA_TYPE.

Referenced by cto_i(), and type_name().

◆ rb_objspace_set_event_hook()

void rb_objspace_set_event_hook ( const rb_event_flag_t  event)

◆ rb_parse_in_eval()

int rb_parse_in_eval ( void  )

Definition at line 6014 of file compile.c.

References GET_THREAD(), and rb_thread_struct::parse_in_eval.

Referenced by parser_compile_string(), and rb_parser_compile_file_path().

◆ rb_parse_in_main()

int rb_parse_in_main ( void  )

Definition at line 6020 of file compile.c.

References GET_THREAD(), and rb_thread_struct::parse_in_eval.

Referenced by yyparse().

◆ rb_parser_get_yydebug()

VALUE rb_parser_get_yydebug ( VALUE  )

Definition at line 17675 of file ripper.c.

◆ rb_parser_set_yydebug()

VALUE rb_parser_set_yydebug ( VALUE  ,
VALUE   
)

Definition at line 17690 of file ripper.c.

◆ rb_print_backtrace()

void rb_print_backtrace ( void  )

Definition at line 685 of file vm_dump.c.

References free().

Referenced by rb_vm_bugreport().

◆ rb_proc_location()

VALUE rb_proc_location ( VALUE  self)

Definition at line 939 of file proc.c.

References get_proc_iseq, and iseq_location().

Referenced by Init_Proc(), and thread_initialize().

◆ rb_rational_reciprocal()

VALUE rb_rational_reciprocal ( VALUE  x)

Definition at line 1696 of file rational.c.

References CLASS_OF, f_rational_new_no_reduce2(), and get_dat1.

Referenced by fix_divide().

◆ rb_realpath_internal()

VALUE rb_realpath_internal ( VALUE  basedir,
VALUE  path,
int  strict 
)

◆ rb_refinement_module_get_refined_class()

VALUE rb_refinement_module_get_refined_class ( VALUE  module)

Definition at line 1190 of file eval.c.

References CONST_ID, and rb_attr_get().

Referenced by include_modules_at(), rb_method_entry_make(), and rb_mod_to_s().

◆ rb_reg_check_preprocess()

VALUE rb_reg_check_preprocess ( VALUE  )

◆ rb_reg_compile()

VALUE rb_reg_compile ( VALUE  str,
int  options,
const char *  sourcefile,
int  sourceline 
)

◆ rb_sigaltstack_size()

int rb_sigaltstack_size ( void  )

Referenced by Init_heap(), and th_init().

◆ rb_sourcefilename()

VALUE rb_sourcefilename ( void  )

◆ rb_st_copy()

st_table* rb_st_copy ( VALUE  obj,
struct st_table orig_tbl 
)

◆ rb_st_insert_id_and_value()

int rb_st_insert_id_and_value ( VALUE  obj,
st_table tbl,
ID  key,
VALUE  value 
)

◆ rb_stdio_set_default_encoding()

void rb_stdio_set_default_encoding ( void  )

Definition at line 10586 of file io.c.

References Qnil, rb_io_set_encoding(), rb_stderr, rb_stdin, rb_stdout, and val.

Referenced by process_options().

◆ rb_str2big_karatsuba()

VALUE rb_str2big_karatsuba ( VALUE  arg,
int  base,
int  badcheck 
)

◆ rb_str2big_normal()

VALUE rb_str2big_normal ( VALUE  arg,
int  base,
int  badcheck 
)

◆ rb_str2big_poweroftwo()

VALUE rb_str2big_poweroftwo ( VALUE  arg,
int  base,
int  badcheck 
)

◆ rb_str_buf_cat_escaped_char()

int rb_str_buf_cat_escaped_char ( VALUE  result,
unsigned int  c,
int  unicode_p 
)

Definition at line 4750 of file string.c.

References buf, CHAR_ESC_LEN, ISPRINT, rb_str_buf_cat(), result, snprintf, and strlen().

Referenced by rb_reg_expr_str(), and rb_str_inspect().

◆ rb_str_fill_terminator()

void rb_str_fill_terminator ( VALUE  str,
const int  termlen 
)

Definition at line 1669 of file string.c.

References rb_enc_get(), rb_enc_mbminlen, RSTRING_LEN, RSTRING_PTR, and str_fill_term().

Referenced by rb_enc_associate_index().

◆ rb_str_locktmp_ensure()

VALUE rb_str_locktmp_ensure ( VALUE  str,
VALUE(*)(VALUE func,
VALUE  arg 
)

Definition at line 2000 of file string.c.

References func, rb_ensure(), rb_str_locktmp(), and rb_str_unlocktmp().

Referenced by io_fread(), and io_getpartial().

◆ rb_str_quote_unprintable()

VALUE rb_str_quote_unprintable ( VALUE  )

◆ rb_str_symname_p()

int rb_str_symname_p ( VALUE  )

◆ rb_struct_init_copy()

VALUE rb_struct_init_copy ( VALUE  copy,
VALUE  s 
)

Definition at line 707 of file struct.c.

References OBJ_INIT_COPY, rb_eTypeError, rb_raise(), RSTRUCT_GET, RSTRUCT_LEN, and RSTRUCT_SET.

Referenced by Init_Struct(), and range_initialize_copy().

◆ rb_suppress_tracing()

VALUE rb_suppress_tracing ( VALUE(*)(VALUE func,
VALUE  arg 
)

◆ rb_thread_execute_interrupts()

void rb_thread_execute_interrupts ( VALUE  th)

◆ rb_thread_io_blocking_region()

VALUE rb_thread_io_blocking_region ( rb_blocking_function_t func,
void *  data1,
int  fd 
)

◆ rb_thread_mark()

void rb_thread_mark ( void *  th)

◆ rb_thread_recycle_stack_release()

void rb_thread_recycle_stack_release ( VALUE )

Definition at line 1996 of file vm.c.

References RECYCLE_MAX, ruby_xfree(), thread_recycle_stack_count, and thread_recycle_stack_slot.

Referenced by thread_start_func_2().

◆ rb_thread_shield_destroy()

VALUE rb_thread_shield_destroy ( VALUE  self)

◆ rb_thread_shield_new()

VALUE rb_thread_shield_new ( void  )

Definition at line 4702 of file thread.c.

References DATA_PTR, rb_cThreadShield, rb_mutex_lock(), and thread_shield_alloc().

Referenced by load_lock().

◆ rb_thread_shield_release()

VALUE rb_thread_shield_release ( VALUE  self)

Definition at line 4738 of file thread.c.

References GetThreadShieldPtr, Qfalse, Qtrue, rb_mutex_unlock(), and rb_thread_shield_waiting.

Referenced by release_thread_shield().

◆ rb_thread_shield_wait()

VALUE rb_thread_shield_wait ( VALUE  self)

◆ rb_time_timeval()

struct timeval rb_time_timeval ( VALUE  )

◆ rb_uninterruptible()

VALUE rb_uninterruptible ( VALUE(*)(ANYARGS b_proc,
VALUE  data 
)

◆ rb_vm_backtrace_object()

VALUE rb_vm_backtrace_object ( void  )

Definition at line 536 of file vm_backtrace.c.

References backtrace_object(), and GET_THREAD().

Referenced by argument_error(), and setup_exception().

◆ rb_vm_bugreport()

void rb_vm_bugreport ( void  )

Definition at line 713 of file vm_dump.c.

Referenced by report_bug(), and sdr().

◆ rb_vm_change_state()

void rb_vm_change_state ( void  )

◆ rb_vm_get_insns_address_table()

const void** rb_vm_get_insns_address_table ( void  )

Definition at line 118 of file vm_exec.c.

References vm_exec_core().

Referenced by rb_iseq_translate_threaded_code().

◆ rb_vm_inc_const_missing_count()

void rb_vm_inc_const_missing_count ( void  )

Definition at line 111 of file vm.c.

Referenced by rb_const_get_0().

◆ rb_vm_mark()

void rb_vm_mark ( void *  ptr)

◆ rb_vm_pop_cfunc_frame()

void rb_vm_pop_cfunc_frame ( void  )

◆ rb_vm_thread_backtrace()

VALUE rb_vm_thread_backtrace ( int  argc,
VALUE argv,
VALUE  thval 
)

Definition at line 906 of file vm_backtrace.c.

References argc, argv, and thread_backtrace_to_ary().

Referenced by rb_thread_backtrace_m().

◆ rb_vm_thread_backtrace_locations()

VALUE rb_vm_thread_backtrace_locations ( int  argc,
VALUE argv,
VALUE  thval 
)

Definition at line 912 of file vm_backtrace.c.

References argc, argv, and thread_backtrace_to_ary().

Referenced by rb_thread_backtrace_locations_m().

◆ rb_vm_top_self()

VALUE rb_vm_top_self ( void  )

Definition at line 2834 of file vm.c.

References GET_VM.

Referenced by Init_top_self(), Init_VM(), and ruby_thread_init().

◆ rb_write_error_str()

void rb_write_error_str ( VALUE  mesg)

◆ RCLASS_M_TBL_INIT()

static void RCLASS_M_TBL_INIT ( VALUE  c)
inlinestatic

◆ RCLASS_SET_SUPER()

static VALUE RCLASS_SET_SUPER ( VALUE  klass,
VALUE  super 
)
inlinestatic

◆ RCLASS_SUPER()

static VALUE RCLASS_SUPER ( VALUE  klass)
inlinestatic

Definition at line 313 of file internal.h.

References RCLASS.

◆ ruby_error_print()

void ruby_error_print ( void  )

Definition at line 206 of file eval_error.c.

References error_print().

Referenced by rb_f_abort().

◆ ruby_float_mod()

double ruby_float_mod ( double  x,
double  y 
)

Definition at line 912 of file numeric.c.

References flodivmod(), and mod.

Referenced by fix_mod(), and flo_mod().

◆ ruby_float_step()

int ruby_float_step ( VALUE  from,
VALUE  to,
VALUE  step,
int  excl 
)

Definition at line 1791 of file numeric.c.

References DBL2NUM, FALSE, isinf(), NUM2DBL, RB_TYPE_P, rb_yield(), ruby_float_step_size(), T_FLOAT, TRUE, and val.

Referenced by num_step(), and range_step().

◆ ruby_gc_set_params()

void ruby_gc_set_params ( int  safe_level)

◆ ruby_get_inplace_mode()

const char* ruby_get_inplace_mode ( void  )

Definition at line 11630 of file io.c.

References ARGF.

◆ ruby_kill()

void ruby_kill ( rb_pid_t  pid,
int  sig 
)

◆ ruby_mimfree()

void ruby_mimfree ( void *  ptr)

Definition at line 6270 of file gc.c.

References free().

Referenced by ruby_vm_destruct().

◆ ruby_mimmalloc()

void* ruby_mimmalloc ( size_t  size)

Definition at line 6254 of file gc.c.

References malloc, and size.

Referenced by Init_BareVM().

◆ ruby_num_interval_step_size()

VALUE ruby_num_interval_step_size ( VALUE  from,
VALUE  to,
VALUE  step,
int  excl 
)

◆ ruby_register_rollback_func_for_ensure()

void ruby_register_rollback_func_for_ensure ( VALUE(*)(ANYARGS ensure_func,
VALUE(*)(ANYARGS rollback_func 
)

Definition at line 955 of file cont.c.

References GET_VM, NULL, st_data_t, st_init_numtable(), st_insert(), and UNLIKELY.

Referenced by Init_Hash().

◆ ruby_scan_digits()

unsigned long ruby_scan_digits ( const char *  str,
ssize_t  len,
int  base,
size_t *  retlen,
int *  overflow 
)

Definition at line 79 of file util.c.

References ruby_digit36_to_number_table.

Referenced by parse_numvar(), and ruby_strtoul().

◆ ruby_set_inplace_mode()

void ruby_set_inplace_mode ( const char *  )

Definition at line 11636 of file io.c.

References ARGF, free, and strdup.

Referenced by proc_options().

◆ ruby_sized_xfree()

void void ruby_sized_xfree ( void *  x,
size_t  size 
)

◆ ruby_sized_xrealloc()

void* ruby_sized_xrealloc ( void *  ptr,
size_t  new_size,
size_t  old_size 
)

Definition at line 6203 of file gc.c.

References new_size(), and objspace_xrealloc().

Referenced by ruby_xrealloc().

◆ ruby_sized_xrealloc2()

void* ruby_sized_xrealloc2 ( void *  ptr,
size_t  new_count,
size_t  element_size,
size_t  old_count 
)

Variable Documentation

◆ ruby_digit36_to_number_table

const signed char ruby_digit36_to_number_table[]

Definition at line 58 of file util.c.

Referenced by hex2num(), and ruby_scan_digits().