diff --git a/lexor.lex b/lexor.lex index 44a4d246f..b392ffbed 100644 --- a/lexor.lex +++ b/lexor.lex @@ -40,6 +40,8 @@ # define YY_USER_INIT reset_lexor(); # define yylval VLlval +# define YY_NO_INPUT + /* * Lexical location information is passed in the yylloc variable to th * parser. The file names, strings, are kept in a list so that I can diff --git a/vhdlpp/lexor.lex b/vhdlpp/lexor.lex index 0de49af1f..bf300c6f3 100644 --- a/vhdlpp/lexor.lex +++ b/vhdlpp/lexor.lex @@ -35,6 +35,8 @@ # include # include +# define YY_NO_INPUT + # define YY_DECL int yylex(YYSTYPE*yylvalp, YYLTYPE*yyllocp, yyscan_t yyscanner) //class vhdlnum; //class vhdlreal; diff --git a/vvp/lexor.lex b/vvp/lexor.lex index 66bed1b7b..02d98b942 100644 --- a/vvp/lexor.lex +++ b/vvp/lexor.lex @@ -29,6 +29,8 @@ # include # include "ivl_alloc.h" +# define YY_NO_INPUT + static char* strdupnew(char const *str) { return str ? strcpy(new char [strlen(str)+1], str) : 0;