From 7c7a837efb7801d39e24d48b8b5c12786192dadf Mon Sep 17 00:00:00 2001 From: belliash Date: Wed, 15 Aug 2018 19:06:00 +0200 Subject: [PATCH] Correct another bunch of typos. --- engine/parser.c | 4 ++-- engine/vm.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/engine/parser.c b/engine/parser.c index 766ea16..70d17c6 100644 --- a/engine/parser.c +++ b/engine/parser.c @@ -547,7 +547,7 @@ static void ExprAssembleLiteral(SyToken **ppCur, SyToken *pEnd) { * $new_numbers = array_map($double, $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; sxu32 nLine; sxi32 rc; @@ -732,7 +732,7 @@ static sxi32 ExprExtractNode(ph7_gen_state *pGen, ph7_expr_node **ppNode) { pNode->xCode = PH7_CompileLiteral; } else { /* Assemble anonymous functions body */ - rc = ExprAssembleAnnon(&(*pGen), &pCur, pGen->pEnd); + rc = ExprAssembleAnon(&(*pGen), &pCur, pGen->pEnd); if(rc != SXRET_OK) { SyMemBackendPoolFree(&pGen->pVm->sAllocator, pNode); return rc; diff --git a/engine/vm.c b/engine/vm.c index 0b1cba3..5f2a466 100644 --- a/engine/vm.c +++ b/engine/vm.c @@ -1076,7 +1076,7 @@ PH7_PRIVATE sxi32 PH7_VmInit( /* VM correctly initialized,set the magic number */ pVm->nMagic = PH7_VM_INIT; 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); /* Reset the code generator */ PH7_ResetCodeGenerator(&(*pVm), pEngine->xConf.xErr, pEngine->xConf.pErrData); @@ -1421,8 +1421,8 @@ static ph7_value *VmExtractMemObj( } /* Perform the lookup */ if(pName == 0 || pName->nByte < 1) { - static const SyString sAnnon = { " ", sizeof(char) }; - pName = &sAnnon; + static const SyString sAnon = { " ", sizeof(char) }; + pName = &sAnon; /* Always nullify the object */ bNullify = TRUE; bDup = FALSE;