summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgmcgarry <gmcgarry>2009-04-14 23:22:46 +0000
committergmcgarry <gmcgarry>2009-04-14 23:22:46 +0000
commit418cafc71b5bc44570791482c4171a7d4cb2f9c7 (patch)
tree6bca6a5dc77ab7915fc77e152acded8ab9f14ed8
parentca84ba4e8903ef13a8c961990410ba6d0c2992be (diff)
Make this compile with YYTEXT_POINTER.
-rw-r--r--token.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/token.c b/token.c
index 91f0655..5173a4e 100644
--- a/token.c
+++ b/token.c
@@ -81,7 +81,13 @@ static int state;
#define BEGIN state =
#define YYSTATE state
+#ifdef YYTEXT_POINTER
+static char buf[CPPBUF];
+char *yytext = buf;
+#else
char yytext[CPPBUF];
+#endif
+
static int owasnl, wasnl = 1;
static void