Home
last modified time | relevance | path

Searched refs:RSTRUCT_CONST_PTR (Results 1 – 6 of 6) sorted by relevance

/dports/lang/ruby26/ruby-2.6.9/
H A Dstruct.c627 rb_mem_clear((VALUE *)RSTRUCT_CONST_PTR(self), n); in rb_struct_initialize_m()
644 rb_mem_clear((VALUE *)RSTRUCT_CONST_PTR(self)+argc, n-argc); in rb_struct_initialize_m()
897 return rb_ary_new4(RSTRUCT_LEN(s), RSTRUCT_CONST_PTR(s)); in rb_struct_to_a()
H A Dinternal.h903 #define RSTRUCT_CONST_PTR(st) rb_struct_const_ptr(st) macro
904 #define RSTRUCT_PTR(st) ((VALUE *)RSTRUCT_CONST_PTR(RB_OBJ_WB_UNPROTECT_FOR(STRUCT, st)))
905 #define RSTRUCT_SET(st, idx, v) RB_OBJ_WRITE(st, &RSTRUCT_CONST_PTR(st)[idx], (v))
906 #define RSTRUCT_GET(st, idx) (RSTRUCT_CONST_PTR(st)[idx])
H A Dtime.c5242 const VALUE *p = RSTRUCT_CONST_PTR(tm); in tm_to_time()
5271 const VALUE *p = RSTRUCT_CONST_PTR(tm); in tm_to_s()
H A Dgc.c4834 const VALUE * const ptr = RSTRUCT_CONST_PTR(obj); in gc_mark_children()
H A DChangeLog10152 use `RSTRUCT_CONST_PTR` carefully.
10154 * struct.c: should not use `RSTRUCT_CONST_PTR` with method dispatch
/dports/lang/ruby26/ruby-2.6.9/doc/
H A DChangeLog-2.1.04806 RSTRUCT_RAWPTR() is also renamed to RSTRUCT_CONST_PTR()