summaryrefslogtreecommitdiff
path: root/load.c
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2019-08-27 14:21:18 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2019-08-27 15:52:26 +0900
commit1663d347c993debf7ed83e11e291e7a21e14ed03 (patch)
tree25627412bc1c323f02da67379311efb73b51a249 /load.c
parent19b6678132acc56460432d8c2d6246f399b27160 (diff)
delete `$` sign from C identifiers
They lack portability. See also https://travis-ci.org/shyouhei/ruby/jobs/577164015
Diffstat (limited to 'load.c')
-rw-r--r--load.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/load.c b/load.c
index 3a21f5c0cf..571995daed 100644
--- a/load.c
+++ b/load.c
@@ -156,7 +156,7 @@ get_loaded_features(void)
}
static VALUE
-get_$LOADED_FEATURES(ID _x, VALUE *_y)
+get_LOADED_FEATURES(ID _x, VALUE *_y)
{
return get_loaded_features();
}
@@ -1265,8 +1265,8 @@ Init_load(void)
vm->load_path_check_cache = 0;
rb_define_singleton_method(vm->load_path, "resolve_feature_path", rb_resolve_feature_path, 1);
- rb_define_virtual_variable("$\"", get_$LOADED_FEATURES, 0);
- rb_define_virtual_variable("$LOADED_FEATURES", get_$LOADED_FEATURES, 0);
+ rb_define_virtual_variable("$\"", get_LOADED_FEATURES, 0);
+ rb_define_virtual_variable("$LOADED_FEATURES", get_LOADED_FEATURES, 0);
vm->loaded_features = rb_ary_new();
vm->loaded_features_snapshot = rb_ary_tmp_new(0);
vm->loaded_features_index = st_init_numtable();