mirror of
https://github.com/nzp-team/fteqw.git
synced 2025-02-01 13:10:47 +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)
|
||||
{
|
||||
QCC_PR_NewLine(false);
|
||||
pr_file_p++;
|
||||
QCC_PR_NewLine(false);
|
||||
break;
|
||||
}
|
||||
nl = true;
|
||||
|
@ -3065,8 +3065,8 @@ pbool QCC_PR_CheckTokenComment(char *string, char **comment)
|
|||
|
||||
if (*pr_file_p == '\n')
|
||||
{
|
||||
QCC_PR_NewLine(true);
|
||||
pr_file_p++;
|
||||
QCC_PR_NewLine(true);
|
||||
}
|
||||
|
||||
old = replace?NULL:*comment;
|
||||
|
@ -3095,14 +3095,18 @@ pbool QCC_PR_CheckTokenComment(char *string, char **comment)
|
|||
do
|
||||
{
|
||||
if (pr_file_p[0]=='\n')
|
||||
{
|
||||
pr_file_p++;
|
||||
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");
|
||||
pr_file_p++;
|
||||
pr_file_p-=2;
|
||||
break;
|
||||
}
|
||||
else
|
||||
pr_file_p++;
|
||||
} while (pr_file_p[0] != '*' || pr_file_p[1] != '/');
|
||||
|
||||
|
|
Loading…
Reference in a new issue