Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)
|
#include "id.h"
#include "internal.h"
#include "internal/class.h"
#include "internal/error.h"
#include "internal/hash.h"
#include "internal/object.h"
#include "internal/proc.h"
#include "internal/struct.h"
#include "internal/symbol.h"
#include "transient_heap.h"
#include "vm_core.h"
#include "builtin.h"
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 | ) |
void Init_Struct | ( | void | ) |
Definition at line 1428 of file struct.c.
References InitVM, and rb_intern().
void InitVM_Struct | ( | void | ) |
Definition at line 1388 of file struct.c.
References rb_cObject, rb_cStruct, rb_define_alias(), rb_define_class(), rb_define_method, rb_define_singleton_method, rb_include_module(), rb_mEnumerable, rb_struct_aref(), rb_struct_aset(), rb_struct_init_copy(), rb_struct_size(), and rb_undef_alloc_func().
Definition at line 760 of file struct.c.
References RARRAY_CONST_PTR, and rb_class_new_instance().
Definition at line 464 of file struct.c.
References name, rb_cStruct, and rb_str_new2.
Definition at line 479 of file struct.c.
References name, rb_cStruct, and rb_define_class_under().
Referenced by Init_etc(), and InitVM_process().
VALUE rb_struct_define_without_accessor | ( | const char * | class_name, |
VALUE | super, | ||
rb_alloc_func_t | alloc, | ||
... | |||
) |
Definition at line 451 of file struct.c.
Referenced by Init_Range().
VALUE rb_struct_define_without_accessor_under | ( | VALUE | outer, |
const char * | class_name, | ||
VALUE | super, | ||
rb_alloc_func_t | alloc, | ||
... | |||
) |
Definition at line 219 of file struct.c.
References ID2SYM, Qnil, RSTRUCT_GET, and UNREACHABLE_RETURN.
Definition at line 1010 of file struct.c.
References len, OBJ_INIT_COPY, rb_eTypeError, rb_raise(), RSTRUCT_GET, RSTRUCT_LEN, and RSTRUCT_SET.
Referenced by InitVM_Struct().
Definition at line 693 of file struct.c.
References Qnil, RARRAY_CONST_PTR, RB_GC_GUARD, and struct_hash_set_arg::self.
Definition at line 80 of file struct.c.
References RARRAY_LEN, rb_eTypeError, rb_obj_class(), rb_raise(), rb_struct_s_members(), and RSTRUCT_LEN.
Definition at line 766 of file struct.c.
References N_REF_FUNC, numberof, rb_ary_tmp_new(), rb_class_new_instance(), and rb_long2int.
Definition at line 66 of file struct.c.
References NIL_P, rb_eTypeError, rb_raise(), and T_ARRAY.
Referenced by rb_struct_members().
Definition at line 1326 of file struct.c.
References LONG2FIX, and RSTRUCT_LEN.
Referenced by InitVM_Struct().
VALUE rb_cStruct |
Definition at line 34 of file struct.c.
Referenced by Init_etc(), InitVM_Struct(), rb_struct_define(), and rb_struct_define_under().