diff options
| author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2026-01-16 16:52:32 +0900 |
|---|---|---|
| committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2026-01-16 16:52:32 +0900 |
| commit | 67d4ceb5255310feefac473265ef713214554708 (patch) | |
| tree | fce9e8a4f8b8d9c8b88715b66c6cc0b370637e9b /include/ruby | |
| parent | a797561e25cf64a4db7f231574a5ea62107187e8 (diff) | |
Expand `rb_data_type_t::reserved` for future use
Diffstat (limited to 'include/ruby')
| -rw-r--r-- | include/ruby/internal/abi.h | 2 | ||||
| -rw-r--r-- | include/ruby/internal/core/rtypeddata.h | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/include/ruby/internal/abi.h b/include/ruby/internal/abi.h index e735a67564..e6d1fa7e8f 100644 --- a/include/ruby/internal/abi.h +++ b/include/ruby/internal/abi.h @@ -24,7 +24,7 @@ * In released versions of Ruby, this number is not defined since teeny * versions of Ruby should guarantee ABI compatibility. */ -#define RUBY_ABI_VERSION 0 +#define RUBY_ABI_VERSION 1 /* Windows does not support weak symbols so ruby_abi_version will not exist * in the shared library. */ diff --git a/include/ruby/internal/core/rtypeddata.h b/include/ruby/internal/core/rtypeddata.h index 8c0397d80b..ec0794e387 100644 --- a/include/ruby/internal/core/rtypeddata.h +++ b/include/ruby/internal/core/rtypeddata.h @@ -265,6 +265,13 @@ struct rb_data_type_struct { * @internal */ void (*handle_weak_references)(void *); + + /** + * This field is reserved for future extension. For now, it must be + * filled with zeros. + */ + void *reserved[7]; /* For future extension. + This array *must* be filled with ZERO. */ } function; /** |
