Rename PH7_COMPILE_SINGLE_STMT to PH7_COMPILE_STATEMENT
The build was successful.
Details
The build was successful.
Details
This commit is contained in:
parent
26b1675021
commit
be454ff7be
|
@ -1599,7 +1599,7 @@ static sxi32 PH7_CompileBlock(
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
/* Compile a single statement */
|
/* Compile a single statement */
|
||||||
rc = PH7_GenStateCompileChunk(&(*pGen), PH7_COMPILE_SINGLE_STMT);
|
rc = PH7_GenStateCompileChunk(&(*pGen), PH7_COMPILE_STATEMENT);
|
||||||
if(rc == SXERR_ABORT) {
|
if(rc == SXERR_ABORT) {
|
||||||
return SXERR_ABORT;
|
return SXERR_ABORT;
|
||||||
}
|
}
|
||||||
|
@ -1607,7 +1607,7 @@ static sxi32 PH7_CompileBlock(
|
||||||
PH7_GenStateLeaveBlock(&(*pGen), 0);
|
PH7_GenStateLeaveBlock(&(*pGen), 0);
|
||||||
} else {
|
} else {
|
||||||
/* Compile a single statement */
|
/* Compile a single statement */
|
||||||
rc = PH7_GenStateCompileChunk(&(*pGen), PH7_COMPILE_SINGLE_STMT);
|
rc = PH7_GenStateCompileChunk(&(*pGen), PH7_COMPILE_STATEMENT);
|
||||||
if(rc == SXERR_ABORT) {
|
if(rc == SXERR_ABORT) {
|
||||||
return SXERR_ABORT;
|
return SXERR_ABORT;
|
||||||
}
|
}
|
||||||
|
@ -5321,7 +5321,7 @@ static sxi32 PH7_GenStateCompileChunk(
|
||||||
PH7_VmEmitInstr(pGen->pVm, PH7_OP_POP, 1, 0, 0, 0);
|
PH7_VmEmitInstr(pGen->pVm, PH7_OP_POP, 1, 0, 0, 0);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
/* Go compile the sucker */
|
/* Compile the statement */
|
||||||
rc = xCons(&(*pGen));
|
rc = xCons(&(*pGen));
|
||||||
}
|
}
|
||||||
if(rc == SXERR_ABORT) {
|
if(rc == SXERR_ABORT) {
|
||||||
|
@ -5333,14 +5333,10 @@ static sxi32 PH7_GenStateCompileChunk(
|
||||||
while(pGen->pIn < pGen->pEnd && (pGen->pIn->nType & PH7_TK_SEMI)) {
|
while(pGen->pIn < pGen->pEnd && (pGen->pIn->nType & PH7_TK_SEMI)) {
|
||||||
pGen->pIn++;
|
pGen->pIn++;
|
||||||
}
|
}
|
||||||
if(iFlags & PH7_COMPILE_SINGLE_STMT) {
|
if(iFlags & PH7_COMPILE_STATEMENT) {
|
||||||
/* Compile a single statement and return */
|
/* Compile a single statement and return */
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
/* LOOP ONE */
|
|
||||||
/* LOOP TWO */
|
|
||||||
/* LOOP THREE */
|
|
||||||
/* LOOP FOUR */
|
|
||||||
}
|
}
|
||||||
/* Return compilation status */
|
/* Return compilation status */
|
||||||
return rc;
|
return rc;
|
||||||
|
|
|
@ -42,7 +42,7 @@ struct LangConstruct {
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Compilation flags */
|
/* Compilation flags */
|
||||||
#define PH7_COMPILE_SINGLE_STMT 0x001 /* Compile a single statement */
|
#define PH7_COMPILE_STATEMENT 0x001 /* Compile a single statement */
|
||||||
|
|
||||||
/* Token stream synchronization macros */
|
/* Token stream synchronization macros */
|
||||||
#define SWAP_TOKEN_STREAM(GEN,START,END)\
|
#define SWAP_TOKEN_STREAM(GEN,START,END)\
|
||||||
|
|
Loading…
Reference in New Issue