Ruby
2.7.2p137(2020-10-01revision5445e0435260b449decf2ac16f9d09bae3cafe72)
|
Go to the source code of this file.
Data Structures | |
struct | struct_hash_set_arg |
Macros | |
#define | N_REF_FUNC numberof(ref_func) |
Variables | |
VALUE | rb_cStruct |
anonymous enum |
FUNC_MINIMIZED | ( | VALUE | rb_struct_lookupVALUE s, VALUE idx | ) |
Definition at line 1350 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 724 of file struct.c.
References klass, RARRAY_CONST_PTR, RARRAY_LENINT, and rb_class_new_instance().
Definition at line 1061 of file struct.c.
References i.
Referenced by __attribute__(), and rb_vm_opt_struct_aref().
Definition at line 446 of file struct.c.
References RString::ary, name, and va_start.
VALUE rb_struct_define_without_accessor | ( | const char * | class_name, |
VALUE | super, | ||
rb_alloc_func_t | alloc, | ||
... | |||
) |
Definition at line 974 of file struct.c.
References i, len, OBJ_INIT_COPY, rb_eTypeError, rb_raise(), RSTRUCT_GET, RSTRUCT_LEN, and RSTRUCT_SET.
Definition at line 72 of file struct.c.
References RARRAY_LEN, rb_eTypeError, rb_obj_class(), rb_raise(), rb_struct_s_members(), and RSTRUCT_LEN.
Definition at line 730 of file struct.c.
References i, N_REF_FUNC, rb_long2int, and size.
Definition at line 58 of file struct.c.
Referenced by rb_struct_members().
Definition at line 1291 of file struct.c.
References LONG2FIX, and RSTRUCT_LEN.