Ruby
2.5.0dev(2017-10-22revision60238)
|
Go to the source code of this file.
Macros | |
#define | N_REF_FUNC numberof(ref_func) |
Enumerations | |
enum | { AREF_HASH_UNIT = 5, AREF_HASH_THRESHOLD = 10 } |
Variables | |
VALUE | rb_cStruct |
#define N_REF_FUNC numberof(ref_func) |
Definition at line 228 of file struct.c.
Referenced by rb_struct_new().
FUNC_MINIMIZED | ( | VALUE | rb_struct_lookupVALUE s, VALUE idx | ) |
void InitVM_Struct | ( | void | ) |
Definition at line 1189 of file struct.c.
References rb_cObject, rb_cStruct, rb_define_class(), rb_define_singleton_method(), rb_include_module(), rb_mEnumerable, and rb_undef_alloc_func().
NOINLINE | ( | static VALUE | rb_struct_lookup_defaultVALUE s, VALUE idx, VALUE notfound | ) |
NORETURN | ( | static void | invalid_struct_posVALUE s, VALUE idx | ) |
const rb_iseq_t* rb_method_for_self_aref | ( | VALUE | name, |
VALUE | arg, | ||
rb_insn_func_t | func | ||
) |
const rb_iseq_t* rb_method_for_self_aset | ( | VALUE | name, |
VALUE | arg, | ||
rb_insn_func_t | func | ||
) |
Definition at line 599 of file struct.c.
References RARRAY_CONST_PTR, RARRAY_LENINT, and rb_class_new_instance().
Definition at line 896 of file struct.c.
Referenced by rb_vm_opt_struct_aref().
Definition at line 923 of file struct.c.
Referenced by rb_vm_opt_struct_aset().
Definition at line 410 of file struct.c.
References RString::ary.
Definition at line 425 of file struct.c.
References RString::ary.
VALUE rb_struct_define_without_accessor | ( | const char * | class_name, |
VALUE | super, | ||
rb_alloc_func_t | alloc, | ||
... | |||
) |
VALUE rb_struct_define_without_accessor_under | ( | VALUE | outer, |
const char * | class_name, | ||
VALUE | super, | ||
rb_alloc_func_t | alloc, | ||
... | |||
) |
Definition at line 809 of file struct.c.
References len, OBJ_INIT_COPY, rb_eTypeError, rb_raise(), RSTRUCT_GET, RSTRUCT_LEN, and RSTRUCT_SET.
Definition at line 65 of file struct.c.
References RARRAY_LEN, rb_eTypeError, rb_obj_class(), rb_raise(), rb_struct_s_members(), and RSTRUCT_LEN.
Definition at line 605 of file struct.c.
References N_REF_FUNC, rb_long2int, and size.
Definition at line 51 of file struct.c.
Referenced by rb_struct_members().
Definition at line 1130 of file struct.c.
References LONG2FIX, and RSTRUCT_LEN.
VALUE rb_cStruct |
Definition at line 25 of file struct.c.
Referenced by InitVM_Struct().