summaryrefslogtreecommitdiff
path: root/ext/racc
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-10-21 12:46:40 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-10-21 12:46:53 +0900
commit5a77e90fe843a2bfbde3df1867f142efb0ffe9fe (patch)
treeb97ed712d758230db231a5156d0a8e692b0592bb /ext/racc
parent8c2e5bbf58e562ea410b53c2f77e4186d5ca9da3 (diff)
downloadruby-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.c2
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);