[ruby-cvs:51970] ko1:r44825 (trunk): * string.c: refactoring, especially about string flags.
ko1 at ruby-lang.org
ko1 at ruby-lang.org
Wed Feb 5 13:00:03 JST 2014
ko1 2014-02-05 13:00:02 +0900 (Wed, 05 Feb 2014)
New Revision: 44825
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44825
Log:
* string.c: refactoring, especially about string flags.
* string.c (STR_UNSET_NOCAPA): removed.
Use FL_UNSET() with STR_SHARED.
* string.c (rb_str_capacity): check STR_SHARED directly
beacuse it is not a embed string.
* string.c (rb_str_modify_expand): ditto.
* string.c (rb_str_shared_replace): use STR_SET_SHARED().
* string.c (str_make_independent_expand): remove STR_UNSET_NOCAPA()
because `str' is not shared string.
Modified files:
trunk/ChangeLog
trunk/string.c
More information about the ruby-cvs
mailing list