mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
06bdfd0dfb
commit
e580a631be
47 changed files with 59 additions and 59 deletions
|
@ -167,7 +167,7 @@ static const rb_data_type_t enumerator_data_type = {
|
|||
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_type = {
|
|||
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_data_type = {
|
|||
generator_free,
|
||||
generator_memsize,
|
||||
},
|
||||
NULL, NULL, RUBY_TYPED_FREE_IMMEDIATELY
|
||||
0, 0, RUBY_TYPED_FREE_IMMEDIATELY
|
||||
};
|
||||
|
||||
static struct generator *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue