summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-11-26 16:04:27 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-11-30 21:39:28 +0900
commit30f7b7a0535575a4995ea59086830ee19c79ea82 (patch)
treebe219e1468c17cba43014fe8d1757b563f299204 /doc
parent18f218d6a14f1a4744327d814554bfda04f1f119 (diff)
Prefix `REF_EDGE` and `REFS_LIST_PTR` with `RUBY_`
Also move `struct` so that `typedef`-ed names can be used.
Diffstat (limited to 'doc')
-rw-r--r--doc/extension.rdoc6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/extension.rdoc b/doc/extension.rdoc
index b95ed033e4..fe7f16a1a6 100644
--- a/doc/extension.rdoc
+++ b/doc/extension.rdoc
@@ -795,7 +795,7 @@ Some Macros have been provided to make edge referencing easier:
* <code>RUBY_REF_EDGE(struct, member)</code> - Declare _member_ as a VALUE edge from _struct_. Use this after +RUBY_REFERENCES_START+
-* +REFS_LIST_PTR+ - Coerce the reference list into a format that can be
+* +RUBY_REFS_LIST_PTR+ - Coerce the reference list into a format that can be
accepted by the existing +dmark+ interface.
The example below is from Dir (defined in +dir.c+)
@@ -811,7 +811,7 @@ The example below is from Dir (defined in +dir.c+)
// Define a reference list `dir_refs` containing a single entry to `path`, and
// terminating with RUBY_REF_END
RUBY_REFERENCES_START(dir_refs)
- REF_EDGE(dir_data, path),
+ RUBY_REF_EDGE(dir_data, path),
RUBY_REFERENCES_END
// Override the "dmark" field with the defined reference list now that we
@@ -819,7 +819,7 @@ The example below is from Dir (defined in +dir.c+)
// flags field
static const rb_data_type_t dir_data_type = {
"dir",
- {REFS_LIST_PTR(dir_refs), dir_free, dir_memsize,},
+ {RUBY_REFS_LIST_PTR(dir_refs), dir_free, dir_memsize,},
0, NULL, RUBY_TYPED_WB_PROTECTED | RUBY_TYPED_FREE_IMMEDIATELY | RUBY_TYPED_DECL_MARKING
};