diff options
author | Nobuyoshi Nakada <[email protected]> | 2023-11-26 19:09:16 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2023-11-30 21:39:28 +0900 |
commit | 0cdad3b92a7e117bc7e36779140f5c83b07ca7ce (patch) | |
tree | 2d1616a85c086cd458c054309368dd175ba7602a /enumerator.c | |
parent | 30f7b7a0535575a4995ea59086830ee19c79ea82 (diff) |
Add `RUBY_REFERENCES`
Instead of `RUBY_REFERENCES_START` and `RUBY_REFERENCES_END`, so that
auto-indent works well.
Diffstat (limited to 'enumerator.c')
-rw-r--r-- | enumerator.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/enumerator.c b/enumerator.c index b77ef175ce..79a52f05d1 100644 --- a/enumerator.c +++ b/enumerator.c @@ -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; |