Browse Source

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

pre-master-46
rlar 10 years ago
parent
commit
1aab43dd1a
  1. 7
      src/xspice/cmpp/ifs_lex.l
  2. 1
      src/xspice/cmpp/mod_lex.l

7
src/xspice/cmpp/ifs_lex.l

@ -2,6 +2,8 @@
%option prefix="ifs_yy" %option prefix="ifs_yy"
%option yylineno %option yylineno
%option noyywrap %option noyywrap
%option noinput
%option nounput
%{ %{
/*============================================================================ /*============================================================================
@ -56,11 +58,6 @@ double yydval;
* IFS specs are case insensitive: * 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)
*/
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
%} %}

1
src/xspice/cmpp/mod_lex.l

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

Loading…
Cancel
Save