Ruby 2.7.7p221 (2022-11-24 revision 168ec2b1e5ad0e4688e963d9de019557c78feed9)
|
Go to the source code of this file.
Data Structures | |
struct | struct_hash_set_arg |
Macros | |
#define | N_REF_FUNC numberof(ref_func) |
Enumerations | |
enum | { AREF_HASH_UNIT = 5 , AREF_HASH_THRESHOLD = 10 } |
Variables | |
VALUE | rb_cStruct |
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().
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.