lex: %option not supported by solaris lex
it turns out that we don't need to tell lex we don't plan to use unput; we can just.... not use unput. however, if we're flex, use the command line option if it's available, to avoid warnings
This commit is contained in:

committed by
Nico Williams

parent
6b3ce5d229
commit
78c915f65a
@@ -3,6 +3,7 @@
|
||||
include $(top_srcdir)/Makefile.am.common
|
||||
|
||||
YFLAGS = -d
|
||||
LFLAGS = @FLEXNOUNPUTARGS@
|
||||
|
||||
lib_LTLIBRARIES = libcom_err.la
|
||||
libcom_err_la_LDFLAGS = -version-info 2:3:1
|
||||
|
@@ -53,8 +53,6 @@ static int getstring(void);
|
||||
|
||||
%}
|
||||
|
||||
%option nounput
|
||||
|
||||
%%
|
||||
et { return ET; }
|
||||
error_table { return ET; }
|
||||
|
@@ -9,6 +9,7 @@ endif
|
||||
AM_CPPFLAGS += $(ROKEN_RENAME)
|
||||
|
||||
YFLAGS = -d
|
||||
LFLAGS = @FLEXNOUNPUTARGS@
|
||||
|
||||
include_HEADERS = sl.h
|
||||
|
||||
|
@@ -53,8 +53,6 @@ static char * handle_string(void);
|
||||
|
||||
%}
|
||||
|
||||
%option nounput
|
||||
|
||||
%%
|
||||
[A-Za-z][-A-Za-z0-9_]* {
|
||||
yylval.string = strdup ((const char *)yytext);
|
||||
|
Reference in New Issue
Block a user