1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* include/ruby/ruby.h (RUBY_{DEFAULT,NEVER}_FREE): added.

[ruby-dev:40889]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2010-04-01 00:54:37 +00:00
parent a4dbc2ea10
commit 44e08324c7
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Thu Apr 1 09:54:27 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* include/ruby/ruby.h (RUBY_{DEFAULT,NEVER}_FREE): added.
[ruby-dev:40889]
Thu Apr 1 04:55:08 2010 Tanaka Akira <akr@fsij.org> Thu Apr 1 04:55:08 2010 Tanaka Akira <akr@fsij.org>
* time.c (rb_big_abs_find_minbit): fix handling the last word. * time.c (rb_big_abs_find_minbit): fix handling the last word.

View file

@ -757,7 +757,10 @@ VALUE rb_data_typed_object_alloc(VALUE klass, void *datap, const rb_data_type_t
int rb_typeddata_is_kind_of(VALUE, const rb_data_type_t *); int rb_typeddata_is_kind_of(VALUE, const rb_data_type_t *);
void *rb_check_typeddata(VALUE, const rb_data_type_t *); void *rb_check_typeddata(VALUE, const rb_data_type_t *);
#define Check_TypedStruct(v,t) rb_check_typeddata((VALUE)(v),t) #define Check_TypedStruct(v,t) rb_check_typeddata((VALUE)(v),t)
#define RUBY_TYPED_DEFAULT_FREE ((void (*)(void *))-1) #define RUBY_DEFAULT_FREE ((RUBY_DATA_FUNC)-1)
#define RUBY_NEVER_FREE ((RUBY_DATA_FUNC)0)
#define RUBY_TYPED_DEFAULT_FREE RUBY_DEFAULT_FREE
#define RUBY_TYPED_NEVER_FREE RUBY_NEVER_FREE
#define Data_Wrap_Struct(klass,mark,free,sval)\ #define Data_Wrap_Struct(klass,mark,free,sval)\
rb_data_object_alloc(klass,sval,(RUBY_DATA_FUNC)mark,(RUBY_DATA_FUNC)free) rb_data_object_alloc(klass,sval,(RUBY_DATA_FUNC)mark,(RUBY_DATA_FUNC)free)