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 use the m4 define not the cpp one for...



details:   https://anonhg.NetBSD.org/src/rev/ab6e284589cc
branches:  trunk
changeset: 753685:ab6e284589cc
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Apr 06 17:39:47 2010 +0000

description:
use the m4 define not the cpp one for reject.

diffstat:

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

diffs (22 lines):

diff -r 143d7a87f561 -r ab6e284589cc external/bsd/flex/dist/gen.c
--- a/external/bsd/flex/dist/gen.c      Tue Apr 06 16:23:17 2010 +0000
+++ b/external/bsd/flex/dist/gen.c      Tue Apr 06 17:39:47 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gen.c,v 1.5 2009/11/02 20:52:39 christos Exp $ */
+/*     $NetBSD: gen.c,v 1.6 2010/04/06 17:39:47 christos Exp $ */
 
 /* gen - actual generation (writing) of flex scanners */
 
@@ -509,10 +509,10 @@
                indent_puts ("YY_G(yy_lp) = yy_accept[yy_current_state];");
 
                if (!variable_trailing_context_rules)
-                       outn ("#ifdef YY_USES_REJECT");
+                       outn ("m4_ifdef( [[M4_YY_USES_REJECT]],\n[[");
                outn ("find_rule: /* we branch to this label when backing up */");
                if (!variable_trailing_context_rules)
-                       outn ("#endif");
+                       outn ("]])\n");
 
                indent_puts
                        ("for ( ; ; ) /* until we find what rule we matched */");



Home | Main Index | Thread Index | Old Index