summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-11-26 19:09:16 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-11-30 21:39:28 +0900
commit0cdad3b92a7e117bc7e36779140f5c83b07ca7ce (patch)
tree2d1616a85c086cd458c054309368dd175ba7602a /dir.c
parent30f7b7a0535575a4995ea59086830ee19c79ea82 (diff)
Add `RUBY_REFERENCES`
Instead of `RUBY_REFERENCES_START` and `RUBY_REFERENCES_END`, so that auto-indent works well.
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/dir.c b/dir.c
index 08bead05d0..5c40f5b746 100644
--- a/dir.c
+++ b/dir.c
@@ -473,9 +473,10 @@ dir_free(void *ptr)
if (dir->dir) closedir(dir->dir);
}
-RUBY_REFERENCES_START(dir_refs)
+RUBY_REFERENCES(dir_refs) = {
RUBY_REF_EDGE(struct dir_data, path),
-RUBY_REFERENCES_END
+ RUBY_REF_END
+};
static const rb_data_type_t dir_data_type = {
"dir",