From e8bc7a2b93a6edfa463458c8bb69fac2a36feb9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Csaba=20Osztrogon=C3=A1c?= Date: Wed, 16 Oct 2019 15:14:56 +0200 Subject: [PATCH] Update API version to 2.1.0. (#3220) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #3104. JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác oszi@inf.u-szeged.hu --- jerry-core/include/jerryscript-core.h | 7 ++++++- jerry-main/main-unix.c | 6 +++++- targets/zephyr/src/main-zephyr.c | 2 +- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/jerry-core/include/jerryscript-core.h b/jerry-core/include/jerryscript-core.h index 16b4b5c6b1..accc95fe28 100644 --- a/jerry-core/include/jerryscript-core.h +++ b/jerry-core/include/jerryscript-core.h @@ -39,7 +39,12 @@ extern "C" /** * Minor version of JerryScript API. */ -#define JERRY_API_MINOR_VERSION 0 +#define JERRY_API_MINOR_VERSION 1 + +/** + * Patch version of JerryScript API. + */ +#define JERRY_API_PATCH_VERSION 0 /** * JerryScript init flags. diff --git a/jerry-main/main-unix.c b/jerry-main/main-unix.c index 947b57caf0..61f1073a5d 100644 --- a/jerry-main/main-unix.c +++ b/jerry-main/main-unix.c @@ -499,7 +499,11 @@ main (int argc, } case OPT_VERSION: { - printf ("Version: %d.%d%s\n", JERRY_API_MAJOR_VERSION, JERRY_API_MINOR_VERSION, JERRY_COMMIT_HASH); + printf ("Version: %d.%d.%d%s\n", + JERRY_API_MAJOR_VERSION, + JERRY_API_MINOR_VERSION, + JERRY_API_PATCH_VERSION, + JERRY_COMMIT_HASH); return JERRY_STANDALONE_EXIT_CODE_OK; } case OPT_MEM_STATS: diff --git a/targets/zephyr/src/main-zephyr.c b/targets/zephyr/src/main-zephyr.c index b2090bf76b..6ea0b84667 100644 --- a/targets/zephyr/src/main-zephyr.c +++ b/targets/zephyr/src/main-zephyr.c @@ -82,7 +82,7 @@ void main (void) srand ((unsigned) jerry_port_get_current_time ()); uint32_t zephyr_ver = sys_kernel_version_get (); printf ("JerryScript build: " __DATE__ " " __TIME__ "\n"); - printf ("JerryScript API %d.%d\n", JERRY_API_MAJOR_VERSION, JERRY_API_MINOR_VERSION); + printf ("JerryScript API %d.%d.%d\n", JERRY_API_MAJOR_VERSION, JERRY_API_MINOR_VERSION, JERRY_API_PATCH_VERSION); printf ("Zephyr version %d.%d.%d\n", (int)SYS_KERNEL_VER_MAJOR (zephyr_ver), (int)SYS_KERNEL_VER_MINOR (zephyr_ver), (int)SYS_KERNEL_VER_PATCHLEVEL (zephyr_ver));