diff options
author | Csaba Osztrogonác <oszi@inf.u-szeged.hu> | 2019-10-16 15:14:56 +0200 |
---|---|---|
committer | Dániel Bátyai <dbatyai@inf.u-szeged.hu> | 2019-10-16 15:14:56 +0200 |
commit | e8bc7a2b93a6edfa463458c8bb69fac2a36feb9e (patch) | |
tree | f6dfde94fe9bd275b463f578a29e5f194d7e4ed1 | |
parent | 8f39d90f7c8aa3ed78b2f552ec7bb064b9999437 (diff) |
Update API version to 2.1.0. (#3220)v2.1.0
Closes #3104.
JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác oszi@inf.u-szeged.hu
-rw-r--r-- | jerry-core/include/jerryscript-core.h | 7 | ||||
-rw-r--r-- | jerry-main/main-unix.c | 6 | ||||
-rw-r--r-- | 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 16b4b5c6..accc95fe 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 947b57ca..61f1073a 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 b2090bf7..6ea0b846 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)); |