[macruby-changes] [156] MacRuby/trunk/hash.c
source_changes at macosforge.org
source_changes at macosforge.org
Fri Apr 18 23:21:36 PDT 2008
Revision: 156
http://trac.macosforge.org/projects/ruby/changeset/156
Author: lsansonetti at apple.com
Date: 2008-04-18 23:21:34 -0700 (Fri, 18 Apr 2008)
Log Message:
-----------
fixed Hash#inspect
Modified Paths:
--------------
MacRuby/trunk/hash.c
Modified: MacRuby/trunk/hash.c
===================================================================
--- MacRuby/trunk/hash.c 2008-04-19 05:01:46 UTC (rev 155)
+++ MacRuby/trunk/hash.c 2008-04-19 06:21:34 UTC (rev 156)
@@ -1549,16 +1549,20 @@
VALUE str2;
if (key == Qundef) return ST_CONTINUE;
- if (RSTRING_LEN(str) > 1) {
+ if (RSTRING_CLEN(str) > 1) {
rb_str_cat2(str, ", ");
}
str2 = rb_inspect(key);
rb_str_buf_append(str, str2);
+#if !WITH_OBJC
OBJ_INFECT(str, str2);
+#endif
rb_str_buf_cat2(str, "=>");
str2 = rb_inspect(value);
rb_str_buf_append(str, str2);
+#if !WITH_OBJC
OBJ_INFECT(str, str2);
+#endif
return ST_CONTINUE;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macruby-changes/attachments/20080418/f169749c/attachment.html
More information about the macruby-changes
mailing list