Don't generate input() since it's not used.

This commit is contained in:
brucec 2010-11-22 14:16:22 +00:00
parent 81eaf1c587
commit 3aec76f035
7 changed files with 7 additions and 3 deletions

View File

@ -25,6 +25,7 @@ CFLAGS+=-DINET6
.endif
# This is needed to have WARNS > 1.
CFLAGS+=-DYY_NO_UNPUT
CFLAGS+=-DYY_NO_INPUT
DPADD= ${LIBGEOM} ${LIBBSDXML} ${LIBSBUF} ${LIBL} ${LIBPTHREAD} ${LIBUTIL}
LDADD= -lgeom -lbsdxml -lsbuf -ll -lpthread -lutil

View File

@ -4,7 +4,7 @@ PROG= colldef
SRCS= parse.y scan.l y.tab.h
LFLAGS= -8 -i
CFLAGS+=-I. -I${.CURDIR} -I${.CURDIR}/../../lib/libc/locale
CFLAGS+=-DCOLLATE_DEBUG -DYY_NO_UNPUT
CFLAGS+=-DCOLLATE_DEBUG -DYY_NO_UNPUT -DYY_NO_INPUT
LDADD= -ll
DPADD= ${LIBL}

View File

@ -38,6 +38,7 @@
/* We don't need it, avoid the warning. */
#define YY_NO_UNPUT
#define YY_NO_INPUT
int lineno;
int first_time;

View File

@ -39,7 +39,7 @@
int yylex (void);
%}
%option yylineno noyywrap nounput
%option yylineno noyywrap nounput noinput
delim [ \t\n]
ws {delim}+

View File

@ -34,7 +34,7 @@
#include "parser.h"
%}
%option yylineno noyywrap nounput
%option yylineno noyywrap nounput noinput
delim [ \t\n]
ws {delim}+

View File

@ -39,6 +39,7 @@
#include "config.h"
#define YY_NO_UNPUT
#define YY_NO_INPUT
/*
* Data for returning to previous files from include files.

View File

@ -32,6 +32,7 @@
#include "lex.h"
#define YY_NO_UNPUT
#define YY_NO_INPUT
%}