Skip to content

Commit e8bc7a2

Browse files
ossy-szegeddbatyai
authored andcommitted
Update API version to 2.1.0. (#3220)
Closes #3104. JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác [email protected]
1 parent 8f39d90 commit e8bc7a2

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-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

+5-1
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,11 @@ 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",
503+
JERRY_API_MAJOR_VERSION,
504+
JERRY_API_MINOR_VERSION,
505+
JERRY_API_PATCH_VERSION,
506+
JERRY_COMMIT_HASH);
503507
return JERRY_STANDALONE_EXIT_CODE_OK;
504508
}
505509
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)