[ruby-cvs:59104] nobu:r51953 (trunk): fronzen-string-literal pragma

nobu at ruby-lang.org nobu at ruby-lang.org
Sun Sep 27 15:44:04 JST 2015


nobu	2015-09-27 15:44:02 +0900 (Sun, 27 Sep 2015)

  New Revision: 51953

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

  Log:
    fronzen-string-literal pragma
    
    * compile.c (iseq_compile_each): override compile option by option
      given by pragma.
    * iseq.c (rb_iseq_make_compile_option): extract a function to
      overwrite rb_compile_option_t.
    * parse.y (parser_set_compile_option_flag): introduce pragma to
      override compile options.
    * parse.y (magic_comments): new pragma "fronzen-string-literal".
      [Feature #8976]

  Modified files:
    trunk/ChangeLog
    trunk/NEWS
    trunk/compile.c
    trunk/iseq.c
    trunk/iseq.h
    trunk/node.c
    trunk/node.h
    trunk/parse.y
    trunk/test/ruby/test_literal.rb


More information about the ruby-cvs mailing list