--- embedaddon/lighttpd/src/lempar.c 2013/10/14 10:32:47 1.1.1.1 +++ embedaddon/lighttpd/src/lempar.c 2016/11/02 10:35:00 1.1.1.2 @@ -3,6 +3,7 @@ */ /* First off, code is include which follows the "include" declaration ** in the input file. */ +#include "first.h" #include %% /* Next is all token values, in a form suitable for use by makeheaders. @@ -277,9 +278,10 @@ static void yy_destructor(YYCODETYPE yymajor, YYMINORT */ static int yy_pop_parser_stack(yyParser *pParser){ YYCODETYPE yymajor; - yyStackEntry *yytos = &pParser->yystack[pParser->yyidx]; + yyStackEntry *yytos; if( pParser->yyidx<0 ) return 0; + yytos = &pParser->yystack[pParser->yyidx]; #ifndef NDEBUG if( yyTraceFILE && pParser->yyidx>=0 ){ fprintf(yyTraceFILE,"%sPopping %s\n", @@ -459,10 +461,14 @@ static void yy_reduce( ParseARG_FETCH; yymsp = &yypParser->yystack[yypParser->yyidx]; #ifndef NDEBUG - if( yyTraceFILE && yyruleno>=0 + if( yyTraceFILE ) { + if (yyruleno>=0 && (size_t)yyruleno