mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Add RUBY_REFERENCES
Instead of `RUBY_REFERENCES_START` and `RUBY_REFERENCES_END`, so that auto-indent works well.
This commit is contained in:
parent
30f7b7a053
commit
0cdad3b92a
4 changed files with 15 additions and 11 deletions
5
dir.c
5
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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue