Skip to content

Commit

Permalink
Update API version to 2.1.0. (#3220)
Browse files Browse the repository at this point in the history
Closes #3104.

JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác [email protected]
  • Loading branch information
ossy-szeged authored and dbatyai committed Oct 16, 2019
1 parent 8f39d90 commit e8bc7a2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
7 changes: 6 additions & 1 deletion jerry-core/include/jerryscript-core.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 5 additions & 1 deletion jerry-main/main-unix.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion targets/zephyr/src/main-zephyr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit e8bc7a2

Please sign in to comment.