aboutsummaryrefslogtreecommitdiffstats
path: root/process.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 /process.c
parent19b6678132acc56460432d8c2d6246f399b27160 (diff)
downloadruby-1663d347c993debf7ed83e11e291e7a21e14ed03.tar.gz
delete `$` sign from C identifiers
They lack portability. See also https://travis-ci.org/shyouhei/ruby/jobs/577164015
Diffstat (limited to 'process.c')
-rw-r--r--process.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/process.c b/process.c
index dad090712c..a21b17125e 100644
--- a/process.c
+++ b/process.c
@@ -8039,13 +8039,13 @@ rb_clock_getres(int argc, VALUE *argv)
}
static VALUE
-get_$CHILD_STATUS(ID _x, VALUE *_y)
+get_CHILD_STATUS(ID _x, VALUE *_y)
{
return rb_last_status_get();
}
static VALUE
-get_$PROCESS_ID(ID _x, VALUE *_y)
+get_PROCESS_ID(ID _x, VALUE *_y)
{
return get_pid();
}
@@ -8066,8 +8066,8 @@ InitVM_process(void)
{
#undef rb_intern
#define rb_intern(str) rb_intern_const(str)
- rb_define_virtual_variable("$?", get_$CHILD_STATUS, 0);
- rb_define_virtual_variable("$$", get_$PROCESS_ID, 0);
+ rb_define_virtual_variable("$?", get_CHILD_STATUS, 0);
+ rb_define_virtual_variable("$$", get_PROCESS_ID, 0);
rb_define_global_function("exec", rb_f_exec, -1);
rb_define_global_function("fork", rb_f_fork, 0);
rb_define_global_function("exit!", rb_f_exit_bang, -1);