mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Prefix REF_EDGE
and REFS_LIST_PTR
with RUBY_
Also move `struct` so that `typedef`-ed names can be used.
This commit is contained in:
parent
18f218d6a1
commit
30f7b7a053
4 changed files with 17 additions and 17 deletions
20
enumerator.c
20
enumerator.c
|
@ -196,15 +196,15 @@ struct enumerator {
|
|||
};
|
||||
|
||||
RUBY_REFERENCES_START(enumerator_refs)
|
||||
REF_EDGE(enumerator, obj),
|
||||
REF_EDGE(enumerator, args),
|
||||
REF_EDGE(enumerator, fib),
|
||||
REF_EDGE(enumerator, dst),
|
||||
REF_EDGE(enumerator, lookahead),
|
||||
REF_EDGE(enumerator, feedvalue),
|
||||
REF_EDGE(enumerator, stop_exc),
|
||||
REF_EDGE(enumerator, size),
|
||||
REF_EDGE(enumerator, procs),
|
||||
RUBY_REF_EDGE(struct enumerator, obj),
|
||||
RUBY_REF_EDGE(struct enumerator, args),
|
||||
RUBY_REF_EDGE(struct enumerator, fib),
|
||||
RUBY_REF_EDGE(struct enumerator, dst),
|
||||
RUBY_REF_EDGE(struct enumerator, lookahead),
|
||||
RUBY_REF_EDGE(struct enumerator, feedvalue),
|
||||
RUBY_REF_EDGE(struct enumerator, stop_exc),
|
||||
RUBY_REF_EDGE(struct enumerator, size),
|
||||
RUBY_REF_EDGE(struct enumerator, procs),
|
||||
RUBY_REFERENCES_END
|
||||
|
||||
static VALUE rb_cGenerator, rb_cYielder, rb_cEnumProducer;
|
||||
|
@ -259,7 +259,7 @@ VALUE rb_cArithSeq;
|
|||
static const rb_data_type_t enumerator_data_type = {
|
||||
"enumerator",
|
||||
{
|
||||
REFS_LIST_PTR(enumerator_refs),
|
||||
RUBY_REFS_LIST_PTR(enumerator_refs),
|
||||
RUBY_TYPED_DEFAULT_FREE,
|
||||
NULL, // Nothing allocated externally, so don't need a memsize function
|
||||
NULL,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue