mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
[ruby/json] Move RUBY_TYPED_FROZEN_SHAREABLE macro to json.h
https://github.com/ruby/json/commit/2a4ebe8250
This commit is contained in:
parent
419efd5ca5
commit
ffa105c27f
@ -926,11 +926,6 @@ static size_t State_memsize(const void *ptr)
|
||||
return sizeof(JSON_Generator_State);
|
||||
}
|
||||
|
||||
#ifndef HAVE_RB_EXT_RACTOR_SAFE
|
||||
# undef RUBY_TYPED_FROZEN_SHAREABLE
|
||||
# define RUBY_TYPED_FROZEN_SHAREABLE 0
|
||||
#endif
|
||||
|
||||
static const rb_data_type_t JSON_Generator_State_type = {
|
||||
"JSON/Generator/State",
|
||||
{
|
||||
|
||||
@ -45,6 +45,11 @@ typedef unsigned char _Bool;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_RB_EXT_RACTOR_SAFE
|
||||
# undef RUBY_TYPED_FROZEN_SHAREABLE
|
||||
# define RUBY_TYPED_FROZEN_SHAREABLE 0
|
||||
#endif
|
||||
|
||||
#ifndef NORETURN
|
||||
#define NORETURN(x) x
|
||||
#endif
|
||||
|
||||
@ -1554,11 +1554,6 @@ static size_t JSON_ParserConfig_memsize(const void *ptr)
|
||||
return sizeof(JSON_ParserConfig);
|
||||
}
|
||||
|
||||
#ifndef HAVE_RB_EXT_RACTOR_SAFE
|
||||
# undef RUBY_TYPED_FROZEN_SHAREABLE
|
||||
# define RUBY_TYPED_FROZEN_SHAREABLE 0
|
||||
#endif
|
||||
|
||||
static const rb_data_type_t JSON_ParserConfig_type = {
|
||||
"JSON::Ext::Parser/ParserConfig",
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user