summaryrefslogtreecommitdiffstats
path: root/atc
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2009-10-29 14:27:26 +0000
committerchristos <christos@NetBSD.org>2009-10-29 14:27:26 +0000
commit4d595b91753b113d88fbf2fd5751f2725ec990f3 (patch)
treebec4f890626b13e3def6ac76f3d500cfa8314056 /atc
parentc6804201945edc4a290e3ee7b7a4a2cc9950eb00 (diff)
downloadbsdgames-darwin-4d595b91753b113d88fbf2fd5751f2725ec990f3.tar.gz
bsdgames-darwin-4d595b91753b113d88fbf2fd5751f2725ec990f3.tar.zst
bsdgames-darwin-4d595b91753b113d88fbf2fd5751f2725ec990f3.zip
use %option noinput nounput
Diffstat (limited to 'atc')
-rw-r--r--atc/Makefile4
-rw-r--r--atc/lex.l5
2 files changed, 5 insertions, 4 deletions
diff --git a/atc/Makefile b/atc/Makefile
index c65ef1f3..1917bfff 100644
--- a/atc/Makefile
+++ b/atc/Makefile
@@ -1,10 +1,10 @@
-# $NetBSD: Makefile,v 1.27 2009/04/20 16:05:29 drochner Exp $
+# $NetBSD: Makefile,v 1.28 2009/10/29 14:27:26 christos Exp $
# @(#)Makefile 8.1 (Berkeley) 5/31/93
.include <bsd.own.mk>
PROG= atc
-CPPFLAGS+=-DBSD -I${.CURDIR} -I. -DYY_NO_UNPUT -DYY_NO_INPUT
+CPPFLAGS+=-DBSD -I${.CURDIR} -I.
SRCS= extern.c grammar.y graphics.c input.c lex.l list.c log.c \
main.c tunable.c update.c
YHEADER=1
diff --git a/atc/lex.l b/atc/lex.l
index 3e90b76e..7037293a 100644
--- a/atc/lex.l
+++ b/atc/lex.l
@@ -1,5 +1,5 @@
%{
-/* $NetBSD: lex.l,v 1.7 2003/08/07 09:36:54 agc Exp $ */
+/* $NetBSD: lex.l,v 1.8 2009/10/29 14:27:26 christos Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -47,7 +47,7 @@
#if 0
static char sccsid[] = "@(#)lex.l 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: lex.l,v 1.7 2003/08/07 09:36:54 agc Exp $");
+__RCSID("$NetBSD: lex.l,v 1.8 2009/10/29 14:27:26 christos Exp $");
#endif
#endif /* not lint */
@@ -58,6 +58,7 @@ __RCSID("$NetBSD: lex.l,v 1.7 2003/08/07 09:36:54 agc Exp $");
extern int line;
%}
+%option nounput noinput
%%
[0-9]+ { yylval.ival = atoi(yytext); return(ConstOp); }
height { return(HeightOp); }