summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAaron Stone <sodabrew@users.sourceforge.net>2007-09-10 06:17:45 +0000
committerAaron Stone <sodabrew@users.sourceforge.net>2007-09-10 06:17:45 +0000
commite4c11cf7b3e3455ac64e798ec5c268fa194744d2 (patch)
tree11907512c0cc4d2fae3cc16acea7c276302eb962 /tests
parent7e635c2a527e7e780e995fb67dee4fc5e19eca48 (diff)
Use %option extra-type.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-alloc-extra/scanner.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-alloc-extra/scanner.l b/tests/test-alloc-extra/scanner.l
index 49fc6d9..bedd43b 100644
--- a/tests/test-alloc-extra/scanner.l
+++ b/tests/test-alloc-extra/scanner.l
@@ -39,7 +39,6 @@ struct Check {
char *bar;
char qux;
};
-#define YY_EXTRA_TYPE struct Check *
/* Save char into junk array at next position. */
static void check_extra ( yyscan_t scanner );
@@ -52,6 +51,7 @@ void *yyalloc ( size_t size, yyscan_t scanner );
%option 8bit outfile="scanner.c" prefix="test"
%option nounput nomain noyywrap nodefault
%option warn
+%option extra-type="struct Check *"
%option reentrant
%option noyyalloc