From 26b16750215215d522785392228dfe27223e5a51 Mon Sep 17 00:00:00 2001 From: belliash Date: Tue, 14 Aug 2018 17:43:43 +0200 Subject: [PATCH] API function rename --- engine/api.c | 2 +- include/ph7.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/api.c b/engine/api.c index 59e0b92..fdd8ec6 100644 --- a/engine/api.c +++ b/engine/api.c @@ -715,7 +715,7 @@ Release: * [CAPIREF: ph7_compile()] * Please refer to the official documentation for function purpose and expected parameters. */ -int ph7_compile(ph7 *pEngine, const char *zSource, int nLen, ph7_vm **ppOutVm) { +int ph7_compile_code(ph7 *pEngine, const char *zSource, int nLen, ph7_vm **ppOutVm) { SyString sScript; int rc; if(PH7_ENGINE_MISUSE(pEngine) || zSource == 0) { diff --git a/include/ph7.h b/include/ph7.h index c8e7a8c..bb591f0 100644 --- a/include/ph7.h +++ b/include/ph7.h @@ -606,7 +606,7 @@ PH7_APIEXPORT int ph7_init(ph7 **ppEngine); PH7_APIEXPORT int ph7_config(ph7 *pEngine, int nConfigOp, ...); PH7_APIEXPORT int ph7_release(ph7 *pEngine); /* Compile Interfaces */ -PH7_APIEXPORT int ph7_compile(ph7 *pEngine, const char *zSource, int nLen, ph7_vm **ppOutVm); +PH7_APIEXPORT int ph7_compile_code(ph7 *pEngine, const char *zSource, int nLen, ph7_vm **ppOutVm); PH7_APIEXPORT int ph7_compile_file(ph7 *pEngine, const char *zFilePath, ph7_vm **ppOutVm); /* Virtual Machine Handling Interfaces */ PH7_APIEXPORT int ph7_vm_config(ph7_vm *pVm, int iConfigOp, ...);