* parse.y (symbols_i): need to initialize early-created symbols.

[ruby-dev:29496]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2006-09-06 04:25:53 +00:00
parent 103f6728df
commit 301c9f1265
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Wed Sep 6 13:25:04 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* parse.y (symbols_i): need to initialize early-created symbols.
[ruby-dev:29496]
Wed Sep 06 12:05:19 2006 NARUSE, Yui <naruse@ruby-lang.org>
* ext/nkf/lib/kconv.rb (Kconv::toeuc): remove -m0 [ruby-dev:29505]

View File

@ -8532,6 +8532,9 @@ rb_id2name(ID id)
static int
symbols_i(VALUE sym, ID value, VALUE ary)
{
if (!RBASIC(sym)->klass) {
RBASIC(sym)->klass = rb_cSymbol;
}
rb_ary_push(ary, sym);
return ST_CONTINUE;
}