mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-22 18:30:27 +01:00
ECC now works properly with long paths
This commit is contained in:
parent
344c836cd9
commit
3ef31a97aa
|
@ -14,7 +14,7 @@ int iLastLine = -1;
|
||||||
yylval = yytext; \
|
yylval = yytext; \
|
||||||
} else { \
|
} else { \
|
||||||
char strLine[512]; \
|
char strLine[512]; \
|
||||||
snprintf(strLine, 512, "\n#line %d \"%s\"\n", _iLinesCt, _strInputFileName);\
|
sprintf(strLine, "\n#line %d \"%s\"\n", _iLinesCt, _strInputFileName);\
|
||||||
yylval = SType(strLine)+yytext; \
|
yylval = SType(strLine)+yytext; \
|
||||||
iLastLine=_iLinesCt; \
|
iLastLine=_iLinesCt; \
|
||||||
} \
|
} \
|
||||||
|
@ -129,7 +129,7 @@ EXP_FLT (({DIGIT}+("."({DIGIT}*)?)?)("E"|"e")("+"|"-")?{DIGIT}+)
|
||||||
/* specially bracketed cpp blocks */
|
/* specially bracketed cpp blocks */
|
||||||
"%{" {
|
"%{" {
|
||||||
char strLine[512];
|
char strLine[512];
|
||||||
snprintf(strLine, 512, "#line %d \"%s\"\n", _iLinesCt, _strInputFileName );
|
sprintf(strLine, "#line %d \"%s\"\n", _iLinesCt, _strInputFileName );
|
||||||
_strCppBlock = strdup(strLine);
|
_strCppBlock = strdup(strLine);
|
||||||
BEGIN(CPPBLOCK);
|
BEGIN(CPPBLOCK);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user