[macruby-changes] [3080] MacRuby/trunk/string.c

source_changes at macosforge.org source_changes at macosforge.org
Sun Dec 6 19:32:57 PST 2009


Revision: 3080
          http://trac.macosforge.org/projects/ruby/changeset/3080
Author:   lsansonetti at apple.com
Date:     2009-12-06 19:32:54 -0800 (Sun, 06 Dec 2009)
Log Message:
-----------
potentially fix 10.5 build

Modified Paths:
--------------
    MacRuby/trunk/string.c

Modified: MacRuby/trunk/string.c
===================================================================
--- MacRuby/trunk/string.c	2009-12-07 01:49:48 UTC (rev 3079)
+++ MacRuby/trunk/string.c	2009-12-07 03:32:54 UTC (rev 3080)
@@ -3522,6 +3522,14 @@
  *     "1,2,,3,4,,".split(',', -4)     #=> ["1", "2", "", "3", "4", "", ""]
  */
 
+#if MAC_OS_X_VERSION_MAX_ALLOWED < 1060
+static inline bool
+CFStringIsSurrogateHighCharacter(UniChar character)
+{
+    return ((character >= 0xD800UL) && (character <= 0xDBFFUL) ? true : false);
+}
+#endif
+
 static VALUE
 rb_str_split_m(VALUE str, SEL sel, int argc, VALUE *argv)
 {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20091206/6e658b4b/attachment.html>


More information about the macruby-changes mailing list