Blub/0's fteqcc macro line fix to quote "seem to be some problems with
newlines in macros (causing wrong line numbers in error/warning outputs)" git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3146 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
4f6543abc2
commit
2e768fe44c
1 changed files with 3 additions and 0 deletions
|
@ -2074,6 +2074,7 @@ void QCC_PR_ConditionCompilation(void)
|
|||
if( s[1] == '\n' || s[1] == '\r' )
|
||||
{
|
||||
s++;
|
||||
QCC_PR_NewLine(false);
|
||||
*d++ = *s++;
|
||||
if( s[-1] == '\r' && s[0] == '\n' )
|
||||
{
|
||||
|
@ -2210,6 +2211,8 @@ int QCC_PR_CheakCompConst(void)
|
|||
QCC_PR_ParseError(ERR_TOOMANYPARAMS, "Too many parameters in macro call");
|
||||
} else if (*pr_file_p == ')' )
|
||||
plevel--;
|
||||
else if(*pr_file_p == '\n')
|
||||
QCC_PR_NewLine(false);
|
||||
|
||||
// see that *pr_file_p = '\0' up there? Must ++ BEFORE checking for !*pr_file_p
|
||||
pr_file_p++;
|
||||
|
|
Loading…
Reference in a new issue