diff options
author | Nobuyoshi Nakada <[email protected]> | 2020-10-21 12:46:40 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2020-10-21 12:46:53 +0900 |
commit | 5a77e90fe843a2bfbde3df1867f142efb0ffe9fe (patch) | |
tree | b97ed712d758230db231a5156d0a8e692b0592bb /time.c | |
parent | 8c2e5bbf58e562ea410b53c2f77e4186d5ca9da3 (diff) |
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 'time.c')
-rw-r--r-- | time.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -5686,7 +5686,7 @@ Init_tm(VALUE outer, const char *name) #endif rb_define_method(tm, "initialize", tm_initialize, -1); rb_define_method(tm, "utc", tm_to_time, 0); - rb_alias(tm, rb_intern("to_time"), rb_intern("utc")); + rb_alias(tm, rb_intern_const("to_time"), rb_intern_const("utc")); rb_define_singleton_method(tm, "from_time", tm_from_time, 1); /* :startdoc:*/ |