[ruby-cvs:57454] nobu:r50306 (trunk): use frozen string of symbols

nobu at ruby-lang.org nobu at ruby-lang.org
Tue Apr 14 12:31:30 JST 2015


nobu	2015-04-14 12:31:28 +0900 (Tue, 14 Apr 2015)

  New Revision: 50306

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

  Log:
    use frozen string of symbols
    
    * range.c (range_step, range_each): String#upto should never
      modifies the receiver, use frozen strings to enumerate symbols.
    
    * re.c (reg_operand): matching target is not modified.
    
    * ext/socket/constants.c (constant_arg): str_to_int never modifies
      argument strings.

  Modified files:
    trunk/ext/socket/constants.c
    trunk/range.c
    trunk/re.c


More information about the ruby-cvs mailing list