mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-26 12:15:53 +01:00
Fix compilation when build path is long
Also remove generated file Parser.cpp
This commit is contained in:
parent
83bb896e89
commit
344c836cd9
File diff suppressed because it is too large
Load Diff
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user