diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-21 05:32:08 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-21 05:32:08 +0000 |
commit | 3b817f834a7a5e7d49642ab1b7576174b104dd50 (patch) | |
tree | 3c7fc57e07938b7d6fab2a73d1d0cbdd299d91c8 /parse.y | |
parent | 1a0f593b3c679c769160c1bb75af09c3f9820468 (diff) |
* parse.y (debug_lines): calls rb_intern() once.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -4939,8 +4939,10 @@ VALUE ruby_suppress_tracing(VALUE (*func)(VALUE, int), VALUE arg, int always); static VALUE debug_lines(const char *f) { - if (rb_const_defined_at(rb_cObject, rb_intern("SCRIPT_LINES__"))) { - VALUE hash = rb_const_get_at(rb_cObject, rb_intern("SCRIPT_LINES__")); + ID script_lines; + CONST_ID(script_lines, "SCRIPT_LINES__"); + if (rb_const_defined_at(rb_cObject, script_lines)) { + VALUE hash = rb_const_get_at(rb_cObject, script_lines); if (TYPE(hash) == T_HASH) { VALUE fname = rb_str_new2(f); VALUE lines = rb_ary_new(); |