From a37463ef14409c81422b3c3d6c35a0dbd21f51b7 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 9 Jun 2008 09:25:32 +0000 Subject: * include/ruby/ruby.h (CONST_ID): constant ID cache for non-gcc. * *.c: no cache in init functions. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- parse.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'parse.y') diff --git a/parse.y b/parse.y index 31694a371..48a777eb7 100644 --- a/parse.y +++ b/parse.y @@ -7761,9 +7761,9 @@ assignable_gen(struct parser_params *parser, ID id, NODE *val) static void shadowing_lvar_gen(struct parser_params *parser, ID name) { - static ID uscore; + ID uscore; - if (!uscore) uscore = rb_intern("_"); + CONST_ID(uscore, "_"); if (uscore == name) return; if (dyna_in_block()) { if (dvar_curr(name)) { -- cgit