From 066dc81d8bd61ddacdb8eed8fe91b295c06bdba5 Mon Sep 17 00:00:00 2001 From: Spoike Date: Tue, 12 Mar 2013 23:21:36 +0000 Subject: [PATCH] ------------------------------------------------------------------------ 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 --- engine/qclib/qcc_pr_lex.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/engine/qclib/qcc_pr_lex.c b/engine/qclib/qcc_pr_lex.c index f48fec39b..3039df4ef 100644 --- a/engine/qclib/qcc_pr_lex.c +++ b/engine/qclib/qcc_pr_lex.c @@ -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,15 +3095,19 @@ 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; } - pr_file_p++; + else + pr_file_p++; } while (pr_file_p[0] != '*' || pr_file_p[1] != '/'); old = replace?NULL:*comment;