Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/config don't '#define yywrap() 1', use '%option noyy...



details:   https://anonhg.NetBSD.org/src/rev/ed0ae6cf6e4d
branches:  trunk
changeset: 748581:ed0ae6cf6e4d
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Oct 28 02:42:20 2009 +0000

description:
don't '#define yywrap() 1', use '%option noyywrap'. This is because the
#define is doomed to failure if --prefix is used.

diffstat:

 usr.bin/config/scan.l |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (23 lines):

diff -r 17078e924522 -r ed0ae6cf6e4d usr.bin/config/scan.l
--- a/usr.bin/config/scan.l     Wed Oct 28 02:31:44 2009 +0000
+++ b/usr.bin/config/scan.l     Wed Oct 28 02:42:20 2009 +0000
@@ -1,5 +1,5 @@
 %{
-/*     $NetBSD: scan.l,v 1.12 2009/04/11 12:41:10 lukem Exp $  */
+/*     $NetBSD: scan.l,v 1.13 2009/10/28 02:42:20 christos Exp $       */
 
 /*
  * Copyright (c) 1992, 1993
@@ -105,10 +105,11 @@
 static int getincludepath(void);
 static int getcurifdef(void);
 
-#define        yywrap() 1
 
 %}
 
+%option  noyywrap
+
 PATH   [A-Za-z_0-9]*[./][-A-Za-z_0-9./]*
 QCHARS ([^"\n]|\\\")+
 WORD   [A-Za-z_][-A-Za-z_0-9]*



Home | Main Index | Thread Index | Old Index