Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/flex/dist if we have variable trailing context ...



details:   https://anonhg.NetBSD.org/src/rev/4d4894a931b1
branches:  trunk
changeset: 748709:4d4894a931b1
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Nov 02 20:52:39 2009 +0000

description:
if we have variable trailing context rules, enable the find_rule label.

diffstat:

 external/bsd/flex/dist/gen.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (23 lines):

diff -r 53d7236f2917 -r 4d4894a931b1 external/bsd/flex/dist/gen.c
--- a/external/bsd/flex/dist/gen.c      Mon Nov 02 17:17:34 2009 +0000
+++ b/external/bsd/flex/dist/gen.c      Mon Nov 02 20:52:39 2009 +0000
@@ -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 */");



Home | Main Index | Thread Index | Old Index