* 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:
parent
103f6728df
commit
301c9f1265
@ -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>
|
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]
|
* ext/nkf/lib/kconv.rb (Kconv::toeuc): remove -m0 [ruby-dev:29505]
|
||||||
|
3
parse.y
3
parse.y
@ -8532,6 +8532,9 @@ rb_id2name(ID id)
|
|||||||
static int
|
static int
|
||||||
symbols_i(VALUE sym, ID value, VALUE ary)
|
symbols_i(VALUE sym, ID value, VALUE ary)
|
||||||
{
|
{
|
||||||
|
if (!RBASIC(sym)->klass) {
|
||||||
|
RBASIC(sym)->klass = rb_cSymbol;
|
||||||
|
}
|
||||||
rb_ary_push(ary, sym);
|
rb_ary_push(ary, sym);
|
||||||
return ST_CONTINUE;
|
return ST_CONTINUE;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user