Module Name: src
Committed By: christos
Date: Wed Oct 28 02:42:20 UTC 2009
Modified Files:
src/usr.bin/config: scan.l
Log Message:
don't '#define yywrap() 1', use '%option noyywrap'. This is because the
#define is doomed to failure if --prefix is used.
To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/usr.bin/config/scan.l
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/config/scan.l
diff -u src/usr.bin/config/scan.l:1.12 src/usr.bin/config/scan.l:1.13
--- src/usr.bin/config/scan.l:1.12 Sat Apr 11 08:41:10 2009
+++ src/usr.bin/config/scan.l Tue Oct 27 22:42:20 2009
@@ -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]*