Small tweeks
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@395 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
38343bf8a3
commit
c236b327a8
1 changed files with 13 additions and 2 deletions
|
@ -4365,7 +4365,8 @@ void QCC_PR_ParseStatement (void)
|
|||
QCC_FreeTemp(QCC_PR_Statement(&pr_opcodes[OP_IFNOT], e, 0, &patch1));
|
||||
else
|
||||
patch1 = NULL;
|
||||
QCC_PR_ParseStatement();
|
||||
if (!QCC_PR_Check(";"))
|
||||
QCC_PR_ParseStatement(); //don't give the hanging ';' warning.
|
||||
patch3 = &statements[numstatements];
|
||||
for (i = 0 ; i < numtemp ; i++)
|
||||
{
|
||||
|
@ -4458,6 +4459,7 @@ void QCC_PR_ParseStatement (void)
|
|||
(keyword_vector && !STRCMP ("vector", pr_token)) ||
|
||||
(keyword_integer && !STRCMP ("integer", pr_token)) ||
|
||||
(keyword_int && !STRCMP ("int", pr_token)) ||
|
||||
(keyword_class && !STRCMP ("class", pr_token)) ||
|
||||
(keyword_const && !STRCMP ("const", pr_token)))
|
||||
{
|
||||
// if (locals_end != numpr_globals) //is this breaking because of locals?
|
||||
|
@ -4538,6 +4540,7 @@ void QCC_PR_ParseStatement (void)
|
|||
int hcstyle;
|
||||
int defaultcase = -1;
|
||||
temp_t *et;
|
||||
int oldst;
|
||||
|
||||
breaks = num_breaks;
|
||||
cases = num_cases;
|
||||
|
@ -4616,8 +4619,13 @@ void QCC_PR_ParseStatement (void)
|
|||
|
||||
QCC_PR_Expect (")"); //close bracket is after we save the statement to mem (so debugger does not show the if statement as being on the line after
|
||||
|
||||
oldst = numstatements;
|
||||
QCC_PR_ParseStatement ();
|
||||
|
||||
/* if (oldst != numstatements && QCC_PR_)
|
||||
{
|
||||
}
|
||||
else*/
|
||||
QCC_FreeTemp(QCC_PR_Statement (&pr_opcodes[OP_GOTO], 0, 0, &patch2)); //the P1 statement/the theyforgotthebreak statement.
|
||||
if (hcstyle)
|
||||
patch1->b = &statements[numstatements] - patch1; //the goto start part
|
||||
|
@ -4684,6 +4692,9 @@ void QCC_PR_ParseStatement (void)
|
|||
case ev_function:
|
||||
e2 = QCC_PR_Statement (&pr_opcodes[OP_EQ_FNC], e, pr_casesdef[i], &patch1);
|
||||
break;
|
||||
case ev_field:
|
||||
e2 = QCC_PR_Statement (&pr_opcodes[OP_EQ_FNC], e, pr_casesdef[i], &patch1);
|
||||
break;
|
||||
case ev_integer:
|
||||
e2 = QCC_PR_Statement (&pr_opcodes[OP_EQ_I], e, pr_casesdef[i], &patch1);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue