Module Name: src
Committed By: christos
Date: Mon Nov 2 20:52:39 UTC 2009
Modified Files:
src/external/bsd/flex/dist: gen.c
Log Message:
if we have variable trailing context rules, enable the find_rule label.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/bsd/flex/dist/gen.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/flex/dist/gen.c
diff -u src/external/bsd/flex/dist/gen.c:1.4 src/external/bsd/flex/dist/gen.c:1.5
--- src/external/bsd/flex/dist/gen.c:1.4 Mon Oct 26 21:44:01 2009
+++ src/external/bsd/flex/dist/gen.c Mon Nov 2 15:52:39 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: gen.c,v 1.4 2009/10/27 01:44:01 christos Exp $ */
+/* $NetBSD: gen.c,v 1.5 2009/11/02 20:52:39 christos Exp $ */
/* gen - actual generation (writing) of flex scanners */
@@ -508,9 +508,11 @@
indent_puts ("yy_current_state = *--YY_G(yy_state_ptr);");
indent_puts ("YY_G(yy_lp) = yy_accept[yy_current_state];");
- outn ("#ifdef YY_USES_REJECT");
+ if (!variable_trailing_context_rules)
+ outn ("#ifdef YY_USES_REJECT");
outn ("find_rule: /* we branch to this label when backing up */");
- outn ("#endif");
+ if (!variable_trailing_context_rules)
+ outn ("#endif");
indent_puts
("for ( ; ; ) /* until we find what rule we matched */");