[macruby-changes] [3820] MacRuby/trunk/string.c
source_changes at macosforge.org
source_changes at macosforge.org
Thu Mar 18 20:23:59 PDT 2010
Revision: 3820
http://trac.macosforge.org/projects/ruby/changeset/3820
Author: lsansonetti at apple.com
Date: 2010-03-18 20:23:56 -0700 (Thu, 18 Mar 2010)
Log Message:
-----------
let's make str_append_uchar() a little bit more urban
Modified Paths:
--------------
MacRuby/trunk/string.c
Modified: MacRuby/trunk/string.c
===================================================================
--- MacRuby/trunk/string.c 2010-03-19 03:09:53 UTC (rev 3819)
+++ MacRuby/trunk/string.c 2010-03-19 03:23:56 UTC (rev 3820)
@@ -264,10 +264,12 @@
self->flags = source->flags;
}
+static bool str_try_making_data_uchars(rb_str_t *self);
+
static void
str_append_uchar(rb_str_t *self, UChar c)
{
- assert(str_is_stored_in_uchars(self));
+ assert(str_try_making_data_uchars(self));
const long uchar_cap = BYTES_TO_UCHARS(self->capacity_in_bytes);
const long uchar_len = BYTES_TO_UCHARS(self->length_in_bytes);
if (uchar_len + 1 >= uchar_cap) {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100318/c66d84e4/attachment.html>
More information about the macruby-changes
mailing list