cvs: ZendEngine2(PHP_5_3) / zend_language_scanner.c zend_language_scanner.l

[email protected] ("Marcus Boerger")
Newsgroups php.zend-engine.cvs
Message-ID <cvshelly1206125247@cvsserver>
helly		Fri Mar 21 18:47:27 2008 UTC

  Modified files:              (Branch: PHP_5_3)
    /ZendEngine2	zend_language_scanner.c zend_language_scanner.l 
  Log:
  - Fix YYFILL()
  
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_language_scanner.c?r1=1.1.2.2&r2=1.1.2.3&diff_format=u
Index: ZendEngine2/zend_language_scanner.c
diff -u ZendEngine2/zend_language_scanner.c:1.1.2.2 ZendEngine2/zend_language_scanner.c:1.1.2.3
--- ZendEngine2/zend_language_scanner.c:1.1.2.2	Wed Mar 19 23:24:56 2008
+++ ZendEngine2/zend_language_scanner.c	Fri Mar 21 18:47:26 2008
@@ -1,4 +1,4 @@
-/* Generated by re2c 0.13.4.dev on Wed Mar 19 23:23:53 2008 */
+/* Generated by re2c 0.13.3 on Fri Mar 21 17:16:34 2008 */
 #line 1 "Zend/zend_language_scanner.l"
 /*
    +----------------------------------------------------------------------+
@@ -23,7 +23,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: zend_language_scanner.c,v 1.1.2.2 2008/03/19 23:24:56 nlopess Exp $ */
+/* $Id: zend_language_scanner.c,v 1.1.2.3 2008/03/21 18:47:26 helly Exp $ */
 
 #if 0
 # define YYDEBUG(s, c) printf("state: %d char: %c\n", s, c)
@@ -50,7 +50,7 @@
 #include "tsrm_config_common.h"
 
 #define YYCTYPE   unsigned char
-#define YYFILL(n) { if (n == 1) return 0; }
+#define YYFILL(n) { if (YYCURSOR >= YYLIMIT) return 0; }
 #define YYCURSOR  SCNG(yy_cursor)
 #define YYLIMIT   SCNG(yy_limit)
 #define YYMARKER  SCNG(yy_marker)
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_language_scanner.l?r1=1.131.2.11.2.13.2.7&r2=1.131.2.11.2.13.2.8&diff_format=u
Index: ZendEngine2/zend_language_scanner.l
diff -u ZendEngine2/zend_language_scanner.l:1.131.2.11.2.13.2.7 ZendEngine2/zend_language_scanner.l:1.131.2.11.2.13.2.8
--- ZendEngine2/zend_language_scanner.l:1.131.2.11.2.13.2.7	Sun Mar 16 21:05:33 2008
+++ ZendEngine2/zend_language_scanner.l	Fri Mar 21 18:47:26 2008
@@ -21,7 +21,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: zend_language_scanner.l,v 1.131.2.11.2.13.2.7 2008/03/16 21:05:33 helly Exp $ */
+/* $Id: zend_language_scanner.l,v 1.131.2.11.2.13.2.8 2008/03/21 18:47:26 helly Exp $ */
 
 #if 0
 # define YYDEBUG(s, c) printf("state: %d char: %c\n", s, c)
@@ -48,7 +48,7 @@
 #include "tsrm_config_common.h"
 
 #define YYCTYPE   unsigned char
-#define YYFILL(n) { if (n == 1) return 0; }
+#define YYFILL(n) { if (YYCURSOR >= YYLIMIT) return 0; }
 #define YYCURSOR  SCNG(yy_cursor)
 #define YYLIMIT   SCNG(yy_limit)
 #define YYMARKER  SCNG(yy_marker)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.