xspice/cmpp/*.l, flex file cleanup and use %option noinput, nounput

This commit is contained in:
rlar 2016-03-31 21:58:48 +02:00
parent 9154ab103a
commit 1aab43dd1a
2 changed files with 3 additions and 5 deletions

View File

@ -2,6 +2,8 @@
%option prefix="ifs_yy"
%option yylineno
%option noyywrap
%option noinput
%option nounput
%{
/*============================================================================
@ -56,11 +58,6 @@ double yydval;
* IFS specs are case insensitive:
*/
/* saj - use -i flex command line option
#undef input
#define input() (((yytchar=yysptr>yysbuf?U(*--yysptr):getc(yyin))==10?(yylineno++,yytchar):yytchar)==EOF?0:isupper(yytchar)?tolower(yytchar):yytchar)
*/
/*---------------------------------------------------------------------------*/
%}

View File

@ -1,6 +1,7 @@
%option prefix="mod_yy"
%option yylineno
%option noyywrap
%option nounput
%{
/*============================================================================