Ruby
3.1.0dev(2021-09-10revisionb76ad15ed0da636161de0243c547ee1e6fc95681)
|
#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) |
#define | rb_struct_s_keyword_init_p rb_struct_s_keyword_init |
Enumerations | |
enum | { AREF_HASH_UNIT = 5, AREF_HASH_THRESHOLD = 10 } |
Variables | |
VALUE | rb_cStruct |
#define rb_struct_s_keyword_init_p rb_struct_s_keyword_init |
FUNC_MINIMIZED | ( | VALUE | rb_struct_lookupVALUE s, VALUE idx | ) |
void InitVM_Struct | ( | void | ) |
Definition at line 1419 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().
Definition at line 791 of file struct.c.
References rb_class_new_instance().
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 1041 of file struct.c.
References len, OBJ_INIT_COPY, rb_eTypeError, rb_raise(), RSTRUCT_GET, RSTRUCT_LEN, and RSTRUCT_SET.
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 797 of file struct.c.
References N_REF_FUNC, rb_long2int, and size.
Definition at line 66 of file struct.c.
Referenced by rb_struct_members().
Definition at line 1357 of file struct.c.
References LONG2FIX, and RSTRUCT_LEN.
void rb_struct_transient_heap_evacuate | ( | VALUE | obj, |
int | promote | ||
) |
VALUE rb_cStruct |
Definition at line 34 of file struct.c.
Referenced by InitVM_Struct().