mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Add RUBY_REFERENCES
Instead of `RUBY_REFERENCES_START` and `RUBY_REFERENCES_END`, so that auto-indent works well.
This commit is contained in:
parent
30f7b7a053
commit
0cdad3b92a
4 changed files with 15 additions and 11 deletions
|
@ -195,7 +195,7 @@ struct enumerator {
|
|||
int kw_splat;
|
||||
};
|
||||
|
||||
RUBY_REFERENCES_START(enumerator_refs)
|
||||
RUBY_REFERENCES(enumerator_refs) = {
|
||||
RUBY_REF_EDGE(struct enumerator, obj),
|
||||
RUBY_REF_EDGE(struct enumerator, args),
|
||||
RUBY_REF_EDGE(struct enumerator, fib),
|
||||
|
@ -205,7 +205,8 @@ RUBY_REFERENCES_START(enumerator_refs)
|
|||
RUBY_REF_EDGE(struct enumerator, stop_exc),
|
||||
RUBY_REF_EDGE(struct enumerator, size),
|
||||
RUBY_REF_EDGE(struct enumerator, procs),
|
||||
RUBY_REFERENCES_END
|
||||
RUBY_REF_END
|
||||
};
|
||||
|
||||
static VALUE rb_cGenerator, rb_cYielder, rb_cEnumProducer;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue