Correct another bunch of typos.
The build was successful.
Details
The build was successful.
Details
This commit is contained in:
parent
71d46e3052
commit
7c7a837efb
|
@ -547,7 +547,7 @@ static void ExprAssembleLiteral(SyToken **ppCur, SyToken *pEnd) {
|
||||||
* $new_numbers = array_map($double, $numbers);
|
* $new_numbers = array_map($double, $numbers);
|
||||||
* print implode(' ', $new_numbers);
|
* print implode(' ', $new_numbers);
|
||||||
*/
|
*/
|
||||||
static sxi32 ExprAssembleAnnon(ph7_gen_state *pGen, SyToken **ppCur, SyToken *pEnd) {
|
static sxi32 ExprAssembleAnon(ph7_gen_state *pGen, SyToken **ppCur, SyToken *pEnd) {
|
||||||
SyToken *pIn = *ppCur;
|
SyToken *pIn = *ppCur;
|
||||||
sxu32 nLine;
|
sxu32 nLine;
|
||||||
sxi32 rc;
|
sxi32 rc;
|
||||||
|
@ -732,7 +732,7 @@ static sxi32 ExprExtractNode(ph7_gen_state *pGen, ph7_expr_node **ppNode) {
|
||||||
pNode->xCode = PH7_CompileLiteral;
|
pNode->xCode = PH7_CompileLiteral;
|
||||||
} else {
|
} else {
|
||||||
/* Assemble anonymous functions body */
|
/* Assemble anonymous functions body */
|
||||||
rc = ExprAssembleAnnon(&(*pGen), &pCur, pGen->pEnd);
|
rc = ExprAssembleAnon(&(*pGen), &pCur, pGen->pEnd);
|
||||||
if(rc != SXRET_OK) {
|
if(rc != SXRET_OK) {
|
||||||
SyMemBackendPoolFree(&pGen->pVm->sAllocator, pNode);
|
SyMemBackendPoolFree(&pGen->pVm->sAllocator, pNode);
|
||||||
return rc;
|
return rc;
|
||||||
|
|
|
@ -1076,7 +1076,7 @@ PH7_PRIVATE sxi32 PH7_VmInit(
|
||||||
/* VM correctly initialized,set the magic number */
|
/* VM correctly initialized,set the magic number */
|
||||||
pVm->nMagic = PH7_VM_INIT;
|
pVm->nMagic = PH7_VM_INIT;
|
||||||
SyStringInitFromBuf(&sBuiltin, PH7_BUILTIN_LIB, sizeof(PH7_BUILTIN_LIB) - 1);
|
SyStringInitFromBuf(&sBuiltin, PH7_BUILTIN_LIB, sizeof(PH7_BUILTIN_LIB) - 1);
|
||||||
/* Compile the built-in library */
|
/* Precompile the built-in library */
|
||||||
VmEvalChunk(&(*pVm), 0, &sBuiltin, PH7_AERSCRIPT_CODE);
|
VmEvalChunk(&(*pVm), 0, &sBuiltin, PH7_AERSCRIPT_CODE);
|
||||||
/* Reset the code generator */
|
/* Reset the code generator */
|
||||||
PH7_ResetCodeGenerator(&(*pVm), pEngine->xConf.xErr, pEngine->xConf.pErrData);
|
PH7_ResetCodeGenerator(&(*pVm), pEngine->xConf.xErr, pEngine->xConf.pErrData);
|
||||||
|
@ -1421,8 +1421,8 @@ static ph7_value *VmExtractMemObj(
|
||||||
}
|
}
|
||||||
/* Perform the lookup */
|
/* Perform the lookup */
|
||||||
if(pName == 0 || pName->nByte < 1) {
|
if(pName == 0 || pName->nByte < 1) {
|
||||||
static const SyString sAnnon = { " ", sizeof(char) };
|
static const SyString sAnon = { " ", sizeof(char) };
|
||||||
pName = &sAnnon;
|
pName = &sAnon;
|
||||||
/* Always nullify the object */
|
/* Always nullify the object */
|
||||||
bNullify = TRUE;
|
bNullify = TRUE;
|
||||||
bDup = FALSE;
|
bDup = FALSE;
|
||||||
|
|
Loading…
Reference in New Issue