------------------------------------------------------------------------

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:
Spoike 2013-03-12 23:21:36 +00:00
parent 854335dad8
commit 066dc81d8b

View file

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