[ruby-cvs:51202] tmm1:r44057 (trunk): parse.y: use rb_fstring() for strings stored in the symbol table

tmm1 at ruby-lang.org tmm1 at ruby-lang.org
Sun Dec 8 10:39:30 JST 2013


tmm1	2013-12-08 10:39:27 +0900 (Sun, 08 Dec 2013)

  New Revision: 44057

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44057

  Log:
    parse.y: use rb_fstring() for strings stored in the symbol table
    
    * parse.y (register_symid_str): use fstrings in symbol table
      [Bug #9171] [ruby-core:58656]
    * parse.y (rb_id2str): ditto
    * string.c (rb_fstring): create frozen_strings on first usage. this
      allows rb_fstring() calls from the parser (before cString is created)
    * string.c (fstring_set_class_i): set klass on fstrings generated
      before cString was defined
    * string.c (Init_String): convert frozen_strings table to String
      objects after boot
    * ext/-test-/symbol/type.c (bug_sym_id2str): expose rb_id2str()
    * test/-ext-/symbol/test_type.rb (module Test_Symbol): verify symbol
      table entries are fstrings

  Modified files:
    trunk/ChangeLog
    trunk/ext/-test-/symbol/type.c
    trunk/parse.y
    trunk/string.c
    trunk/test/-ext-/symbol/test_type.rb


More information about the ruby-cvs mailing list