Rename resource_name to source_name (#4846)
JerryScript-DCO-1.0-Signed-off-by: Yonggang Luo luoyonggang@gmail.com
This commit is contained in:
@@ -43,7 +43,7 @@ typedef enum
|
||||
/**
|
||||
* Callback for jerry_debugger_wait_and_run_client_source
|
||||
*
|
||||
* The callback receives the resource name, source code and a user pointer.
|
||||
* The callback receives the source name, source code and a user pointer.
|
||||
*
|
||||
* @return this value is passed back by jerry_debugger_wait_and_run_client_source
|
||||
*/
|
||||
|
||||
@@ -45,8 +45,8 @@ typedef enum
|
||||
JERRY_SNAPSHOT_EXEC_COPY_DATA = (1u << 0), /**< copy snashot data */
|
||||
JERRY_SNAPSHOT_EXEC_ALLOW_STATIC = (1u << 1), /**< static snapshots allowed */
|
||||
JERRY_SNAPSHOT_EXEC_LOAD_AS_FUNCTION = (1u << 2), /**< load snapshot as function instead of executing it */
|
||||
JERRY_SNAPSHOT_EXEC_HAS_RESOURCE = (1u << 3), /**< source_name field is valid
|
||||
* in jerry_exec_snapshot_option_values_t */
|
||||
JERRY_SNAPSHOT_EXEC_HAS_SOURCE_NAME = (1u << 3), /**< source_name field is valid
|
||||
* in jerry_exec_snapshot_option_values_t */
|
||||
JERRY_SNAPSHOT_EXEC_HAS_USER_VALUE = (1u << 4), /**< user_value field is valid
|
||||
* in jerry_exec_snapshot_option_values_t */
|
||||
} jerry_exec_snapshot_opts_t;
|
||||
@@ -56,8 +56,8 @@ typedef enum
|
||||
*/
|
||||
typedef struct
|
||||
{
|
||||
jerry_value_t source_name; /**< resource name string (usually a file name)
|
||||
* if JERRY_SNAPSHOT_EXEC_HAS_RESOURCE is set in exec_snapshot_opts
|
||||
jerry_value_t source_name; /**< source name string (usually a file name)
|
||||
* if JERRY_SNAPSHOT_EXEC_HAS_SOURCE_NAME is set in exec_snapshot_opts
|
||||
* Note: non-string values are ignored */
|
||||
jerry_value_t user_value; /**< user value assigned to all functions created by this script including
|
||||
* eval calls executed by the script if JERRY_SNAPSHOT_EXEC_HAS_USER_VALUE
|
||||
|
||||
@@ -441,7 +441,7 @@ typedef enum
|
||||
*/
|
||||
typedef struct
|
||||
{
|
||||
jerry_value_t source_name; /**< resource name */
|
||||
jerry_value_t source_name; /**< source name */
|
||||
jerry_size_t line; /**< line index */
|
||||
jerry_size_t column; /**< column index */
|
||||
} jerry_frame_location_t;
|
||||
|
||||
Reference in New Issue
Block a user