diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-10-21 12:46:40 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-10-21 12:46:53 +0900 |
commit | 5a77e90fe843a2bfbde3df1867f142efb0ffe9fe (patch) | |
tree | b97ed712d758230db231a5156d0a8e692b0592bb /ext/racc | |
parent | 8c2e5bbf58e562ea410b53c2f77e4186d5ca9da3 (diff) | |
download | ruby-5a77e90fe843a2bfbde3df1867f142efb0ffe9fe.tar.gz |
Use rb_intern_const instead of rb_intern in Init functions
```
find . -name \*.o -exec nm {} + |&
sed '/Init_.*\.rbimpl_id/!d;s/^.* b //;s/\.[1-9][0-9]*$//;s/\.rbimpl_id$//' |
uniq
```
should be empty.
Diffstat (limited to 'ext/racc')
-rw-r--r-- | ext/racc/cparse/cparse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/racc/cparse/cparse.c b/ext/racc/cparse/cparse.c index 487784a149..8fa10693ed 100644 --- a/ext/racc/cparse/cparse.c +++ b/ext/racc/cparse/cparse.c @@ -820,7 +820,7 @@ void Init_cparse(void) { VALUE Racc, Parser; - ID id_racc = rb_intern("Racc"); + ID id_racc = rb_intern_const("Racc"); if (rb_const_defined(rb_cObject, id_racc)) { Racc = rb_const_get(rb_cObject, id_racc); |