Ruby  2.4.2p198(2017-09-14revision59899)
Data Structures | Macros | Functions | Variables
object.c File Reference
#include "internal.h"
#include "ruby/st.h"
#include "ruby/util.h"
#include <stdio.h>
#include <errno.h>
#include <ctype.h>
#include <math.h>
#include <float.h>
#include "constant.h"
#include "id.h"
#include "probes.h"
Include dependency graph for object.c:

Go to the source code of this file.

Data Structures

struct  conv_method_tbl
 
struct  dig_method
 

Macros

#define id_eq   idEq
 
#define id_eql   idEqlP
 
#define id_match   idEqTilde
 
#define id_inspect   idInspect
 
#define id_init_copy   idInitialize_copy
 
#define id_init_clone   idInitialize_clone
 
#define id_init_dup   idInitialize_dup
 
#define id_const_missing   idConst_missing
 
#define CLASS_OR_MODULE_P(obj)
 
#define id_for_var(obj, name, part, type)   id_for_setter(obj, name, type, "`%1$s' is not allowed as "#part" "#type" variable name")
 
#define id_for_setter(obj, name, type, message)   check_setter_id(obj, &(name), rb_is_##type##_id, rb_is_##type##_name, message, strlen(message))
 
#define M(n)   {#n, (unsigned short)idTo_##n}
 
#define IMPLICIT_CONVERSIONS   7
 
#define OutOfRange()
 
#define fix2dbl_without_to_f(x)   (double)FIX2LONG(x)
 
#define big2dbl_without_to_f(x)   rb_big2dbl(x)
 
#define int2dbl_without_to_f(x)   (FIXNUM_P(x) ? fix2dbl_without_to_f(x) : big2dbl_without_to_f(x))
 
#define rat2dbl_without_to_f(x)
 
#define special_const_to_float(val, pre, post)
 
#define rb_intern(str)   rb_intern_const(str)
 

Functions

VALUE rb_obj_hide (VALUE obj)
 
VALUE rb_obj_reveal (VALUE obj, VALUE klass)
 
VALUE rb_obj_setup (VALUE obj, VALUE klass, VALUE type)
 
VALUE rb_equal (VALUE obj1, VALUE obj2)
 
int rb_eql (VALUE obj1, VALUE obj2)
 
VALUE rb_obj_equal (VALUE obj1, VALUE obj2)
 
VALUE rb_obj_hash (VALUE obj)
 
VALUE rb_obj_not (VALUE obj)
 
VALUE rb_obj_not_equal (VALUE obj1, VALUE obj2)
 
VALUE rb_class_real (VALUE cl)
 
VALUE rb_obj_class (VALUE obj)
 
static VALUE rb_obj_singleton_class (VALUE obj)
 
void rb_obj_copy_ivar (VALUE dest, VALUE obj)
 
static void init_copy (VALUE dest, VALUE obj)
 
static int special_object_p (VALUE obj)
 
static VALUE rb_obj_clone2 (int argc, VALUE *argv, VALUE obj)
 
VALUE rb_obj_clone (VALUE obj)
 
VALUE rb_obj_dup (VALUE obj)
 
static VALUE rb_obj_itself (VALUE obj)
 
VALUE rb_obj_init_copy (VALUE obj, VALUE orig)
 
VALUE rb_obj_init_dup_clone (VALUE obj, VALUE orig)
 
VALUE rb_any_to_s (VALUE obj)
 
VALUE rb_str_escape (VALUE str)
 
VALUE rb_inspect (VALUE obj)
 
static int inspect_i (st_data_t k, st_data_t v, st_data_t a)
 
static VALUE inspect_obj (VALUE obj, VALUE str, int recur)
 
static VALUE rb_obj_inspect (VALUE obj)
 
static VALUE class_or_module_required (VALUE c)
 
static VALUE class_search_ancestor (VALUE cl, VALUE c)
 
VALUE rb_obj_is_instance_of (VALUE obj, VALUE c)
 
VALUE rb_obj_is_kind_of (VALUE obj, VALUE c)
 
VALUE rb_class_search_ancestor (VALUE cl, VALUE c)
 
VALUE rb_obj_tap (VALUE obj)
 
static VALUE rb_obj_dummy (void)
 
VALUE rb_obj_tainted (VALUE obj)
 
VALUE rb_obj_taint (VALUE obj)
 
VALUE rb_obj_untaint (VALUE obj)
 
VALUE rb_obj_untrusted (VALUE obj)
 
VALUE rb_obj_untrust (VALUE obj)
 
VALUE rb_obj_trust (VALUE obj)
 
void rb_obj_infect (VALUE obj1, VALUE obj2)
 
VALUE rb_obj_freeze (VALUE obj)
 
VALUE rb_obj_frozen_p (VALUE obj)
 
static VALUE nil_to_i (VALUE obj)
 
static VALUE nil_to_f (VALUE obj)
 
static VALUE nil_to_s (VALUE obj)
 
static VALUE nil_to_a (VALUE obj)
 
static VALUE nil_to_h (VALUE obj)
 
static VALUE nil_inspect (VALUE obj)
 
static VALUE true_to_s (VALUE obj)
 
static VALUE true_and (VALUE obj, VALUE obj2)
 
static VALUE true_or (VALUE obj, VALUE obj2)
 
static VALUE true_xor (VALUE obj, VALUE obj2)
 
static VALUE false_to_s (VALUE obj)
 
static VALUE false_and (VALUE obj, VALUE obj2)
 
static VALUE false_or (VALUE obj, VALUE obj2)
 
static VALUE false_xor (VALUE obj, VALUE obj2)
 
static VALUE rb_true (VALUE obj)
 
static VALUE rb_false (VALUE obj)
 
static VALUE rb_obj_match (VALUE obj1, VALUE obj2)
 
static VALUE rb_obj_not_match (VALUE obj1, VALUE obj2)
 
static VALUE rb_obj_cmp (VALUE obj1, VALUE obj2)
 
static VALUE rb_mod_to_s (VALUE klass)
 
static VALUE rb_mod_freeze (VALUE mod)
 
static VALUE rb_mod_eqq (VALUE mod, VALUE arg)
 
VALUE rb_class_inherited_p (VALUE mod, VALUE arg)
 
static VALUE rb_mod_lt (VALUE mod, VALUE arg)
 
static VALUE rb_mod_ge (VALUE mod, VALUE arg)
 
static VALUE rb_mod_gt (VALUE mod, VALUE arg)
 
static VALUE rb_mod_cmp (VALUE mod, VALUE arg)
 
static VALUE rb_module_s_alloc (VALUE klass)
 
static VALUE rb_class_s_alloc (VALUE klass)
 
static VALUE rb_mod_initialize (VALUE module)
 
static VALUE rb_mod_initialize_clone (VALUE clone, VALUE orig)
 
static VALUE rb_class_initialize (int argc, VALUE *argv, VALUE klass)
 
void rb_undefined_alloc (VALUE klass)
 
VALUE rb_obj_alloc (VALUE klass)
 
static VALUE rb_class_allocate_instance (VALUE klass)
 
VALUE rb_class_new_instance (int argc, const VALUE *argv, VALUE klass)
 
VALUE rb_class_superclass (VALUE klass)
 
VALUE rb_class_get_superclass (VALUE klass)
 
static ID check_setter_id (VALUE obj, VALUE *pname, int(*valid_id_p)(ID), int(*valid_name_p)(VALUE), const char *message, size_t message_len)
 
static int rb_is_attr_name (VALUE name)
 
static int rb_is_attr_id (ID id)
 
static ID id_for_attr (VALUE obj, VALUE name)
 
static VALUE rb_mod_attr_reader (int argc, VALUE *argv, VALUE klass)
 
VALUE rb_mod_attr (int argc, VALUE *argv, VALUE klass)
 
static VALUE rb_mod_attr_writer (int argc, VALUE *argv, VALUE klass)
 
static VALUE rb_mod_attr_accessor (int argc, VALUE *argv, VALUE klass)
 
static VALUE rb_mod_const_get (int argc, VALUE *argv, VALUE mod)
 
static VALUE rb_mod_const_set (VALUE mod, VALUE name, VALUE value)
 
static VALUE rb_mod_const_defined (int argc, VALUE *argv, VALUE mod)
 
static VALUE rb_obj_ivar_get (VALUE obj, VALUE iv)
 
static VALUE rb_obj_ivar_set (VALUE obj, VALUE iv, VALUE val)
 
static VALUE rb_obj_ivar_defined (VALUE obj, VALUE iv)
 
static VALUE rb_mod_cvar_get (VALUE obj, VALUE iv)
 
static VALUE rb_mod_cvar_set (VALUE obj, VALUE iv, VALUE val)
 
static VALUE rb_mod_cvar_defined (VALUE obj, VALUE iv)
 
static VALUE rb_mod_singleton_p (VALUE klass)
 
static VALUE convert_type (VALUE val, const char *tname, const char *method, int raise)
 
 NORETURN (static void conversion_mismatch(VALUE, const char *, const char *, VALUE))
 
static void conversion_mismatch (VALUE val, const char *tname, const char *method, VALUE result)
 
VALUE rb_convert_type (VALUE val, int type, const char *tname, const char *method)
 
VALUE rb_check_convert_type (VALUE val, int type, const char *tname, const char *method)
 
static VALUE rb_to_integer (VALUE val, const char *method)
 
VALUE rb_check_to_integer (VALUE val, const char *method)
 
VALUE rb_to_int (VALUE val)
 
VALUE rb_check_to_int (VALUE val)
 
static VALUE rb_convert_to_integer (VALUE val, int base)
 
VALUE rb_Integer (VALUE val)
 
static VALUE rb_f_integer (int argc, VALUE *argv, VALUE obj)
 
double rb_cstr_to_dbl (const char *p, int badcheck)
 
double rb_str_to_dbl (VALUE str, int badcheck)
 
static void conversion_to_float (VALUE val)
 
static void implicit_conversion_to_float (VALUE val)
 
static int to_float (VALUE *valp)
 
VALUE rb_Float (VALUE val)
 
 FUNC_MINIMIZED (static VALUE rb_f_float(VALUE obj, VALUE arg))
 
static VALUE rb_f_float (VALUE obj, VALUE arg)
 
static VALUE numeric_to_float (VALUE val)
 
VALUE rb_to_float (VALUE val)
 
VALUE rb_check_to_float (VALUE val)
 
static int basic_to_f_p (VALUE klass)
 
double rb_num_to_dbl (VALUE val)
 
double rb_num2dbl (VALUE val)
 
VALUE rb_String (VALUE val)
 
static VALUE rb_f_string (VALUE obj, VALUE arg)
 
VALUE rb_Array (VALUE val)
 
static VALUE rb_f_array (VALUE obj, VALUE arg)
 
VALUE rb_Hash (VALUE val)
 
static VALUE rb_f_hash (VALUE obj, VALUE arg)
 
static int dig_basic_p (VALUE obj, struct dig_method *cache)
 
static void no_dig_method (int found, VALUE recv, ID mid, int argc, const VALUE *argv, VALUE data)
 
VALUE rb_obj_dig (int argc, VALUE *argv, VALUE obj, VALUE notfound)
 
void InitVM_Object (void)
 Initializes the world of objects and classes. More...
 
void Init_Object (void)
 

Variables

VALUE rb_cBasicObject
 
VALUE rb_mKernel
 
VALUE rb_cObject
 
VALUE rb_cModule
 
VALUE rb_cClass
 
VALUE rb_cData
 
VALUE rb_cNilClass
 
VALUE rb_cTrueClass
 
VALUE rb_cFalseClass
 
static const char wrong_constant_name [] = "wrong constant name %1$s"
 
static const char invalid_attribute_name [] = "invalid attribute name `%1$s'"
 
static const struct conv_method_tbl conv_method_names []
 
static ID id_to_f
 
static ID id_dig
 

Macro Definition Documentation

◆ big2dbl_without_to_f

#define big2dbl_without_to_f (   x)    rb_big2dbl(x)

Definition at line 2897 of file object.c.

Referenced by rb_num2dbl(), rb_num_to_dbl(), and to_float().

◆ CLASS_OR_MODULE_P

#define CLASS_OR_MODULE_P (   obj)
Value:
(!SPECIAL_CONST_P(obj) && \
(BUILTIN_TYPE(obj) == T_CLASS || BUILTIN_TYPE(obj) == T_MODULE))
#define T_MODULE
Definition: ruby.h:494
#define BUILTIN_TYPE(x)
Definition: ruby.h:518
#define T_CLASS
Definition: ruby.h:492
#define SPECIAL_CONST_P(x)
Definition: ruby.h:1249

Definition at line 46 of file object.c.

Referenced by rb_class_inherited_p(), rb_mod_cmp(), rb_mod_ge(), and rb_mod_to_s().

◆ fix2dbl_without_to_f

#define fix2dbl_without_to_f (   x)    (double)FIX2LONG(x)

Definition at line 2896 of file object.c.

Referenced by rb_num2dbl(), rb_num_to_dbl(), and to_float().

◆ id_const_missing

#define id_const_missing   idConst_missing

Definition at line 44 of file object.c.

Referenced by rb_mod_const_get().

◆ id_eq

#define id_eq   idEq

Definition at line 37 of file object.c.

Referenced by rb_equal(), and rb_obj_not_equal().

◆ id_eql

#define id_eql   idEqlP

Definition at line 38 of file object.c.

Referenced by rb_eql().

◆ id_for_setter

#define id_for_setter (   obj,
  name,
  type,
  message 
)    check_setter_id(obj, &(name), rb_is_##type##_id, rb_is_##type##_name, message, strlen(message))

Definition at line 1946 of file object.c.

Referenced by id_for_attr(), and rb_mod_const_set().

◆ id_for_var

#define id_for_var (   obj,
  name,
  part,
  type 
)    id_for_setter(obj, name, type, "`%1$s' is not allowed as "#part" "#type" variable name")

◆ id_init_clone

#define id_init_clone   idInitialize_clone

Definition at line 42 of file object.c.

Referenced by rb_obj_clone2().

◆ id_init_copy

#define id_init_copy   idInitialize_copy

Definition at line 41 of file object.c.

Referenced by rb_obj_init_dup_clone().

◆ id_init_dup

#define id_init_dup   idInitialize_dup

Definition at line 43 of file object.c.

Referenced by rb_obj_dup().

◆ id_inspect

#define id_inspect   idInspect

Definition at line 40 of file object.c.

Referenced by rb_inspect().

◆ id_match

#define id_match   idEqTilde

Definition at line 39 of file object.c.

Referenced by rb_obj_not_match().

◆ IMPLICIT_CONVERSIONS

#define IMPLICIT_CONVERSIONS   7

Definition at line 2578 of file object.c.

Referenced by convert_type().

◆ int2dbl_without_to_f

#define int2dbl_without_to_f (   x)    (FIXNUM_P(x) ? fix2dbl_without_to_f(x) : big2dbl_without_to_f(x))

Definition at line 2898 of file object.c.

◆ M

#define M (   n)    {#n, (unsigned short)idTo_##n}

Referenced by gc_profile_record_get().

◆ OutOfRange

#define OutOfRange ( )
Value:
((end - p > max_width) ? \
(w = max_width, ellipsis = "...") : \
(w = (int)(end - p), ellipsis = ""))

Referenced by rb_cstr_to_dbl().

◆ rat2dbl_without_to_f

#define rat2dbl_without_to_f (   x)
Value:
int2dbl_without_to_f(rb_rational_den(x)))
static VALUE rb_rational_num(VALUE rat)
Definition: bigdecimal.c:108
#define int2dbl_without_to_f(x)
Definition: object.c:2898
static VALUE rb_rational_den(VALUE rat)
Definition: bigdecimal.c:120

Definition at line 2900 of file object.c.

Referenced by rb_num2dbl(), rb_num_to_dbl(), and to_float().

◆ rb_intern

#define rb_intern (   str)    rb_intern_const(str)

Referenced by convert_type().

◆ special_const_to_float

#define special_const_to_float (   val,
  pre,
  post 
)
Value:
switch (val) { \
case Qnil: \
rb_raise(rb_eTypeError, pre "nil" post); \
case Qtrue: \
rb_raise(rb_eTypeError, pre "true" post); \
case Qfalse: \
rb_raise(rb_eTypeError, pre "false" post); \
}
#define Qtrue
Definition: ruby.h:437
VALUE rb_eTypeError
Definition: error.c:762
#define val
#define Qfalse
Definition: ruby.h:436
#define Qnil
Definition: ruby.h:438

Definition at line 2904 of file object.c.

Referenced by conversion_to_float(), and implicit_conversion_to_float().

Function Documentation

◆ basic_to_f_p()

static int basic_to_f_p ( VALUE  klass)
inlinestatic

Definition at line 3028 of file object.c.

References rb_method_basic_definition_p().

Referenced by rb_num_to_dbl().

◆ check_setter_id()

static ID check_setter_id ( VALUE  obj,
VALUE pname,
int(*)(ID valid_id_p,
int(*)(VALUE valid_name_p,
const char *  message,
size_t  message_len 
)
static

Definition at line 1949 of file object.c.

References id, name, rb_check_id(), rb_fstring_new(), and rb_name_err_raise_str.

◆ class_or_module_required()

static VALUE class_or_module_required ( VALUE  c)
static

◆ class_search_ancestor()

static VALUE class_search_ancestor ( VALUE  cl,
VALUE  c 
)
static

◆ conversion_mismatch()

static void conversion_mismatch ( VALUE  val,
const char *  tname,
const char *  method,
VALUE  result 
)
static

◆ conversion_to_float()

static void conversion_to_float ( VALUE  val)
inlinestatic

Definition at line 2915 of file object.c.

References special_const_to_float.

Referenced by rb_num_to_dbl(), and to_float().

◆ convert_type()

static VALUE convert_type ( VALUE  val,
const char *  tname,
const char *  method,
int  raise 
)
static

◆ dig_basic_p()

static int dig_basic_p ( VALUE  obj,
struct dig_method cache 
)
static

Definition at line 3199 of file object.c.

References dig_method::basic, dig_method::klass, rb_method_basic_definition_p(), and RBASIC_CLASS.

Referenced by rb_obj_dig().

◆ false_and()

static VALUE false_and ( VALUE  obj,
VALUE  obj2 
)
static

Definition at line 1348 of file object.c.

References Qfalse.

Referenced by InitVM_Object().

◆ false_or()

static VALUE false_or ( VALUE  obj,
VALUE  obj2 
)
static

Definition at line 1364 of file object.c.

References Qfalse, Qtrue, and RTEST.

Referenced by InitVM_Object().

◆ false_to_s()

static VALUE false_to_s ( VALUE  obj)
static

Definition at line 1332 of file object.c.

References rb_usascii_str_new2.

Referenced by InitVM_Object().

◆ false_xor()

static VALUE false_xor ( VALUE  obj,
VALUE  obj2 
)
static

Definition at line 1383 of file object.c.

References Qfalse, Qtrue, and RTEST.

Referenced by InitVM_Object().

◆ FUNC_MINIMIZED()

FUNC_MINIMIZED ( static VALUE   rb_f_floatVALUE obj, VALUE arg)

Referenced by rb_Float().

◆ id_for_attr()

static ID id_for_attr ( VALUE  obj,
VALUE  name 
)
static

Definition at line 1979 of file object.c.

References id, id_for_setter, and rb_intern_str.

Referenced by rb_mod_attr(), rb_mod_attr_accessor(), rb_mod_attr_reader(), and rb_mod_attr_writer().

◆ implicit_conversion_to_float()

static void implicit_conversion_to_float ( VALUE  val)
inlinestatic

Definition at line 2921 of file object.c.

References special_const_to_float.

Referenced by rb_num2dbl().

◆ init_copy()

static void init_copy ( VALUE  dest,
VALUE  obj 
)
static

◆ Init_Object()

void Init_Object ( void  )

Definition at line 3633 of file object.c.

References InitVM, and rb_intern_const.

◆ inspect_i()

static int inspect_i ( st_data_t  k,
st_data_t  v,
st_data_t  a 
)
static

Definition at line 535 of file object.c.

References CLASS_OF, PRIsVALUE, rb_id2str, rb_is_instance_id(), rb_str_cat2(), rb_str_catf(), RSTRING_PTR, and ST_CONTINUE.

Referenced by inspect_obj().

◆ inspect_obj()

static VALUE inspect_obj ( VALUE  obj,
VALUE  str,
int  recur 
)
static

Definition at line 558 of file object.c.

References inspect_i(), OBJ_INFECT, rb_ivar_foreach(), rb_str_cat2(), and RSTRING_PTR.

Referenced by rb_obj_inspect().

◆ nil_inspect()

static VALUE nil_inspect ( VALUE  obj)
static

Definition at line 1232 of file object.c.

References rb_usascii_str_new2.

Referenced by InitVM_Object().

◆ nil_to_a()

static VALUE nil_to_a ( VALUE  obj)
static

Definition at line 1202 of file object.c.

References rb_ary_new2.

Referenced by InitVM_Object().

◆ nil_to_f()

static VALUE nil_to_f ( VALUE  obj)
static

Definition at line 1172 of file object.c.

References DBL2NUM.

Referenced by InitVM_Object().

◆ nil_to_h()

static VALUE nil_to_h ( VALUE  obj)
static

Definition at line 1219 of file object.c.

References rb_hash_new().

Referenced by InitVM_Object().

◆ nil_to_i()

static VALUE nil_to_i ( VALUE  obj)
static

Definition at line 1157 of file object.c.

References INT2FIX.

Referenced by InitVM_Object().

◆ nil_to_s()

static VALUE nil_to_s ( VALUE  obj)
static

Definition at line 1185 of file object.c.

References rb_usascii_str_new().

Referenced by InitVM_Object().

◆ no_dig_method()

static void no_dig_method ( int  found,
VALUE  recv,
ID  mid,
int  argc,
const VALUE argv,
VALUE  data 
)
static

Definition at line 3210 of file object.c.

References CLASS_OF, PRIsVALUE, rb_eTypeError, and rb_raise().

Referenced by rb_obj_dig().

◆ NORETURN()

NORETURN ( static void   conversion_mismatchVALUE, const char *, const char *, VALUE)

Referenced by convert_type().

◆ numeric_to_float()

static VALUE numeric_to_float ( VALUE  val)
static

◆ rb_any_to_s()

VALUE rb_any_to_s ( VALUE  obj)

◆ rb_Array()

VALUE rb_Array ( VALUE  val)

◆ rb_check_convert_type()

VALUE rb_check_convert_type ( VALUE  val,
int  type,
const char *  tname,
const char *  method 
)

◆ rb_check_to_float()

VALUE rb_check_to_float ( VALUE  val)

Definition at line 3016 of file object.c.

References Qnil, rb_check_convert_type(), rb_cNumeric, rb_obj_is_kind_of(), RB_TYPE_P, T_FLOAT, and val.

Referenced by rand_random(), and rand_range().

◆ rb_check_to_int()

VALUE rb_check_to_int ( VALUE  val)

Definition at line 2693 of file object.c.

References rb_check_to_integer().

Referenced by exit_initialize(), num_exact(), rand_random(), rand_range(), and rb_file_initialize().

◆ rb_check_to_integer()

VALUE rb_check_to_integer ( VALUE  val,
const char *  method 
)

◆ rb_class_allocate_instance()

static VALUE rb_class_allocate_instance ( VALUE  klass)
static

Definition at line 1872 of file object.c.

References FL_WB_PROTECTED, NEWOBJ_OF, RGENGC_WB_PROTECTED_OBJECT, and T_OBJECT.

Referenced by InitVM_Object().

◆ rb_class_get_superclass()

VALUE rb_class_get_superclass ( VALUE  klass)

Definition at line 1939 of file object.c.

References RCLASS.

◆ rb_class_inherited_p()

VALUE rb_class_inherited_p ( VALUE  mod,
VALUE  arg 
)

◆ rb_class_initialize()

static VALUE rb_class_initialize ( int  argc,
VALUE argv,
VALUE  klass 
)
static

◆ rb_class_new_instance()

VALUE rb_class_new_instance ( int  argc,
const VALUE argv,
VALUE  klass 
)

◆ rb_class_real()

VALUE rb_class_real ( VALUE  cl)

◆ rb_class_s_alloc()

static VALUE rb_class_s_alloc ( VALUE  klass)
static

Definition at line 1708 of file object.c.

References rb_class_boot().

Referenced by InitVM_Object().

◆ rb_class_search_ancestor()

VALUE rb_class_search_ancestor ( VALUE  cl,
VALUE  c 
)

Definition at line 710 of file object.c.

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

Referenced by umethod_bind().

◆ rb_class_superclass()

VALUE rb_class_superclass ( VALUE  klass)

◆ rb_convert_to_integer()

static VALUE rb_convert_to_integer ( VALUE  val,
int  base 
)
static

◆ rb_convert_type()

VALUE rb_convert_type ( VALUE  val,
int  type,
const char *  tname,
const char *  method 
)

◆ rb_cstr_to_dbl()

double rb_cstr_to_dbl ( const char *  p,
int  badcheck 
)

◆ rb_eql()

int rb_eql ( VALUE  obj1,
VALUE  obj2 
)

Definition at line 97 of file object.c.

References id_eql, rb_funcall(), and RTEST.

Referenced by cdhash_cmp(), eql_i(), hash_equal(), rb_any_cmp(), and recursive_eql().

◆ rb_equal()

VALUE rb_equal ( VALUE  obj1,
VALUE  obj2 
)

◆ rb_f_array()

static VALUE rb_f_array ( VALUE  obj,
VALUE  arg 
)
static

Definition at line 3151 of file object.c.

References rb_Array().

Referenced by InitVM_Object().

◆ rb_f_float()

static VALUE rb_f_float ( VALUE  obj,
VALUE  arg 
)
static

Definition at line 2990 of file object.c.

References rb_Float().

Referenced by InitVM_Object(), and rb_Float().

◆ rb_f_hash()

static VALUE rb_f_hash ( VALUE  obj,
VALUE  arg 
)
static

Definition at line 3186 of file object.c.

References rb_Hash().

Referenced by InitVM_Object().

◆ rb_f_integer()

static VALUE rb_f_integer ( int  argc,
VALUE argv,
VALUE  obj 
)
static

Definition at line 2766 of file object.c.

References NULL, NUM2INT, Qnil, rb_convert_to_integer(), and rb_scan_args().

Referenced by InitVM_Object().

◆ rb_f_string()

static VALUE rb_f_string ( VALUE  obj,
VALUE  arg 
)
static

Definition at line 3120 of file object.c.

References rb_String().

Referenced by InitVM_Object().

◆ rb_false()

static VALUE rb_false ( VALUE  obj)
static

Definition at line 1413 of file object.c.

References Qfalse.

Referenced by InitVM_Object().

◆ rb_Float()

VALUE rb_Float ( VALUE  val)

◆ rb_Hash()

VALUE rb_Hash ( VALUE  val)

◆ rb_inspect()

VALUE rb_inspect ( VALUE  obj)

◆ rb_Integer()

VALUE rb_Integer ( VALUE  val)

◆ rb_is_attr_id()

static int rb_is_attr_id ( ID  id)
static

Definition at line 1970 of file object.c.

References rb_is_const_id(), and rb_is_local_id().

◆ rb_is_attr_name()

static int rb_is_attr_name ( VALUE  name)
static

Definition at line 1964 of file object.c.

References rb_is_const_name(), and rb_is_local_name().

◆ rb_mod_attr()

VALUE rb_mod_attr ( int  argc,
VALUE argv,
VALUE  klass 
)

Definition at line 2011 of file object.c.

References id_for_attr(), Qfalse, Qnil, Qtrue, rb_attr(), rb_mod_attr_reader(), rb_warning(), RTEST, and TRUE.

Referenced by InitVM_Object().

◆ rb_mod_attr_accessor()

static VALUE rb_mod_attr_accessor ( int  argc,
VALUE argv,
VALUE  klass 
)
static

Definition at line 2060 of file object.c.

References argc, id_for_attr(), Qnil, rb_attr(), and TRUE.

Referenced by InitVM_Object().

◆ rb_mod_attr_reader()

static VALUE rb_mod_attr_reader ( int  argc,
VALUE argv,
VALUE  klass 
)
static

Definition at line 2000 of file object.c.

References argc, FALSE, id_for_attr(), Qnil, rb_attr(), and TRUE.

Referenced by InitVM_Object(), and rb_mod_attr().

◆ rb_mod_attr_writer()

static VALUE rb_mod_attr_writer ( int  argc,
VALUE argv,
VALUE  klass 
)
static

Definition at line 2032 of file object.c.

References argc, FALSE, id_for_attr(), Qnil, rb_attr(), and TRUE.

Referenced by InitVM_Object().

◆ rb_mod_cmp()

static VALUE rb_mod_cmp ( VALUE  mod,
VALUE  arg 
)
static

Definition at line 1681 of file object.c.

References CLASS_OR_MODULE_P, cmp(), INT2FIX, NIL_P, Qnil, and rb_class_inherited_p().

Referenced by InitVM_Object().

◆ rb_mod_const_defined()

static VALUE rb_mod_const_defined ( int  argc,
VALUE argv,
VALUE  mod 
)
static

◆ rb_mod_const_get()

static VALUE rb_mod_const_get ( int  argc,
VALUE argv,
VALUE  mod 
)
static

◆ rb_mod_const_set()

static VALUE rb_mod_const_set ( VALUE  mod,
VALUE  name,
VALUE  value 
)
static

Definition at line 2218 of file object.c.

References id_for_setter, rb_const_set(), and rb_intern_str.

Referenced by InitVM_Object().

◆ rb_mod_cvar_defined()

static VALUE rb_mod_cvar_defined ( VALUE  obj,
VALUE  iv 
)
static

Definition at line 2530 of file object.c.

References id_for_var, Qfalse, and rb_cvar_defined().

Referenced by InitVM_Object().

◆ rb_mod_cvar_get()

static VALUE rb_mod_cvar_get ( VALUE  obj,
VALUE  iv 
)
static

Definition at line 2473 of file object.c.

References id_for_var, rb_cvar_get(), and rb_name_err_raise.

Referenced by InitVM_Object().

◆ rb_mod_cvar_set()

static VALUE rb_mod_cvar_set ( VALUE  obj,
VALUE  iv,
VALUE  val 
)
static

Definition at line 2505 of file object.c.

References id_for_var, rb_cvar_set(), rb_intern_str, and val.

Referenced by InitVM_Object().

◆ rb_mod_eqq()

static VALUE rb_mod_eqq ( VALUE  mod,
VALUE  arg 
)
static

Definition at line 1575 of file object.c.

References rb_obj_is_kind_of().

Referenced by InitVM_Object().

◆ rb_mod_freeze()

static VALUE rb_mod_freeze ( VALUE  mod)
static

Definition at line 1558 of file object.c.

References rb_class_name(), and rb_obj_freeze().

Referenced by InitVM_Object().

◆ rb_mod_ge()

static VALUE rb_mod_ge ( VALUE  mod,
VALUE  arg 
)
static

Definition at line 1641 of file object.c.

References CLASS_OR_MODULE_P, rb_class_inherited_p(), rb_eTypeError, and rb_raise().

Referenced by InitVM_Object(), and rb_mod_gt().

◆ rb_mod_gt()

static VALUE rb_mod_gt ( VALUE  mod,
VALUE  arg 
)
static

Definition at line 1662 of file object.c.

References Qfalse, and rb_mod_ge().

Referenced by InitVM_Object().

◆ rb_mod_initialize()

static VALUE rb_mod_initialize ( VALUE  module)
static

Definition at line 1740 of file object.c.

References Qnil, rb_block_given_p(), and rb_mod_module_exec().

Referenced by InitVM_Object(), and rb_class_initialize().

◆ rb_mod_initialize_clone()

static VALUE rb_mod_initialize_clone ( VALUE  clone,
VALUE  orig 
)
static

Definition at line 1750 of file object.c.

References OBJ_FROZEN, rb_class_name(), and rb_obj_init_dup_clone().

Referenced by InitVM_Object().

◆ rb_mod_lt()

static VALUE rb_mod_lt ( VALUE  mod,
VALUE  arg 
)
static

Definition at line 1621 of file object.c.

References Qfalse, and rb_class_inherited_p().

Referenced by InitVM_Object().

◆ rb_mod_singleton_p()

static VALUE rb_mod_singleton_p ( VALUE  klass)
static

Definition at line 2554 of file object.c.

References FL_SINGLETON, FL_TEST, Qfalse, Qtrue, RB_TYPE_P, and T_CLASS.

Referenced by InitVM_Object().

◆ rb_mod_to_s()

static VALUE rb_mod_to_s ( VALUE  klass)
static

◆ rb_module_s_alloc()

static VALUE rb_module_s_alloc ( VALUE  klass)
static

Definition at line 1699 of file object.c.

References mod, rb_module_new(), and RBASIC_SET_CLASS.

Referenced by InitVM_Object().

◆ rb_num2dbl()

double rb_num2dbl ( VALUE  val)

◆ rb_num_to_dbl()

double rb_num_to_dbl ( VALUE  val)

◆ rb_obj_alloc()

VALUE rb_obj_alloc ( VALUE  klass)

◆ rb_obj_class()

VALUE rb_obj_class ( VALUE  obj)

Definition at line 229 of file object.c.

References CLASS_OF, and rb_class_real().

Referenced by ary_make_shared_copy(), BIGNUM_1c(), cannot_be_coerced_into_BigDecimal(), coerce_failed(), conversion_mismatch(), convert_type(), copy_path_class(), d_lite_inspect(), d_lite_plus(), d_lite_to_s(), divmodv(), dup_obj(), dup_obj_as_complex(), enc_inspect(), encoded_dup(), ensure_class_or_module(), enum_zip(), exc_equal(), extract_user_token(), flatten(), gen_ivar_each(), generator_initialize(), generic_ivar_defined(), generic_ivar_delete(), generic_ivar_get(), generic_ivar_remove(), get_new_timeval(), get_timeval(), InitVM_Object(), inspect_enumerator(), inspect_struct(), io_reopen(), iv_index_tbl_make(), lazy_zip(), match_inspect(), method_super_method(), mString_to_json_raw_object(), mSyslog_log(), must_respond_to(), name_err_mesg_equal(), not_encoding(), nucomp_coerce(), num_exact(), num_init_copy(), num_sadded(), numeric_to_float(), ossl_asn1_default_tag(), ossl_asn1cons_to_der(), ossl_cipher_init(), ossl_dh_to_public_key(), ossl_dsa_to_public_key(), ossl_engine_inspect(), ossl_rsa_to_public_key(), ossl_x509_inspect(), parser_compile_error(), path_basename(), path_dirname(), path_each_entry(), path_entries(), path_expand_path(), path_readlink(), path_realdirpath(), path_realpath(), path_split(), path_sub(), path_sub_ext(), raise_method_missing(), random_equal(), rb_ary_bsearch_index(), rb_ary_slice_bang(), rb_ary_subseq(), rb_ary_times(), rb_ary_to_a(), rb_ary_to_h(), rb_ary_uniq(), rb_check_inheritable(), rb_check_typeddata(), rb_cmperr(), rb_define_class(), rb_define_class_id_under(), rb_define_module(), rb_define_module_id_under(), rb_digest_base_block_length(), rb_digest_base_copy(), rb_digest_base_digest_length(), rb_digest_base_finish(), rb_digest_base_reset(), rb_digest_base_update(), rb_dup_setup(), rb_generic_ivar_table(), rb_hash_aset(), rb_hash_dup(), rb_hash_to_h(), rb_obj_alloc(), rb_obj_clone2(), rb_obj_dup(), rb_obj_init_copy(), rb_obj_is_instance_of(), rb_profile_frame_classpath(), rb_stat_cmp(), rb_str_dup(), rb_str_justify(), rb_str_new_frozen(), rb_str_new_shared(), rb_str_new_with_class(), rb_str_times(), rb_str_to_s(), rb_struct_eql(), rb_struct_equal(), rb_struct_hash(), rb_struct_initialize_m(), rb_struct_members(), rb_struct_members_m(), rb_thread_inspect(), rb_tmp_class_path(), rb_vm_bugreport(), setup_exception(), should_be_callable(), str_byte_substr(), str_gsub(), str_substr(), strscan_inspect(), struct_member_pos(), syserr_initialize(), take_items(), time_dup(), time_timespec(), undumpable(), unexpected_type(), vm_search_super_method(), and w_object().

◆ rb_obj_clone()

VALUE rb_obj_clone ( VALUE  obj)

◆ rb_obj_clone2()

static VALUE rb_obj_clone2 ( int  argc,
VALUE argv,
VALUE  obj 
)
static

◆ rb_obj_cmp()

static VALUE rb_obj_cmp ( VALUE  obj1,
VALUE  obj2 
)
static

Definition at line 1469 of file object.c.

References INT2FIX, Qnil, and rb_equal().

Referenced by InitVM_Object().

◆ rb_obj_copy_ivar()

void rb_obj_copy_ivar ( VALUE  dest,
VALUE  obj 
)

◆ rb_obj_dig()

VALUE rb_obj_dig ( int  argc,
VALUE argv,
VALUE  obj,
VALUE  notfound 
)

◆ rb_obj_dummy()

static VALUE rb_obj_dummy ( void  )
static

Definition at line 968 of file object.c.

References Qnil.

Referenced by InitVM_Object().

◆ rb_obj_dup()

VALUE rb_obj_dup ( VALUE  obj)

◆ rb_obj_equal()

VALUE rb_obj_equal ( VALUE  obj1,
VALUE  obj2 
)

Definition at line 139 of file object.c.

References LONG2FIX, NUM2LONG, Qfalse, Qtrue, rb_obj_hash(), rb_obj_id(), and rb_objid_hash().

Referenced by InitVM_Object(), and opt_eq_func().

◆ rb_obj_freeze()

VALUE rb_obj_freeze ( VALUE  obj)

◆ rb_obj_frozen_p()

VALUE rb_obj_frozen_p ( VALUE  obj)

Definition at line 1134 of file object.c.

References OBJ_FROZEN, Qfalse, and Qtrue.

Referenced by dump_object(), and InitVM_Object().

◆ rb_obj_hash()

VALUE rb_obj_hash ( VALUE  obj)

Definition at line 263 of file hash.c.

References any_hash(), objid_hash(), and ST2FIX.

Referenced by InitVM_Object(), and rb_obj_equal().

◆ rb_obj_hide()

VALUE rb_obj_hide ( VALUE  obj)

◆ rb_obj_infect()

void rb_obj_infect ( VALUE  obj1,
VALUE  obj2 
)

Definition at line 1081 of file object.c.

References OBJ_INFECT.

◆ rb_obj_init_copy()

VALUE rb_obj_init_copy ( VALUE  obj,
VALUE  orig 
)

Definition at line 470 of file object.c.

References rb_check_frozen, rb_check_trusted(), rb_eTypeError, rb_obj_class(), rb_raise(), and TYPE.

Referenced by InitVM_Object().

◆ rb_obj_init_dup_clone()

VALUE rb_obj_init_dup_clone ( VALUE  obj,
VALUE  orig 
)

Definition at line 483 of file object.c.

References id_init_copy, and rb_funcall().

Referenced by InitVM_Object(), and rb_mod_initialize_clone().

◆ rb_obj_inspect()

static VALUE rb_obj_inspect ( VALUE  obj)
static

◆ rb_obj_is_instance_of()

VALUE rb_obj_is_instance_of ( VALUE  obj,
VALUE  c 
)

◆ rb_obj_is_kind_of()

VALUE rb_obj_is_kind_of ( VALUE  obj,
VALUE  c 
)

Definition at line 690 of file object.c.

References CLASS_OF, class_or_module_required(), class_search_ancestor(), Qfalse, Qtrue, and RCLASS_ORIGIN.

Referenced by case_when_optimizable_literal(), check_match(), check_step_domain(), check_type_val2variant(), cState_from_state_s(), discrete_object_p(), errinfo_getter(), error_handle(), ev_advise(), EVENTSINK_Invoke(), f_kind_of_p(), fole_s_const_load(), fole_s_show_help(), folemethod_initialize(), foleparam_initialize(), folerecord_initialize(), GetCipherPtr(), gzfile_read_raw_rescue(), host_str(), ibf_dump_object_struct(), InitVM_Object(), linear_object_p(), make_exception(), numeric_to_float(), ole_invoke(), ole_val2variant(), ole_val2variant_err(), os_obj_of_i(), ossl_asn1cons_to_der(), ossl_asn1data_to_der(), ossl_bn_coerce(), ossl_bn_eql(), ossl_bn_initialize(), ossl_sslctx_add_extra_chain_cert_i(), ossl_x509name_eql(), parse(), path_cmp(), path_eq(), range_eq(), range_eql(), range_max(), range_size(), range_step(), range_step_size(), rb_ary_bsearch_index(), rb_check_to_float(), rb_check_to_integer(), rb_digest_instance_equal(), rb_enumeratorize_with_size(), rb_fiddle_ptr2cptr(), rb_fiddle_ptr_aset(), rb_fiddle_ptr_cmp(), rb_fiddle_ptr_eql(), rb_fiddle_ptr_s_to_ptr(), rb_method_call_status(), rb_mod_eqq(), rb_range_values(), rb_rescue2(), rb_set_errinfo(), rb_stat_cmp(), rb_thread_pending_interrupt_p(), rb_to_integer(), ruby_cleanup(), setup_exception(), syserr_eqq(), thread_start_func_2(), total_i(), try_convert_to_bn(), umethod_bind(), vm_call_method(), vm_defined(), and vm_search_super_method().

◆ rb_obj_itself()

static VALUE rb_obj_itself ( VALUE  obj)
static

Definition at line 463 of file object.c.

Referenced by InitVM_Object().

◆ rb_obj_ivar_defined()

static VALUE rb_obj_ivar_defined ( VALUE  obj,
VALUE  iv 
)
static

Definition at line 2446 of file object.c.

References id_for_var, Qfalse, and rb_ivar_defined().

Referenced by InitVM_Object().

◆ rb_obj_ivar_get()

static VALUE rb_obj_ivar_get ( VALUE  obj,
VALUE  iv 
)
static

Definition at line 2384 of file object.c.

References id_for_var, Qnil, and rb_ivar_get().

Referenced by InitVM_Object().

◆ rb_obj_ivar_set()

static VALUE rb_obj_ivar_set ( VALUE  obj,
VALUE  iv,
VALUE  val 
)
static

Definition at line 2418 of file object.c.

References id_for_var, rb_intern_str, and rb_ivar_set().

Referenced by InitVM_Object().

◆ rb_obj_match()

static VALUE rb_obj_match ( VALUE  obj1,
VALUE  obj2 
)
static

Definition at line 1429 of file object.c.

References Qnil.

Referenced by InitVM_Object().

◆ rb_obj_not()

VALUE rb_obj_not ( VALUE  obj)

Definition at line 187 of file object.c.

References Qfalse, Qtrue, and RTEST.

Referenced by InitVM_Object().

◆ rb_obj_not_equal()

VALUE rb_obj_not_equal ( VALUE  obj1,
VALUE  obj2 
)

Definition at line 200 of file object.c.

References id_eq, Qfalse, Qtrue, rb_funcall(), result, and RTEST.

Referenced by InitVM_Object().

◆ rb_obj_not_match()

static VALUE rb_obj_not_match ( VALUE  obj1,
VALUE  obj2 
)
static

Definition at line 1443 of file object.c.

References id_match, Qfalse, Qtrue, rb_funcall(), result, and RTEST.

Referenced by InitVM_Object().

◆ rb_obj_reveal()

VALUE rb_obj_reveal ( VALUE  obj,
VALUE  klass 
)

Definition at line 60 of file object.c.

References RBASIC_SET_CLASS, and SPECIAL_CONST_P.

Referenced by zstream_detach_buffer(), zstream_detach_input(), and zstream_expand_buffer().

◆ rb_obj_setup()

VALUE rb_obj_setup ( VALUE  obj,
VALUE  klass,
VALUE  type 
)

Definition at line 69 of file object.c.

References RBASIC, and RBASIC_SET_CLASS.

Referenced by rb_clone_setup(), and rb_dup_setup().

◆ rb_obj_singleton_class()

static VALUE rb_obj_singleton_class ( VALUE  obj)
static

Definition at line 252 of file object.c.

References rb_singleton_class().

Referenced by InitVM_Object().

◆ rb_obj_taint()

VALUE rb_obj_taint ( VALUE  obj)

◆ rb_obj_tainted()

VALUE rb_obj_tainted ( VALUE  obj)

Definition at line 983 of file object.c.

References OBJ_TAINTED, Qfalse, and Qtrue.

Referenced by InitVM_Object(), and rb_obj_untrusted().

◆ rb_obj_tap()

VALUE rb_obj_tap ( VALUE  obj)

Definition at line 733 of file object.c.

References rb_yield().

Referenced by InitVM_Object().

◆ rb_obj_trust()

VALUE rb_obj_trust ( VALUE  obj)

Definition at line 1074 of file object.c.

References rb_obj_untaint(), and rb_warning().

Referenced by InitVM_Object().

◆ rb_obj_untaint()

VALUE rb_obj_untaint ( VALUE  obj)

Definition at line 1028 of file object.c.

References FL_TAINT, FL_UNSET, OBJ_TAINTED, and rb_check_frozen.

Referenced by InitVM_Object(), path_untaint(), and rb_obj_trust().

◆ rb_obj_untrust()

VALUE rb_obj_untrust ( VALUE  obj)

Definition at line 1059 of file object.c.

References rb_obj_taint(), and rb_warning().

Referenced by InitVM_Object().

◆ rb_obj_untrusted()

VALUE rb_obj_untrusted ( VALUE  obj)

Definition at line 1045 of file object.c.

References rb_obj_tainted(), and rb_warning().

Referenced by InitVM_Object().

◆ rb_str_escape()

VALUE rb_str_escape ( VALUE  str)

◆ rb_str_to_dbl()

double rb_str_to_dbl ( VALUE  str,
int  badcheck 
)

◆ rb_String()

VALUE rb_String ( VALUE  val)

◆ rb_to_float()

VALUE rb_to_float ( VALUE  val)

Definition at line 3006 of file object.c.

References numeric_to_float(), T_FLOAT, to_float(), and val.

Referenced by pack_pack(), and rand_range().

◆ rb_to_int()

VALUE rb_to_int ( VALUE  val)

◆ rb_to_integer()

static VALUE rb_to_integer ( VALUE  val,
const char *  method 
)
static

◆ rb_true()

static VALUE rb_true ( VALUE  obj)
static

Definition at line 1396 of file object.c.

References Qtrue.

Referenced by InitVM_Object().

◆ rb_undefined_alloc()

void rb_undefined_alloc ( VALUE  klass)

Definition at line 1816 of file object.c.

References PRIsVALUE, rb_eTypeError, and rb_raise().

Referenced by enc_s_alloc(), and rb_obj_alloc().

◆ special_object_p()

static int special_object_p ( VALUE  obj)
inlinestatic

Definition at line 301 of file object.c.

References BUILTIN_TYPE, FALSE, SPECIAL_CONST_P, T_BIGNUM, T_FLOAT, T_SYMBOL, and TRUE.

Referenced by rb_obj_clone2(), and rb_obj_dup().

◆ to_float()

static int to_float ( VALUE valp)
static

◆ true_and()

static VALUE true_and ( VALUE  obj,
VALUE  obj2 
)
static

Definition at line 1270 of file object.c.

References Qfalse, Qtrue, and RTEST.

Referenced by InitVM_Object().

◆ true_or()

static VALUE true_or ( VALUE  obj,
VALUE  obj2 
)
static

Definition at line 1292 of file object.c.

References Qtrue.

Referenced by InitVM_Object().

◆ true_to_s()

static VALUE true_to_s ( VALUE  obj)
static

Definition at line 1255 of file object.c.

References rb_usascii_str_new2.

Referenced by InitVM_Object().

◆ true_xor()

static VALUE true_xor ( VALUE  obj,
VALUE  obj2 
)
static

Definition at line 1308 of file object.c.

References Qfalse, Qtrue, and RTEST.

Referenced by InitVM_Object().

Variable Documentation

◆ conv_method_names

const struct conv_method_tbl conv_method_names[]
static
Initial value:
= {
#define M(n)
M(int),
M(ary),
M(str),
M(sym),
M(hash),
M(proc),
M(io),
M(a),
M(s),
M(i),
}
static unsigned int hash(str, len) register const char *str
#define sym(x)
Definition: date_core.c:3721
#define M(n)

Referenced by convert_type().

◆ id_dig

ID id_dig
static

Definition at line 3196 of file object.c.

◆ id_to_f

ID id_to_f
static

Definition at line 3025 of file object.c.

◆ invalid_attribute_name

const char invalid_attribute_name[] = "invalid attribute name `%1$s'"
static

Definition at line 1976 of file object.c.

◆ rb_cBasicObject

VALUE rb_cBasicObject

Definition at line 26 of file object.c.

Referenced by InitVM_Object(), rb_class_initialize(), rb_class_superclass(), and rb_obj_alloc().

◆ rb_cClass

VALUE rb_cClass

Definition at line 30 of file object.c.

Referenced by InitVM_Object().

◆ rb_cData

VALUE rb_cData

Definition at line 31 of file object.c.

Referenced by InitVM_Object().

◆ rb_cFalseClass

VALUE rb_cFalseClass

Definition at line 35 of file object.c.

Referenced by InitVM_Object().

◆ rb_cModule

VALUE rb_cModule

Definition at line 29 of file object.c.

Referenced by InitVM_Object().

◆ rb_cNilClass

VALUE rb_cNilClass

Definition at line 33 of file object.c.

Referenced by InitVM_Object().

◆ rb_cObject

VALUE rb_cObject

◆ rb_cTrueClass

VALUE rb_cTrueClass

Definition at line 34 of file object.c.

Referenced by InitVM_Object().

◆ rb_mKernel

VALUE rb_mKernel

Definition at line 27 of file object.c.

Referenced by InitVM_Object().

◆ wrong_constant_name

const char wrong_constant_name[] = "wrong constant name %1$s"
static

Definition at line 1975 of file object.c.