diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-05-19 02:18:49 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-05-19 02:18:49 +0000 |
commit | 0f0e948178d6a38e21fd4cf8d7d41b2e34e95508 (patch) | |
tree | 558cfd583f8b36aecb7ae06b38f424b4cd8f6ed7 /include | |
parent | f2e248c423746653b18c1edef2afd2d4ca953e06 (diff) | |
download | ruby-0f0e948178d6a38e21fd4cf8d7d41b2e34e95508.tar.gz |
ruby.h: add old names
* include/ruby/ruby.h (rb_data_typed_object_alloc),
(rb_data_object_alloc): add old names for source level backward
compatibilities.
* gc.c (rb_data_object_alloc, rb_data_typed_object_alloc): add
aliases for binary level backward compatibilities.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/ruby.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index 4433dbcbbd..f26dac5ce1 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -1010,6 +1010,8 @@ typedef void (*RUBY_DATA_FUNC)(void*); # define RUBY_UNTYPED_DATA_WARNING 0 # endif #endif +#define rb_data_object_alloc rb_data_object_wrap +#define rb_data_typed_object_alloc rb_data_typed_object_wrap VALUE rb_data_object_wrap(VALUE,void*,RUBY_DATA_FUNC,RUBY_DATA_FUNC); VALUE rb_data_object_zalloc(VALUE,size_t,RUBY_DATA_FUNC,RUBY_DATA_FUNC); VALUE rb_data_typed_object_wrap(VALUE klass, void *datap, const rb_data_type_t *); |