diff options
author | Nobuyoshi Nakada <[email protected]> | 2023-11-26 16:04:27 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2023-11-30 21:39:28 +0900 |
commit | 30f7b7a0535575a4995ea59086830ee19c79ea82 () | |
tree | be219e1468c17cba43014fe8d1757b563f299204 /enumerator.c | |
parent | 18f218d6a14f1a4744327d814554bfda04f1f119 (diff) |
Prefix `REF_EDGE` and `REFS_LIST_PTR` with `RUBY_`
Also move `struct` so that `typedef`-ed names can be used.
-rw-r--r-- | enumerator.c | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -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_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_TYPED_DEFAULT_FREE, NULL, // Nothing allocated externally, so don't need a memsize function NULL, |