More typos to correct
This commit is contained in:
parent
6f64412108
commit
abf9cf61b8
@ -5636,7 +5636,7 @@ static const LangConstruct aLangConstruct[] = {
|
|||||||
*/
|
*/
|
||||||
static ProcLangConstruct GenStateGetStatementHandler(
|
static ProcLangConstruct GenStateGetStatementHandler(
|
||||||
sxu32 nKeywordID, /* Keyword ID*/
|
sxu32 nKeywordID, /* Keyword ID*/
|
||||||
SyToken *pLookahed /* Look-ahead token */
|
SyToken *pLookahead /* Look-ahead token */
|
||||||
) {
|
) {
|
||||||
sxu32 n = 0;
|
sxu32 n = 0;
|
||||||
for(;;) {
|
for(;;) {
|
||||||
@ -5644,8 +5644,8 @@ static ProcLangConstruct GenStateGetStatementHandler(
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if(aLangConstruct[n].nID == nKeywordID) {
|
if(aLangConstruct[n].nID == nKeywordID) {
|
||||||
if(nKeywordID == PH7_TKWRD_STATIC && pLookahed && (pLookahed->nType & PH7_TK_OP)) {
|
if(nKeywordID == PH7_TKWRD_STATIC && pLookahead && (pLookahead->nType & PH7_TK_OP)) {
|
||||||
const ph7_expr_op *pOp = (const ph7_expr_op *)pLookahed->pUserData;
|
const ph7_expr_op *pOp = (const ph7_expr_op *)pLookahead->pUserData;
|
||||||
if(pOp && pOp->iOp == EXPR_OP_DC /*::*/) {
|
if(pOp && pOp->iOp == EXPR_OP_DC /*::*/) {
|
||||||
/* 'static' (class context),return null */
|
/* 'static' (class context),return null */
|
||||||
return 0;
|
return 0;
|
||||||
@ -5657,16 +5657,16 @@ static ProcLangConstruct GenStateGetStatementHandler(
|
|||||||
}
|
}
|
||||||
n++;
|
n++;
|
||||||
}
|
}
|
||||||
if(pLookahed) {
|
if(pLookahead) {
|
||||||
if(nKeywordID == PH7_TKWRD_INTERFACE && (pLookahed->nType & PH7_TK_ID)) {
|
if(nKeywordID == PH7_TKWRD_INTERFACE && (pLookahead->nType & PH7_TK_ID)) {
|
||||||
return PH7_CompileClassInterface;
|
return PH7_CompileClassInterface;
|
||||||
} else if(nKeywordID == PH7_TKWRD_CLASS && (pLookahed->nType & PH7_TK_ID)) {
|
} else if(nKeywordID == PH7_TKWRD_CLASS && (pLookahead->nType & PH7_TK_ID)) {
|
||||||
return PH7_CompileClass;
|
return PH7_CompileClass;
|
||||||
} else if(nKeywordID == PH7_TKWRD_ABSTRACT && (pLookahed->nType & PH7_TK_KEYWORD)
|
} else if(nKeywordID == PH7_TKWRD_ABSTRACT && (pLookahead->nType & PH7_TK_KEYWORD)
|
||||||
&& SX_PTR_TO_INT(pLookahed->pUserData) == PH7_TKWRD_CLASS) {
|
&& SX_PTR_TO_INT(pLookahead->pUserData) == PH7_TKWRD_CLASS) {
|
||||||
return PH7_CompileAbstractClass;
|
return PH7_CompileAbstractClass;
|
||||||
} else if(nKeywordID == PH7_TKWRD_FINAL && (pLookahed->nType & PH7_TK_KEYWORD)
|
} else if(nKeywordID == PH7_TKWRD_FINAL && (pLookahead->nType & PH7_TK_KEYWORD)
|
||||||
&& SX_PTR_TO_INT(pLookahed->pUserData) == PH7_TKWRD_CLASS) {
|
&& SX_PTR_TO_INT(pLookahead->pUserData) == PH7_TKWRD_CLASS) {
|
||||||
return PH7_CompileFinalClass;
|
return PH7_CompileFinalClass;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -5675,7 +5675,7 @@ static ProcLangConstruct GenStateGetStatementHandler(
|
|||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
* Check if the given keyword is in fact a PHP language construct.
|
* Check if the given keyword is in fact a PHP language construct.
|
||||||
* Return TRUE on success. FALSE otheriwse.
|
* Return TRUE on success. FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
static int GenStateisLangConstruct(sxu32 nKeyword) {
|
static int GenStateisLangConstruct(sxu32 nKeyword) {
|
||||||
int rc;
|
int rc;
|
||||||
|
Loading…
Reference in New Issue
Block a user