cvs: pecl /ffi ffi_parser.y
| From: | Wez Furlong | Date: | Sat, 10 Jan 2004 00:01:08 +0000 |
| Subject: | cvs: pecl /ffi ffi_parser.y | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-730@lists.php.net to get a copy of this message | ||
wez Fri Jan 9 19:01:08 2004 EDT
Modified files:
/pecl/ffi ffi_parser.y
Log:
msvc doesn't like yyTokenName to be pre-declared like that,
so switch to other syntax from newer lemon versions.
Index: pecl/ffi/ffi_parser.y
diff -u pecl/ffi/ffi_parser.y:1.2 pecl/ffi/ffi_parser.y:1.3
--- pecl/ffi/ffi_parser.y:1.2 Fri Jan 9 18:41:55 2004
+++ pecl/ffi/ffi_parser.y Fri Jan 9 19:01:07 2004
@@ -23,7 +23,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: ffi_parser.y,v 1.2 2004/01/09 23:41:55 wez Exp $ */
+/* $Id: ffi_parser.y,v 1.3 2004/01/10 00:01:07 wez Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -40,8 +40,6 @@
#define IDENT_EQUALS(str, v) (v.len == sizeof(str)-1 && memcmp(str, v.val, v.len) == 0)
-static char *yyTokenName[];
-
static const char *get_ident_string(php_ffi_ident id)
{
static char idbuf[256];
@@ -88,7 +86,11 @@
sprintf(tokbuf, "identifier: %s", get_ident_string(t.ident));
break;
default:
- sprintf(tokbuf, "token: %s", yyTokenName[major]);
+#if ZEND_DEBUG
+ sprintf(tokbuf, "token: %s", php_ffi_parserTokenName(major));
+#else
+ sprintf(tokbuf, "token: ???");
+#endif
}
return tokbuf;
}