mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
2 changed files with 8 additions and 0 deletions
|
@ -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]
|
||||
|
|
3
parse.y
3
parse.y
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue