Resurrect symbols used by ObjectSpace
This commit is contained in:
parent
233ddfac54
commit
50a709fb9e
Notes:
git
2023-03-07 05:59:43 +00:00
2
hash.c
2
hash.c
@ -1607,7 +1607,7 @@ rb_hash_modify_check(VALUE hash)
|
|||||||
rb_check_frozen(hash);
|
rb_check_frozen(hash);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct st_table *
|
RUBY_FUNC_EXPORTED struct st_table *
|
||||||
rb_hash_tbl_raw(VALUE hash, const char *file, int line)
|
rb_hash_tbl_raw(VALUE hash, const char *file, int line)
|
||||||
{
|
{
|
||||||
return ar_force_convert_table(hash, file, line);
|
return ar_force_convert_table(hash, file, line);
|
||||||
|
6
shape.c
6
shape.c
@ -44,7 +44,7 @@ rb_shape_each_shape(each_shape_callback callback, void *data)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
rb_shape_t*
|
RUBY_FUNC_EXPORTED rb_shape_t*
|
||||||
rb_shape_get_shape_by_id(shape_id_t shape_id)
|
rb_shape_get_shape_by_id(shape_id_t shape_id)
|
||||||
{
|
{
|
||||||
RUBY_ASSERT(shape_id != INVALID_SHAPE_ID);
|
RUBY_ASSERT(shape_id != INVALID_SHAPE_ID);
|
||||||
@ -71,7 +71,7 @@ rb_rclass_shape_id(VALUE obj)
|
|||||||
shape_id_t rb_generic_shape_id(VALUE obj);
|
shape_id_t rb_generic_shape_id(VALUE obj);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
shape_id_t
|
RUBY_FUNC_EXPORTED shape_id_t
|
||||||
rb_shape_get_shape_id(VALUE obj)
|
rb_shape_get_shape_id(VALUE obj)
|
||||||
{
|
{
|
||||||
if (RB_SPECIAL_CONST_P(obj)) {
|
if (RB_SPECIAL_CONST_P(obj)) {
|
||||||
@ -514,7 +514,7 @@ rb_shape_rebuild_shape(rb_shape_t * initial_shape, rb_shape_t * dest_shape)
|
|||||||
return midway_shape;
|
return midway_shape;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
RUBY_FUNC_EXPORTED bool
|
||||||
rb_shape_obj_too_complex(VALUE obj)
|
rb_shape_obj_too_complex(VALUE obj)
|
||||||
{
|
{
|
||||||
return rb_shape_get_shape_id(obj) == OBJ_TOO_COMPLEX_SHAPE_ID;
|
return rb_shape_get_shape_id(obj) == OBJ_TOO_COMPLEX_SHAPE_ID;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user