Temporary workaround to allow the use of curly braces and array() syntax concurrently.
The build was successful.
Details
The build was successful.
Details
This commit is contained in:
parent
412a70c0c6
commit
075d2f0963
|
@ -798,9 +798,14 @@ PH7_PRIVATE sxi32 PH7_CompileArray(ph7_gen_state *pGen, sxi32 iCompileFlag) {
|
||||||
sxi32 nPair = 0;
|
sxi32 nPair = 0;
|
||||||
sxi32 iNest;
|
sxi32 iNest;
|
||||||
sxi32 rc;
|
sxi32 rc;
|
||||||
/* Jump the 'array' keyword,the leading left parenthesis and the trailing parenthesis.
|
if(pGen->pIn->nType & PH7_TK_OCB) {
|
||||||
*/
|
/* Jump the opening curly bracket */
|
||||||
pGen->pIn += 2;
|
pGen->pIn++;
|
||||||
|
} else {
|
||||||
|
/* Jump the 'array' keyword,the leading left parenthesis */
|
||||||
|
pGen->pIn += 2;
|
||||||
|
}
|
||||||
|
/* Jump the trailing parenthesis. */
|
||||||
pGen->pEnd--;
|
pGen->pEnd--;
|
||||||
xValidator = 0;
|
xValidator = 0;
|
||||||
SXUNUSED(iCompileFlag); /* cc warning */
|
SXUNUSED(iCompileFlag); /* cc warning */
|
||||||
|
|
Loading…
Reference in New Issue