diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-09 09:25:32 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-09 09:25:32 +0000 |
commit | a37463ef14409c81422b3c3d6c35a0dbd21f51b7 (patch) | |
tree | 294dcb47e83e5480b1fa992aba8a4b4025c8a626 /parse.y | |
parent | 32a51c5c95dde9e78161cccc9e75303a5523540b (diff) | |
download | ruby-a37463ef14409c81422b3c3d6c35a0dbd21f51b7.tar.gz ruby-a37463ef14409c81422b3c3d6c35a0dbd21f51b7.tar.xz ruby-a37463ef14409c81422b3c3d6c35a0dbd21f51b7.zip |
* 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
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)) { |