-Fixed a stupid bug in Precompiler which caused pragma keyword to do the

inverse you told it to.


git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@952 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Andreas Kirsch 2005-04-17 10:05:33 +00:00
parent ef975c65d5
commit 76d99cdbc2

View file

@ -723,9 +723,9 @@ pbool QCC_PR_Precompiler(void)
int st;
s = QCC_COM_Parse(msg);
if (!QC_strcasecmp(qcc_token, "enable") || !QC_strcasecmp(qcc_token, "on"))
st = 0;
else if (!QC_strcasecmp(qcc_token, "disable") || !QC_strcasecmp(qcc_token, "off"))
st = 1;
else if (!QC_strcasecmp(qcc_token, "disable") || !QC_strcasecmp(qcc_token, "off"))
st = 0;
else
{
QCC_PR_ParseWarning(WARN_BADPRAGMA, "compiler flag state not recognised");
@ -2020,6 +2020,7 @@ int QCC_PR_CheakCompConst(void)
for (p = 0; p < param; p++)
{
if (!STRCMP(qcc_token, c->params[p]))
{
strcat(buffer, paramoffset[p]);
@ -2071,8 +2072,6 @@ int QCC_PR_CheakCompConst(void)
strftime( retbuf, sizeof(retbuf),
"\"%a %d %b %Y\"", localtime( &long_time ));
pr_file_p = retbuf;
QCC_PR_Lex(); //translate the macro's value
pr_file_p = oldpr_file_p+8;