Add RUBY_REFERENCES

Instead of `RUBY_REFERENCES_START` and `RUBY_REFERENCES_END`, so that
auto-indent works well.
This commit is contained in:
Nobuyoshi Nakada 2023-11-26 19:09:16 +09:00
parent 30f7b7a053
commit 0cdad3b92a
4 changed files with 15 additions and 11 deletions

5
dir.c
View file

@ -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",