ECC now works properly with long paths

This commit is contained in:
SLAwww 2016-03-18 03:15:05 +02:00
parent 344c836cd9
commit 3ef31a97aa

View File

@ -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);
}