Fix compilation when build path is long

Also remove generated file Parser.cpp
This commit is contained in:
Aron Visontai 2016-03-16 21:56:08 -07:00
parent 83bb896e89
commit 344c836cd9
2 changed files with 4 additions and 3512 deletions

File diff suppressed because it is too large Load Diff

View File

@ -13,8 +13,8 @@ int iLastLine = -1;
if (iLastLine==_iLinesCt || !_bTrackLineInformation){\ if (iLastLine==_iLinesCt || !_bTrackLineInformation){\
yylval = yytext; \ yylval = yytext; \
} else { \ } else { \
char strLine[200]; \ char strLine[512]; \
sprintf(strLine, "\n#line %d \"%s\"\n", _iLinesCt, _strInputFileName);\ snprintf(strLine, 512, "\n#line %d \"%s\"\n", _iLinesCt, _strInputFileName);\
yylval = SType(strLine)+yytext; \ yylval = SType(strLine)+yytext; \
iLastLine=_iLinesCt; \ iLastLine=_iLinesCt; \
} \ } \
@ -128,8 +128,8 @@ EXP_FLT (({DIGIT}+("."({DIGIT}*)?)?)("E"|"e")("+"|"-")?{DIGIT}+)
/* specially bracketed cpp blocks */ /* specially bracketed cpp blocks */
"%{" { "%{" {
char strLine[80]; char strLine[512];
sprintf(strLine, "#line %d \"%s\"\n", _iLinesCt, _strInputFileName ); snprintf(strLine, 512, "#line %d \"%s\"\n", _iLinesCt, _strInputFileName );
_strCppBlock = strdup(strLine); _strCppBlock = strdup(strLine);
BEGIN(CPPBLOCK); BEGIN(CPPBLOCK);
} }