From b94a23d580380715fe88803012d77e15d19ec3e9 Mon Sep 17 00:00:00 2001 From: belliash Date: Wed, 15 Aug 2018 20:03:39 +0200 Subject: [PATCH] Get rid of PH7 ident --- engine/api.c | 7 ------- engine/vm.c | 3 +-- include/ph7.h | 21 --------------------- 3 files changed, 1 insertion(+), 30 deletions(-) diff --git a/engine/api.c b/engine/api.c index fdd8ec6..d41674b 100644 --- a/engine/api.c +++ b/engine/api.c @@ -456,13 +456,6 @@ const char *ph7_lib_version(void) { const char *ph7_lib_signature(void) { return PH7_SIG; } -/* - * [CAPIREF: ph7_lib_ident()] - * Please refer to the official documentation for function purpose and expected parameters. - */ -const char *ph7_lib_ident(void) { - return PH7_IDENT; -} /* * [CAPIREF: ph7_lib_copyright()] * Please refer to the official documentation for function purpose and expected parameters. diff --git a/engine/vm.c b/engine/vm.c index 5f2a466..9052a26 100644 --- a/engine/vm.c +++ b/engine/vm.c @@ -9527,7 +9527,7 @@ static int vm_builtin_ph7_version(ph7_context *pCtx, int nArg, ph7_value **apArg #define PH7_HTML_PAGE_FORMAT "%s

"\ "

Engine ID:

"\ - "

%s %s

"\ + "

%s

"\ "

Underlying VFS:

"\ "

%s

"\ "

Total Built-in Functions:

"\ @@ -9596,7 +9596,6 @@ static int vm_builtin_ph7_credits(ph7_context *pCtx, int nArg, ph7_value **apArg PH7_HTML_PAGE_FORMAT, ph7_lib_version(), /* Engine version */ ph7_lib_signature(), /* Engine signature */ - ph7_lib_ident(), /* Engine ID */ pVm->pEngine->pVfs ? pVm->pEngine->pVfs->zName : "null_vfs", SyHashTotalEntry(&pVm->hFunction) + SyHashTotalEntry(&pVm->hHostFunction),/* # built-in functions */ SyHashTotalEntry(&pVm->hClass), diff --git a/include/ph7.h b/include/ph7.h index bb591f0..b9ef4e7 100644 --- a/include/ph7.h +++ b/include/ph7.h @@ -55,14 +55,6 @@ #ifndef PATH_MAX #define PATH_MAX MAX_PATH #endif -/* - * Compile time engine version, signature, identification in the symisc source tree - * and copyright notice. - * Each macro have an equivalent C interface associated with it that provide the same - * information but are associated with the library instead of the header file. - * Refer to [ph7_lib_version()], [ph7_lib_signature()], [ph7_lib_ident()] and - * [ph7_lib_copyright()] for more information. - */ /* * The PH7_VERSION C preprocessor macroevaluates to a string literal * that is the ph7 version in the format "X.Y.Z" where X is the major @@ -70,12 +62,6 @@ * number. */ #define PH7_VERSION "2.1.4" -/* - * The PH7_VERSION_NUMBER C preprocessor macro resolves to an integer - * with the value (X*1000000 + Y*1000 + Z) where X, Y, and Z are the same - * numbers used in [PH7_VERSION]. - */ -#define PH7_VERSION_NUMBER 2001004 /* * The PH7_SIG C preprocessor macro evaluates to a string * literal which is the public signature of the ph7 engine. @@ -84,13 +70,6 @@ * Server: YourWebServer/x.x PH7/x.x.x \r\n */ #define PH7_SIG "PH7/2.1.4" -/* - * PH7 identification in the Symisc source tree: - * Each particular check-in of a particular software released - * by symisc systems have an unique identifier associated with it. - * This macro hold the one associated with ph7. - */ -#define PH7_IDENT "ph7:c193f4d8a6b90ee60f9afad11840f1010054fdf9" /* * Copyright notice. * If you have any questions about the licensing situation,please