mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-26 04:05:53 +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; \
|
||||
} else { \
|
||||
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; \
|
||||
iLastLine=_iLinesCt; \
|
||||
} \
|
||||
|
@ -129,7 +129,7 @@ EXP_FLT (({DIGIT}+("."({DIGIT}*)?)?)("E"|"e")("+"|"-")?{DIGIT}+)
|
|||
/* specially bracketed cpp blocks */
|
||||
"%{" {
|
||||
char strLine[512];
|
||||
snprintf(strLine, 512, "#line %d \"%s\"\n", _iLinesCt, _strInputFileName );
|
||||
sprintf(strLine, "#line %d \"%s\"\n", _iLinesCt, _strInputFileName );
|
||||
_strCppBlock = strdup(strLine);
|
||||
BEGIN(CPPBLOCK);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user