Skip to content

Commit f08146c

Browse files
committed
Update API version to 2.1.0.
Fixes jerryscript-project#3104. JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác [email protected]
1 parent f0e432c commit f08146c

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

jerry-core/include/jerryscript-core.h

+6-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,12 @@ extern "C"
3939
/**
4040
* Minor version of JerryScript API.
4141
*/
42-
#define JERRY_API_MINOR_VERSION 0
42+
#define JERRY_API_MINOR_VERSION 1
43+
44+
/**
45+
* Patch version of JerryScript API.
46+
*/
47+
#define JERRY_API_PATCH_VERSION 0
4348

4449
/**
4550
* JerryScript init flags.

jerry-main/main-unix.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ main (int argc,
499499
}
500500
case OPT_VERSION:
501501
{
502-
printf ("Version: %d.%d%s\n", JERRY_API_MAJOR_VERSION, JERRY_API_MINOR_VERSION, JERRY_COMMIT_HASH);
502+
printf ("Version: %d.%d.%d%s\n", JERRY_API_MAJOR_VERSION, JERRY_API_MINOR_VERSION, JERRY_API_PATCH_VERSION, JERRY_COMMIT_HASH);
503503
return JERRY_STANDALONE_EXIT_CODE_OK;
504504
}
505505
case OPT_MEM_STATS:

targets/zephyr/src/main-zephyr.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ void main (void)
8282
srand ((unsigned) jerry_port_get_current_time ());
8383
uint32_t zephyr_ver = sys_kernel_version_get ();
8484
printf ("JerryScript build: " __DATE__ " " __TIME__ "\n");
85-
printf ("JerryScript API %d.%d\n", JERRY_API_MAJOR_VERSION, JERRY_API_MINOR_VERSION);
85+
printf ("JerryScript API %d.%d.%d\n", JERRY_API_MAJOR_VERSION, JERRY_API_MINOR_VERSION, JERRY_API_PATCH_VERSION);
8686
printf ("Zephyr version %d.%d.%d\n", (int)SYS_KERNEL_VER_MAJOR (zephyr_ver),
8787
(int)SYS_KERNEL_VER_MINOR (zephyr_ver),
8888
(int)SYS_KERNEL_VER_PATCHLEVEL (zephyr_ver));

0 commit comments

Comments
 (0)