[前][次][番号順一覧][スレッド一覧]

ruby-changes:36582

From: nobu <ko1@a...>
Date: Mon, 1 Dec 2014 15:38:45 +0900 (JST)
Subject: [ruby-changes:36582] nobu:r48662 (trunk): use 0 for reserved

nobu	2014-12-01 15:38:04 +0900 (Mon, 01 Dec 2014)

  New Revision: 48662

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48662

  Log:
    use 0 for reserved
    
    use 0 for rb_data_type_t::reserved instead of NULL, since its type
    may be changed in the future and possibly not a pointer type.

  Modified files:
    trunk/cont.c
    trunk/dir.c
    trunk/encoding.c
    trunk/enumerator.c
    trunk/error.c
    trunk/ext/-test-/marshal/usr/usrmarshal.c
    trunk/ext/-test-/st/numhash/numhash.c
    trunk/ext/bigdecimal/bigdecimal.c
    trunk/ext/date/date_core.c
    trunk/ext/dbm/dbm.c
    trunk/ext/digest/digest.c
    trunk/ext/gdbm/gdbm.c
    trunk/ext/json/generator/generator.c
    trunk/ext/json/parser/parser.c
    trunk/ext/json/parser/parser.rl
    trunk/ext/objspace/objspace.c
    trunk/ext/openssl/ossl_bn.c
    trunk/ext/openssl/ossl_cipher.c
    trunk/ext/psych/psych_emitter.c
    trunk/ext/psych/psych_parser.c
    trunk/ext/sdbm/init.c
    trunk/ext/stringio/stringio.c
    trunk/ext/strscan/strscan.c
    trunk/ext/win32ole/win32ole_event.c
    trunk/ext/win32ole/win32ole_method.c
    trunk/ext/win32ole/win32ole_param.c
    trunk/ext/win32ole/win32ole_record.c
    trunk/ext/win32ole/win32ole_type.c
    trunk/ext/win32ole/win32ole_typelib.c
    trunk/ext/win32ole/win32ole_variable.c
    trunk/ext/win32ole/win32ole_variant.c
    trunk/file.c
    trunk/gc.c
    trunk/io.c
    trunk/iseq.c
    trunk/marshal.c
    trunk/parse.y
    trunk/proc.c
    trunk/process.c
    trunk/random.c
    trunk/thread.c
    trunk/time.c
    trunk/transcode.c
    trunk/variable.c
    trunk/vm.c
    trunk/vm_backtrace.c
    trunk/vm_trace.c
Index: encoding.c
===================================================================
--- encoding.c	(revision 48661)
+++ encoding.c	(revision 48662)
@@ -72,7 +72,7 @@ static int load_encoding(const char *nam https://github.com/ruby/ruby/blob/trunk/encoding.c#L72
 static const rb_data_type_t encoding_data_type = {
     "encoding",
     {0, 0, 0,},
-    NULL, NULL, RUBY_TYPED_FREE_IMMEDIATELY
+    0, 0, RUBY_TYPED_FREE_IMMEDIATELY
 };
 
 #define is_data_encoding(obj) (RTYPEDDATA_P(obj) && RTYPEDDATA_TYPE(obj) == &encoding_data_type)
Index: time.c
===================================================================
--- time.c	(revision 48661)
+++ time.c	(revision 48662)
@@ -1796,7 +1796,7 @@ time_memsize(const void *tobj) https://github.com/ruby/ruby/blob/trunk/time.c#L1796
 static const rb_data_type_t time_data_type = {
     "time",
     {time_mark, RUBY_TYPED_DEFAULT_FREE, time_memsize,},
-    NULL, NULL, RUBY_TYPED_FREE_IMMEDIATELY
+    0, 0, RUBY_TYPED_FREE_IMMEDIATELY
 };
 
 static VALUE
Index: enumerator.c
===================================================================
--- enumerator.c	(revision 48661)
+++ enumerator.c	(revision 48662)
@@ -167,7 +167,7 @@ static const rb_data_type_t enumerator_d https://github.com/ruby/ruby/blob/trunk/enumerator.c#L167
 	enumerator_free,
 	enumerator_memsize,
     },
-    NULL, NULL, RUBY_TYPED_FREE_IMMEDIATELY
+    0, 0, RUBY_TYPED_FREE_IMMEDIATELY
 };
 
 static struct enumerator *
@@ -1078,7 +1078,7 @@ static const rb_data_type_t yielder_data https://github.com/ruby/ruby/blob/trunk/enumerator.c#L1078
 	yielder_free,
 	yielder_memsize,
     },
-    NULL, NULL, RUBY_TYPED_FREE_IMMEDIATELY
+    0, 0, RUBY_TYPED_FREE_IMMEDIATELY
 };
 
 static struct yielder *
@@ -1185,7 +1185,7 @@ static const rb_data_type_t generator_da https://github.com/ruby/ruby/blob/trunk/enumerator.c#L1185
 	generator_free,
 	generator_memsize,
     },
-    NULL, NULL, RUBY_TYPED_FREE_IMMEDIATELY
+    0, 0, RUBY_TYPED_FREE_IMMEDIATELY
 };
 
 static struct generator *
Index: variable.c
===================================================================
--- variable.c	(revision 48661)
+++ variable.c	(revision 48662)
@@ -1563,7 +1563,7 @@ autoload_memsize(const void *ptr) https://github.com/ruby/ruby/blob/trunk/variable.c#L1563
 static const rb_data_type_t autoload_data_type = {
     "autoload",
     {autoload_mark, autoload_free, autoload_memsize,},
-    NULL, NULL, RUBY_TYPED_FREE_IMMEDIATELY
+    0, 0, RUBY_TYPED_FREE_IMMEDIATELY
 };
 
 #define check_autoload_table(av) \
@@ -1607,7 +1607,7 @@ autoload_i_memsize(const void *ptr) https://github.com/ruby/ruby/blob/trunk/variable.c#L1607
 static const rb_data_type_t autoload_data_i_type = {
     "autoload_i",
     {autoload_i_mark, RUBY_TYPED_DEFAULT_FREE, autoload_i_memsize,},
-    NULL, NULL, RUBY_TYPED_FREE_IMMEDIATELY
+    0, 0, RUBY_TYPED_FREE_IMMEDIATELY
 };
 
 #define check_autoload_data(av) \
Index: iseq.c
===================================================================
--- iseq.c	(revision 48661)
+++ iseq.c	(revision 48662)
@@ -179,7 +179,7 @@ static const rb_data_type_t iseq_data_ty https://github.com/ruby/ruby/blob/trunk/iseq.c#L179
 	iseq_free,
 	iseq_memsize,
     },              /* functions */
-    NULL, NULL,
+    0, 0,
     RUBY_TYPED_FREE_IMMEDIATELY | RUBY_TYPED_WB_PROTECTED
 };
 
Index: io.c
===================================================================
--- io.c	(revision 48661)
+++ io.c	(revision 48662)
@@ -7758,7 +7758,7 @@ argf_memsize(const void *ptr) https://github.com/ruby/ruby/blob/trunk/io.c#L7758
 static const rb_data_type_t argf_type = {
     "ARGF",
     {argf_mark, argf_free, argf_memsize},
-    NULL, NULL, RUBY_TYPED_FREE_IMMEDIATELY
+    0, 0, RUBY_TYPED_FREE_IMMEDIATELY
 };
 
 static inline void
Index: proc.c
===================================================================
--- proc.c	(revision 48661)
+++ proc.c	(revision 48662)
@@ -67,7 +67,7 @@ static const rb_data_type_t proc_data_ty https://github.com/ruby/ruby/blob/trunk/proc.c#L67
 	RUBY_TYPED_DEFAULT_FREE,
 	proc_memsize,
     },
-    NULL, NULL, RUBY_TYPED_FREE_IMMEDIATELY
+    0, 0, RUBY_TYPED_FREE_IMMEDIATELY
 };
 
 VALUE
@@ -265,7 +265,7 @@ const rb_data_type_t ruby_binding_data_t https://github.com/ruby/ruby/blob/trunk/proc.c#L265
 	binding_free,
 	binding_memsize,
     },
-    NULL, NULL, RUBY_TYPED_FREE_IMMEDIATELY
+    0, 0, RUBY_TYPED_FREE_IMMEDIATELY
 };
 
 VALUE
@@ -1117,7 +1117,7 @@ static const rb_data_type_t method_data_ https://github.com/ruby/ruby/blob/trunk/proc.c#L1117
 	bm_free,
 	bm_memsize,
     },
-    NULL, NULL, RUBY_TYPED_FREE_IMMEDIATELY
+    0, 0, RUBY_TYPED_FREE_IMMEDIATELY
 };
 
 VALUE
Index: thread.c
===================================================================
--- thread.c	(revision 48661)
+++ thread.c	(revision 48662)
@@ -3912,7 +3912,7 @@ thgroup_memsize(const void *ptr) https://github.com/ruby/ruby/blob/trunk/thread.c#L3912
 static const rb_data_type_t thgroup_data_type = {
     "thgroup",
     {NULL, RUBY_TYPED_DEFAULT_FREE, thgroup_memsize,},
-    NULL, NULL, RUBY_TYPED_FREE_IMMEDIATELY
+    0, 0, RUBY_TYPED_FREE_IMMEDIATELY
 };
 
 /*
@@ -4134,7 +4134,7 @@ mutex_memsize(const void *ptr) https://github.com/ruby/ruby/blob/trunk/thread.c#L4134
 static const rb_data_type_t mutex_data_type = {
     "mutex",
     {mutex_mark, mutex_free, mutex_memsize,},
-    NULL, NULL, RUBY_TYPED_FREE_IMMEDIATELY
+    0, 0, RUBY_TYPED_FREE_IMMEDIATELY
 };
 
 VALUE
@@ -4584,7 +4584,7 @@ thread_shield_mark(void *ptr) https://github.com/ruby/ruby/blob/trunk/thread.c#L4584
 static const rb_data_type_t thread_shield_data_type = {
     "thread_shield",
     {thread_shield_mark, 0, 0,},
-    NULL, NULL, RUBY_TYPED_FREE_IMMEDIATELY
+    0, 0, RUBY_TYPED_FREE_IMMEDIATELY
 };
 
 static VALUE
Index: dir.c
===================================================================
--- dir.c	(revision 48661)
+++ dir.c	(revision 48662)
@@ -379,7 +379,7 @@ dir_memsize(const void *ptr) https://github.com/ruby/ruby/blob/trunk/dir.c#L379
 static const rb_data_type_t dir_data_type = {
     "dir",
     {dir_mark, dir_free, dir_memsize,},
-    NULL, NULL, RUBY_TYPED_FREE_IMMEDIATELY
+    0, 0, RUBY_TYPED_FREE_IMMEDIATELY
 };
 
 static VALUE dir_close(VALUE);
Index: vm_backtrace.c
===================================================================
--- vm_backtrace.c	(revision 48661)
+++ vm_backtrace.c	(revision 48662)
@@ -106,7 +106,7 @@ location_memsize(const void *ptr) https://github.com/ruby/ruby/blob/trunk/vm_backtrace.c#L106
 static const rb_data_type_t location_data_type = {
     "frame_info",
     {location_mark, RUBY_TYPED_DEFAULT_FREE, location_memsize,},
-    NULL, NULL, RUBY_TYPED_FREE_IMMEDIATELY
+    0, 0, RUBY_TYPED_FREE_IMMEDIATELY
 };
 
 static inline rb_backtrace_location_t *
@@ -404,7 +404,7 @@ backtrace_memsize(const void *ptr) https://github.com/ruby/ruby/blob/trunk/vm_backtrace.c#L404
 static const rb_data_type_t backtrace_data_type = {
     "backtrace",
     {backtrace_mark, backtrace_free, backtrace_memsize,},
-    NULL, NULL, RUBY_TYPED_FREE_IMMEDIATELY
+    0, 0, RUBY_TYPED_FREE_IMMEDIATELY
 };
 
 int
Index: gc.c
===================================================================
--- gc.c	(revision 48661)
+++ gc.c	(revision 48662)
@@ -7602,7 +7602,7 @@ static const rb_data_type_t weakmap_type https://github.com/ruby/ruby/blob/trunk/gc.c#L7602
 	wmap_free,
 	wmap_memsize,
     },
-    NULL, NULL, RUBY_TYPED_FREE_IMMEDIATELY
+    0, 0, RUBY_TYPED_FREE_IMMEDIATELY
 };
 
 static VALUE
Index: parse.y
===================================================================
--- parse.y	(revision 48661)
+++ parse.y	(revision 48662)
@@ -10539,7 +10539,7 @@ static const rb_data_type_t parser_data_ https://github.com/ruby/ruby/blob/trunk/parse.y#L10539
 	parser_free,
 	parser_memsize,
     },
-    NULL, NULL, RUBY_TYPED_FREE_IMMEDIATELY
+    0, 0, RUBY_TYPED_FREE_IMMEDIATELY
 };
 
 #ifndef RIPPER
Index: process.c
===================================================================
--- process.c	(revision 48661)
+++ process.c	(revision 48662)
@@ -1376,7 +1376,7 @@ memsize_exec_arg(const void *ptr) https://github.com/ruby/ruby/blob/trunk/process.c#L1376
 static const rb_data_type_t exec_arg_data_type = {
     "exec_arg",
     {mark_exec_arg, RUBY_TYPED_DEFAULT_FREE, memsize_exec_arg},
-    NULL, NULL, RUBY_TYPED_FREE_IMMEDIATELY
+    0, 0, RUBY_TYPED_FREE_IMMEDIATELY
 };
 
 #ifdef _WIN32
Index: ext/digest/digest.c
===================================================================
--- ext/digest/digest.c	(revision 48661)
+++ ext/digest/digest.c	(revision 48662)
@@ -540,7 +540,7 @@ get_digest_base_metadata(VALUE klass) https://github.com/ruby/ruby/blob/trunk/ext/digest/digest.c#L540
 static const rb_data_type_t digest_type = {
     "digest",
     {0, RUBY_TYPED_DEFAULT_FREE, 0,},
-    NULL, NULL,
+    0, 0,
     (RUBY_TYPED_FREE_IMMEDIATELY|RUBY_TYPED_WB_PROTECTED),
 };
 
Index: ext/bigdecimal/bigdecimal.c
===================================================================
--- ext/bigdecimal/bigdecimal.c	(revision 48661)
+++ ext/bigdecimal/bigdecimal.c	(revision 48662)
@@ -162,7 +162,7 @@ static const rb_data_type_t BigDecimal_d https://github.com/ruby/ruby/blob/trunk/ext/bigdecimal/bigdecimal.c#L162
     "BigDecimal",
     { 0, BigDecimal_delete, BigDecimal_memsize, },
 #ifdef RUBY_TYPED_FREE_IMMEDIATELY
-    NULL, NULL, RUBY_TYPED_FREE_IMMEDIATELY
+    0, 0, RUBY_TYPED_FREE_IMMEDIATELY
 #endif
 };
 
Index: ext/sdbm/init.c
===================================================================
--- ext/sdbm/init.c	(revision 48661)
+++ ext/sdbm/init.c	(revision 48662)
@@ -112,7 +112,7 @@ memsize_dbm(const void *ptr) https://github.com/ruby/ruby/blob/trunk/ext/sdbm/init.c#L112
 static const rb_data_type_t sdbm_type = {
     "sdbm",
     {0, free_sdbm, memsize_dbm,},
-    NULL, NULL,
+    0, 0,
     RUBY_TYPED_FREE_IMMEDIATELY,
 };
 
Index: ext/objspace/objspace.c
===================================================================
--- ext/objspace/objspace.c	(revision 48661)
+++ ext/objspace/objspace.c	(revision 48662)
@@ -518,7 +518,7 @@ iow_size(const void *ptr) https://github.com/ruby/ruby/blob/trunk/ext/objspace/objspace.c#L518
 static const rb_data_type_t iow_data_type = {
     "ObjectSpace::InternalObjectWrapper",
     {iow_mark, 0, iow_size,},
-    NULL, NULL, RUBY_TYPED_FREE_IMMEDIATELY
+    0, 0, RUBY_TYPED_FREE_IMMEDIATELY
 };
 
 static VALUE rb_mInternalObjectWrapper;
Index: ext/win32ole/win32ole_record.c
===================================================================
--- ext/win32ole/win32ole_record.c	(revision 48661)
+++ ext/win32ole/win32ole_record.c	(revision 48662)
@@ -23,7 +23,7 @@ static VALUE folerecord_inspect(VALUE se https://github.com/ruby/ruby/blob/trunk/ext/win32ole/win32ole_record.c#L23
 static const rb_data_type_t olerecord_datatype = {
     "win32ole_record",
     {NULL, olerecord_free, olerecord_size,},
-    NULL, NULL, RUBY_TYPED_FREE_IMMEDIATELY
+    0, 0, RUBY_TYPED_FREE_IMMEDIATELY
 };
 
 static HRESULT
Index: ext/win32ole/win32ole_method.c
===================================================================
--- ext/win32ole/win32ole_method.c	(revision 48661)
+++ ext/win32ole/win32ole_method.c	(revision 48662)
@@ -45,7 +45,7 @@ static VALUE folemethod_inspect(VALUE se https://github.com/ruby/ruby/blob/trunk/ext/win32ole/win32ole_method.c#L45
 static const rb_data_type_t olemethod_datatype = {
     "win32ole_method",
     {NULL, olemethod_free, olemethod_size,},
-    NULL, NULL, RUBY_TYPED_FREE_IMMEDIATELY
+    0, 0, RUBY_TYPED_FREE_IMMEDIATELY
 };
 
 static void
Index: ext/win32ole/win32ole_type.c
===================================================================
--- ext/win32ole/win32ole_type.c	(revision 48661)
+++ ext/win32ole/win32ole_type.c	(revision 48662)
@@ -50,7 +50,7 @@ static VALUE foletype_inspect(VALUE self https://github.com/ruby/ruby/blob/trunk/ext/win32ole/win32ole_type.c#L50
 static const rb_data_type_t oletype_datatype = {
     "win32ole_type",
     {NULL, oletype_free, oletype_size,},
-    NULL, NULL, RUBY_TYPED_FREE_IMMEDIATELY
+    0, 0, RUBY_TYPED_FREE_IMMEDIATELY
 };
 
 /*
Index: ext/win32ole/win32ole_event.c
===================================================================
--- ext/win32ole/win32ole_event.c	(revision 48661)
+++ ext/win32ole/win32ole_event.c	(revision 48662)
@@ -110,7 +110,7 @@ static long  evs_length(void); https://github.com/ruby/ruby/blob/trunk/ext/win32ole/win32ole_event.c#L110
 static const rb_data_type_t oleevent_datatype = {
     "win32ole_event",
     {NULL, oleevent_free, oleevent_size,},
-    NULL, NULL, RUBY_TYPED_FREE_IMMEDIATELY
+    0, 0, RUBY_TYPED_FREE_IMMEDIATELY
 };
 
 STDMETHODIMP EVENTSINK_Invoke(
Index: ext/win32ole/win32ole_variable.c
===================================================================
--- ext/win32ole/win32ole_variable.c	(revision 48661)
+++ ext/win32ole/win32ole_variable.c	(revision 48662)
@@ -25,7 +25,7 @@ static VALUE folevariable_inspect(VALUE https://github.com/ruby/ruby/blob/trunk/ext/win32ole/win32ole_variable.c#L25
 static const rb_data_type_t olevariable_datatype = {
     "win32ole_variable",
     {NULL, olevariable_free, olevariable_size,},
-    NULL, NULL, RUBY_TYPED_FREE_IMMEDIATELY
+    0, 0, RUBY_TYPED_FREE_IMMEDIATELY
 };
 
 static void
Index: ext/win32ole/win32ole_param.c
===================================================================
--- ext/win32ole/win32ole_param.c	(revision 48661)
+++ ext/win32ole/win32ole_param.c	(revision 48662)
@@ -31,7 +31,7 @@ static VALUE foleparam_inspect(VALUE sel https://github.com/ruby/ruby/blob/trunk/ext/win32ole/win32ole_param.c#L31
 static const rb_data_type_t oleparam_datatype = {
     "win32ole_param",
     {NULL, oleparam_free, oleparam_size,},
-    NULL, NULL, RUBY_TYPED_FREE_IMMEDIATELY
+    0, 0, RUBY_TYPED_FREE_IMMEDIATELY
 };
 
 static void
Index: ext/win32ole/win32ole_variant.c
===================================================================
--- ext/win32ole/win32ole_variant.c	(revision 48661)
+++ ext/win32ole/win32ole_variant.c	(revision 48662)
@@ -26,7 +26,7 @@ static VALUE folevariant_set_value(VALUE https://github.com/ruby/ruby/blob/trunk/ext/win32ole/win32ole_variant.c#L26
 static const rb_data_type_t olevariant_datatype = {
     "win32ole_variant",
     {NULL, olevariant_free, olevariant_size,},
-    NULL, NULL, RUBY_TYPED_FREE_IMMEDIATELY
+    0, 0, RUBY_TYPED_FREE_IMMEDIATELY
 };
 
 static void
Index: ext/win32ole/win32ole_typelib.c
===================================================================
--- ext/win32ole/win32ole_typelib.c	(revision 48661)
+++ ext/win32ole/win32ole_typelib.c	(revision 48662)
@@ -34,7 +34,7 @@ static VALUE foletypelib_inspect(VALUE s https://github.com/ruby/ruby/blob/trunk/ext/win32ole/win32ole_typelib.c#L34
 static const rb_data_type_t oletypelib_datatype = {
     "win32ole_typelib",
     {NULL, oletypelib_free, oletypelib_size,},
-    NULL, NULL, RUBY_TYPED_FREE_IMMEDIATELY
+    0, 0, RUBY_TYPED_FREE_IMMEDIATELY
 };
 
 static VALUE
Index: ext/-test-/st/numhash/numhash.c
===================================================================
--- ext/-test-/st/numhash/numhash.c	(revision 48661)
+++ ext/-test-/st/numhash/numhash.c	(revision 48662)
@@ -16,7 +16,7 @@ numhash_memsize(const void *ptr) https://github.com/ruby/ruby/blob/trunk/ext/-test-/st/numhash/numhash.c#L16
 static const rb_data_type_t numhash_type = {
     "numhash",
     {0, numhash_free, numhash_memsize,},
-    NULL, NULL,
+    0, 0,
     RUBY_TYPED_FREE_IMMEDIATELY|RUBY_TYPED_WB_PROTECTED,
 };
 
Index: ext/-test-/marshal/usr/usrmarshal.c
===================================================================
--- ext/-test-/marshal/usr/usrmarshal.c	(revision 48661)
+++ ext/-test-/marshal/usr/usrmarshal.c	(revision 48662)
@@ -9,7 +9,7 @@ usr_size(const void *ptr) https://github.com/ruby/ruby/blob/trunk/ext/-test-/marshal/usr/usrmarshal.c#L9
 static const rb_data_type_t usrmarshal_type = {
     "UsrMarshal",
     {0, RUBY_DEFAULT_FREE, usr_size,},
-    NULL, NULL,
+    0, 0,
     RUBY_TYPED_FREE_IMMEDIATELY|RUBY_TYPED_WB_PROTECTED,
 };
 
Index: ext/json/generator/generator.c
===================================================================
--- ext/json/generator/generator.c	(revision 48661)
+++ ext/json/generator/generator.c	(revision 48662)
@@ -518,7 +518,7 @@ static size_t State_memsize(const void * https://github.com/ruby/ruby/blob/trunk/ext/json/generator/generator.c#L518
 static const rb_data_type_t JSON_Generator_State_type = {
     "JSON/Generator/State",
     {NULL, State_free, State_memsize,},
-    NULL, NULL,
+    0, 0,
     RUBY_TYPED_FREE_IMMEDIATELY,
 };
 
Index: ext/json/parser/parser.rl
===================================================================
--- ext/json/parser/parser.rl	(revision 48661)
+++ ext/json/parser/parser.rl	(revision 48662)
@@ -849,7 +849,7 @@ static size_t JSON_memsize(const void *p https://github.com/ruby/ruby/blob/trunk/ext/json/parser/parser.rl#L849
 static const rb_data_type_t JSON_Parser_type = {
     "JSON/Parser",
     {JSON_mark, JSON_free, JSON_memsize,},
-    NULL, NULL,
+    0, 0,
     RUBY_TYPED_FREE_IMMEDIATELY,
 };
 
Index: ext/json/parser/parser.c
===================================================================
--- ext/json/parser/parser.c	(revision 48661)
+++ ext/json/parser/parser.c	(revision 48662)
@@ -2126,7 +2126,7 @@ static size_t JSON_memsize(const void *p https://github.com/ruby/ruby/blob/trunk/ext/json/parser/parser.c#L2126
 static const rb_data_type_t JSON_Parser_type = {
     "JSON/Parser",
     {JSON_mark, JSON_free, JSON_memsize,},
-    NULL, NULL,
+    0, 0,
     RUBY_TYPED_FREE_IMMEDIATELY,
 };
 
Index: ext/date/date_core.c
===================================================================
--- ext/date/date_core.c	(revision 48661)
+++ ext/date/date_core.c	(revision 48662)
@@ -2947,7 +2947,7 @@ d_lite_memsize(const void *ptr) https://github.com/ruby/ruby/blob/trunk/ext/date/date_core.c#L2947
 static const rb_data_type_t d_lite_type = {
     "Date",
     {d_lite_gc_mark, RUBY_TYPED_DEFAULT_FREE, d_lite_memsize,},
-    NULL, NULL,
+    0, 0,
     RUBY_TYPED_FREE_IMMEDIATELY|RUBY_TYPED_WB_PROTECTED,
 };
 
Index: ext/openssl/ossl_cipher.c
===================================================================
--- ext/openssl/ossl_cipher.c	(revision 48661)
+++ ext/openssl/ossl_cipher.c	(revision 48662)
@@ -43,7 +43,7 @@ static size_t ossl_cipher_memsize(const https://github.com/ruby/ruby/blob/trunk/ext/openssl/ossl_cipher.c#L43
 static const rb_data_type_t ossl_cipher_type = {
     "OpenSSL/Cipher",
     {0, ossl_cipher_free, ossl_cipher_memsize,},
-    NULL, NULL,
+    0, 0,
     RUBY_TYPED_FREE_IMMEDIATELY,
 };
 
Index: ext/openssl/ossl_bn.c
===================================================================
--- ext/openssl/ossl_bn.c	(revision 48661)
+++ ext/openssl/ossl_bn.c	(revision 48662)
@@ -45,7 +45,7 @@ ossl_bn_size(const void *ptr) https://github.com/ruby/ruby/blob/trunk/ext/openssl/ossl_bn.c#L45
 static const rb_data_type_t ossl_bn_type = {
     "OpenSSL/BN",
     {0, ossl_bn_free, ossl_bn_size,},
-    NULL, NULL,
+    0, 0,
     RUBY_TYPED_FREE_IMMEDIATELY,
 };
 
Index: ext/psych/psych_parser.c
===================================================================
--- ext/psych/psych_parser.c	(revision 48661)
+++ ext/psych/psych_parser.c	(revision 48662)
@@ -61,7 +61,7 @@ static size_t memsize(const void *ptr) https://github.com/ruby/ruby/blob/trunk/ext/psych/psych_parser.c#L61
 static const rb_data_type_t psych_parser_type = {
     "Psych/parser",
     {0, dealloc, 0,},
-    NULL, NULL,
+    0, 0,
     RUBY_TYPED_FREE_IMMEDIATELY,
 };
 
Index: ext/psych/psych_emitter.c
===================================================================
--- ext/psych/psych_emitter.c	(revision 48661)
+++ ext/psych/psych_emitter.c	(revision 48662)
@@ -41,7 +41,7 @@ static size_t memsize(const void *ptr) https://github.com/ruby/ruby/blob/trunk/ext/psych/psych_emitter.c#L41
 static const rb_data_type_t psych_emitter_type = {
     "Psych/emitter (... truncated)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]