Allow compiling parser in debug mode with -DYYDEBUG=1

This commit is contained in:
ISSOtm
2020-02-19 00:01:51 +01:00
parent 6d00877231
commit cf2001de5f

View File

@@ -44,7 +44,9 @@ uint32_t nTotalLines, nPC, nIFDepth, nUnionDepth;
bool skipElif; bool skipElif;
uint32_t unionStart[128], unionSize[128]; uint32_t unionStart[128], unionSize[128];
/* extern int yydebug; */ #if defined(YYDEBUG) && YYDEBUG
extern int yydebug;
#endif
FILE *dependfile; FILE *dependfile;
bool oGeneratedMissingIncludes; bool oGeneratedMissingIncludes;
@@ -335,7 +337,9 @@ int main(int argc, char *argv[])
if (!cldefines) if (!cldefines)
fatalerror("No memory for command line defines"); fatalerror("No memory for command line defines");
/* yydebug=1; */ #if defined(YYDEBUG) && YYDEBUG
yydebug = 1;
#endif
nMaxRecursionDepth = 64; nMaxRecursionDepth = 64;
oGeneratePhonyDeps = false; oGeneratePhonyDeps = false;