[ruby/json] Move RUBY_TYPED_FROZEN_SHAREABLE macro to json.h

https://github.com/ruby/json/commit/2a4ebe8250
This commit is contained in:
Étienne Barrié 2025-11-21 12:48:21 +01:00 committed by git
parent 419efd5ca5
commit ffa105c27f
3 changed files with 5 additions and 10 deletions

View File

@ -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",
{

View File

@ -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

View File

@ -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",
{