[macruby-changes] [3865] MacRuby/trunk/parse.y

source_changes at macosforge.org source_changes at macosforge.org
Thu Mar 25 16:41:00 PDT 2010


Revision: 3865
          http://trac.macosforge.org/projects/ruby/changeset/3865
Author:   lsansonetti at apple.com
Date:     2010-03-25 16:40:59 -0700 (Thu, 25 Mar 2010)
Log Message:
-----------
disable mixed code paths, they are useless for now

Modified Paths:
--------------
    MacRuby/trunk/parse.y

Modified: MacRuby/trunk/parse.y
===================================================================
--- MacRuby/trunk/parse.y	2010-03-25 21:48:47 UTC (rev 3864)
+++ MacRuby/trunk/parse.y	2010-03-25 23:40:59 UTC (rev 3865)
@@ -5722,7 +5722,9 @@
 	    }
 	}
 	else if (c == '\\') {
+#if 0
 	    const char *beg = lex_p - 1;
+#endif
 	    c = nextc();
 	    switch (c) {
 	      case '\n':
@@ -5743,9 +5745,11 @@
 		parser_tokadd_utf8(parser, &enc, 1,
 				   func & STR_FUNC_SYMBOL,
                                    func & STR_FUNC_REGEXP);
+#if 0
 		if (has_nonascii && enc != *encp) {
 		    mixed_escape(beg, enc, *encp);
 		}
+#endif
 		continue;
 
 	      default:
@@ -5753,9 +5757,11 @@
 		    pushback(c);
 		    if ((c = tokadd_escape(&enc)) < 0)
 			return -1;
+#if 0
 		    if (has_nonascii && enc != *encp) {
 			mixed_escape(beg, enc, *encp);
 		    }
+#endif
 		    continue;
 		}
 		else if (func & STR_FUNC_EXPAND) {
@@ -5773,10 +5779,12 @@
 	}
 	else if (!parser_isascii()) {
 	    has_nonascii = 1;
+#if 0
 	    if (enc != *encp) {
 		mixed_error(enc, *encp);
 		continue;
 	    }
+#endif
 	    if (tokadd_mbchar(c) == -1) return -1;
 	    continue;
 	}
@@ -5791,10 +5799,12 @@
 	}
         if (c & 0x80) {
             has_nonascii = 1;
+#if 0
 	    if (enc != *encp) {
 		mixed_error(enc, *encp);
 		continue;
 	    }
+#endif
         }
 	tokadd(c);
     }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100325/97d3b033/attachment.html>


More information about the macruby-changes mailing list