mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 14:42:13 +00:00
------------------------------------------------------------------------
r4254 | acceptthis | 2013-03-10 17:10:23 +0000 (Sun, 10 Mar 2013) | 1 line oops. ------------------------------------------------------------------------ git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4250 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
854335dad8
commit
066dc81d8b
1 changed files with 8 additions and 4 deletions
|
@ -3038,8 +3038,8 @@ pbool QCC_PR_CheckTokenComment(char *string, char **comment)
|
||||||
{
|
{
|
||||||
if (nl)
|
if (nl)
|
||||||
{
|
{
|
||||||
QCC_PR_NewLine(false);
|
|
||||||
pr_file_p++;
|
pr_file_p++;
|
||||||
|
QCC_PR_NewLine(false);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
nl = true;
|
nl = true;
|
||||||
|
@ -3065,8 +3065,8 @@ pbool QCC_PR_CheckTokenComment(char *string, char **comment)
|
||||||
|
|
||||||
if (*pr_file_p == '\n')
|
if (*pr_file_p == '\n')
|
||||||
{
|
{
|
||||||
QCC_PR_NewLine(true);
|
|
||||||
pr_file_p++;
|
pr_file_p++;
|
||||||
|
QCC_PR_NewLine(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
old = replace?NULL:*comment;
|
old = replace?NULL:*comment;
|
||||||
|
@ -3095,15 +3095,19 @@ pbool QCC_PR_CheckTokenComment(char *string, char **comment)
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
if (pr_file_p[0]=='\n')
|
if (pr_file_p[0]=='\n')
|
||||||
|
{
|
||||||
|
pr_file_p++;
|
||||||
QCC_PR_NewLine(true);
|
QCC_PR_NewLine(true);
|
||||||
if (pr_file_p[1] == 0)
|
}
|
||||||
|
else if (pr_file_p[1] == 0)
|
||||||
{
|
{
|
||||||
QCC_PR_ParseError(0, "EOF inside comment\n");
|
QCC_PR_ParseError(0, "EOF inside comment\n");
|
||||||
pr_file_p++;
|
pr_file_p++;
|
||||||
pr_file_p-=2;
|
pr_file_p-=2;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
pr_file_p++;
|
else
|
||||||
|
pr_file_p++;
|
||||||
} while (pr_file_p[0] != '*' || pr_file_p[1] != '/');
|
} while (pr_file_p[0] != '*' || pr_file_p[1] != '/');
|
||||||
|
|
||||||
old = replace?NULL:*comment;
|
old = replace?NULL:*comment;
|
||||||
|
|
Loading…
Reference in a new issue