cvs: pecl /parse_tree php_lexer.c php_parser.c
| From: | William Candillon | Date: | Wed, 04 Oct 2006 15:32:08 +0000 |
| Subject: | cvs: pecl /parse_tree php_lexer.c php_parser.c | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-6461@lists.php.net to get a copy of this message | ||
wcandillon Wed Oct 4 15:32:08 2006 UTC
Modified files:
/pecl/parse_tree php_lexer.c php_parser.c
Log:
Change the yaxx namespace to the php one
http://cvs.php.net/viewvc.cgi/pecl/parse_tree/php_lexer.c?r1=1.2&r2=1.3&diff_format=u
Index: pecl/parse_tree/php_lexer.c
diff -u pecl/parse_tree/php_lexer.c:1.2 pecl/parse_tree/php_lexer.c:1.3
--- pecl/parse_tree/php_lexer.c:1.2 Tue Oct 3 09:15:43 2006
+++ pecl/parse_tree/php_lexer.c Wed Oct 4 15:32:08 2006
@@ -2860,7 +2860,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_lexer.c,v 1.2 2006/10/03 09:15:43 wcandillon Exp $ */
+/* $Id: php_lexer.c,v 1.3 2006/10/04 15:32:08 wcandillon Exp $ */
#include "php_parser.h"
http://cvs.php.net/viewvc.cgi/pecl/parse_tree/php_parser.c?r1=1.2&r2=1.3&diff_format=u
Index: pecl/parse_tree/php_parser.c
diff -u pecl/parse_tree/php_parser.c:1.2 pecl/parse_tree/php_parser.c:1.3
--- pecl/parse_tree/php_parser.c:1.2 Tue Oct 3 09:15:43 2006
+++ pecl/parse_tree/php_parser.c Wed Oct 4 15:32:08 2006
@@ -339,7 +339,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_parser.c,v 1.2 2006/10/03 09:15:43 wcandillon Exp $ */
+/* $Id: php_parser.c,v 1.3 2006/10/04 15:32:08 wcandillon Exp $ */
/*
* LALR shift/reduce conflicts and how they are resolved:
@@ -3110,11 +3110,11 @@
yytoken = YYTRANSLATE (yychar);
{ // Yijun Yu: process the terminal
yyxml_string = (char *) XML_ALLOC(200);
- strcpy(yyxml_string, "<yaxx:");
+ strcpy(yyxml_string, "<php:");
strcat(yyxml_string, YYTNAME(yytoken));
#if 1 //William Candillon
strcat(yyxml_string, " id=\"");
- sprintf(string, "%x", _id);
+ sprintf(string, "%d", _id);
strcat(yyxml_string, string);
strcat(yyxml_string, "\"");
_id++;
@@ -3129,7 +3129,7 @@
YYSTACK_FREE(tmp);
}
}
- strcat(yyxml_string, "</yaxx:");
+ strcat(yyxml_string, "</php:");
strcat(yyxml_string, YYTNAME(yytoken));
strcat(yyxml_string, ">\n");
}
@@ -3221,11 +3221,11 @@
}
alloc_len =len+100+2*strlen(YYTNAME(yyr1[yyn]));
yyxml_string = (char *) XML_ALLOC(alloc_len);
- strcpy(yyxml_string, "<yaxx:");
+ strcpy(yyxml_string, "<php:");
strcat(yyxml_string, YYTNAME(yyr1[yyn]));
#if 1 //William Candillon
strcat(yyxml_string, " id=\"");
- sprintf(string, "%x", _id);
+ sprintf(string, "%d", _id);
strcat(yyxml_string, string);
strcat(yyxml_string, "\"");
_id++;
@@ -3243,7 +3243,7 @@
fprintf(stderr, "Warning! the %d-th argument is empty", n-i+1);
}
}
- strcat(yyxml_string, "</yaxx:");
+ strcat(yyxml_string, "</php:");
strcat(yyxml_string, YYTNAME(yyr1[yyn]));
strcat(yyxml_string, ">\n");
yyxsp -= n;