Skip to content

Commit 0b7b6fe

Browse files
committed
Update API functions
* Rename 'jerry_api_' prefix to 'jerry_' * Fix minor style issues * Group the API functions and add comment to each group * Move engine behaviour related funtions to 'jerry.h' JerryScript-DCO-1.0-Signed-off-by: László Langó [email protected]
1 parent 308bb3c commit 0b7b6fe

File tree

12 files changed

+867
-942
lines changed

12 files changed

+867
-942
lines changed

jerry-core/ecma/operations/ecma-eval.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ ecma_op_eval (ecma_string_t *code_p, /**< code string */
5656
{
5757
ECMA_STRING_TO_UTF8_STRING (code_p, code_utf8_buffer_p, code_utf8_buffer_size);
5858

59-
ret_value = ecma_op_eval_chars_buffer ((jerry_api_char_t *) code_utf8_buffer_p,
59+
ret_value = ecma_op_eval_chars_buffer ((jerry_char_t *) code_utf8_buffer_p,
6060
chars_num,
6161
is_direct,
6262
is_called_from_strict_mode_code);
@@ -77,7 +77,7 @@ ecma_op_eval (ecma_string_t *code_p, /**< code string */
7777
* @return ecma value
7878
*/
7979
ecma_value_t
80-
ecma_op_eval_chars_buffer (const jerry_api_char_t *code_p, /**< code characters buffer */
80+
ecma_op_eval_chars_buffer (const jerry_char_t *code_p, /**< code characters buffer */
8181
size_t code_buffer_size, /**< size of the buffer */
8282
bool is_direct, /**< is eval called directly (ECMA-262 v5, 15.1.2.1.1) */
8383
bool is_called_from_strict_mode_code) /**< is eval is called from strict mode code */
@@ -90,7 +90,7 @@ ecma_op_eval_chars_buffer (const jerry_api_char_t *code_p, /**< code characters
9090
jsp_status_t parse_status;
9191

9292
bool is_strict_call = (is_direct && is_called_from_strict_mode_code);
93-
jerry_api_object_t *error_obj_p = NULL;
93+
jerry_object_t *error_obj_p = NULL;
9494

9595
parse_status = parser_parse_eval (code_p,
9696
code_buffer_size,

jerry-core/ecma/operations/ecma-eval.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2015-2016 Samsung Electronics Co., Ltd.
2+
* Copyright 2016 University of Szeged.
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.
@@ -29,7 +30,7 @@ extern ecma_value_t
2930
ecma_op_eval (ecma_string_t *, bool, bool);
3031

3132
extern ecma_value_t
32-
ecma_op_eval_chars_buffer (const jerry_api_char_t *, size_t, bool, bool);
33+
ecma_op_eval_chars_buffer (const jerry_char_t *, size_t, bool, bool);
3334

3435
/**
3536
* @}

0 commit comments

Comments
 (0)