put all the YY_NO in one place.

This commit is contained in:
christos 2009-10-28 22:22:44 +00:00
parent 6ed80d5bb1
commit ba79df8804
2 changed files with 7 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.6 2009/04/20 16:05:30 drochner Exp $
# $NetBSD: Makefile,v 1.7 2009/10/28 22:22:44 christos Exp $
NOMAN=# defined (must come before bsd.own.mk)
@ -14,7 +14,7 @@ SRCS= yacc.y lex.l \
citrus_lookup_factory.c
CPPFLAGS+= -I. -I${.CURDIR} -I${NETBSDSRCDIR}/lib/libc \
-I${NETBSDSRCDIR}/lib/libc/citrus \
-DHOSTPROG -DLIBC_SCCS -DYY_NO_INPUT
-DHOSTPROG -DLIBC_SCCS
YHEADER= 1
.ifndef HOSTPROG

View File

@ -1,4 +1,4 @@
/* $NetBSD: lex.l,v 1.3 2006/02/09 22:03:15 dogcow Exp $ */
/* $NetBSD: lex.l,v 1.4 2009/10/28 22:22:44 christos Exp $ */
%{
/*-
@ -33,7 +33,7 @@
#include <sys/cdefs.h>
#if !defined(lint)
__RCSID("$NetBSD: lex.l,v 1.3 2006/02/09 22:03:15 dogcow Exp $");
__RCSID("$NetBSD: lex.l,v 1.4 2009/10/28 22:22:44 christos Exp $");
#endif /* not lint */
#include <assert.h>
@ -49,6 +49,9 @@ __RCSID("$NetBSD: lex.l,v 1.3 2006/02/09 22:03:15 dogcow Exp $");
#include "yacc.h"
int line_number = 1;
#define YY_NO_UNPUT
#define YY_NO_INPUT
%}
%x COMMENT