Don't generate input() since it's not used.
This commit is contained in:
parent
81eaf1c587
commit
3aec76f035
@ -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
|
||||
|
@ -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}
|
||||
|
||||
|
@ -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;
|
||||
|
@ -39,7 +39,7 @@
|
||||
int yylex (void);
|
||||
%}
|
||||
|
||||
%option yylineno noyywrap nounput
|
||||
%option yylineno noyywrap nounput noinput
|
||||
|
||||
delim [ \t\n]
|
||||
ws {delim}+
|
||||
|
@ -34,7 +34,7 @@
|
||||
#include "parser.h"
|
||||
%}
|
||||
|
||||
%option yylineno noyywrap nounput
|
||||
%option yylineno noyywrap nounput noinput
|
||||
|
||||
delim [ \t\n]
|
||||
ws {delim}+
|
||||
|
@ -39,6 +39,7 @@
|
||||
#include "config.h"
|
||||
|
||||
#define YY_NO_UNPUT
|
||||
#define YY_NO_INPUT
|
||||
|
||||
/*
|
||||
* Data for returning to previous files from include files.
|
||||
|
@ -32,6 +32,7 @@
|
||||
|
||||
#include "lex.h"
|
||||
#define YY_NO_UNPUT
|
||||
#define YY_NO_INPUT
|
||||
|
||||
%}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user