mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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.
This commit is contained in:
parent
8c2e5bbf58
commit
5a77e90fe8
7 changed files with 42 additions and 42 deletions
|
@ -38,10 +38,10 @@ str_coderange_scan(VALUE str)
|
|||
void
|
||||
Init_string_coderange(VALUE klass)
|
||||
{
|
||||
sym_7bit = ID2SYM(rb_intern("7bit"));
|
||||
sym_valid = ID2SYM(rb_intern("valid"));
|
||||
sym_unknown = ID2SYM(rb_intern("unknown"));
|
||||
sym_broken = ID2SYM(rb_intern("broken"));
|
||||
sym_7bit = ID2SYM(rb_intern_const("7bit"));
|
||||
sym_valid = ID2SYM(rb_intern_const("valid"));
|
||||
sym_unknown = ID2SYM(rb_intern_const("unknown"));
|
||||
sym_broken = ID2SYM(rb_intern_const("broken"));
|
||||
rb_define_method(klass, "coderange", str_coderange, 0);
|
||||
rb_define_method(klass, "coderange_scan", str_coderange_scan, 0);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue