mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Compile with clang-7.0 (#2754)
jerry_debugger_scope_variable_type_t was not explicitly sized by the compiler as 8bit, accept uint8_t instead (you still can call the fn with a jerry_debugger_scope_variable_type_t) JerryScript-DCO-1.0-Signed-off-by: wille-io mike@wille.io
This commit is contained in:
parent
9c10d82e4a
commit
a1fdcf06cb
@ -271,11 +271,12 @@ jerry_debugger_send_scope_chain (void)
|
||||
|
||||
/**
|
||||
* Get type of the scope variable property.
|
||||
* @return (jerry_debugger_scope_variable_type_t)
|
||||
*/
|
||||
static jerry_debugger_scope_variable_type_t
|
||||
static uint8_t
|
||||
jerry_debugger_get_variable_type (ecma_value_t value) /**< input ecma value */
|
||||
{
|
||||
jerry_debugger_scope_variable_type_t ret_value = JERRY_DEBUGGER_VALUE_NONE;
|
||||
uint8_t ret_value = JERRY_DEBUGGER_VALUE_NONE;
|
||||
|
||||
if (ecma_is_value_undefined (value))
|
||||
{
|
||||
@ -321,11 +322,12 @@ jerry_debugger_get_variable_type (ecma_value_t value) /**< input ecma value */
|
||||
*
|
||||
* It will copies the given scope values type, length and value into the outgoing message string.
|
||||
*
|
||||
* @param variable_type type (jerry_debugger_scope_variable_type_t)
|
||||
* @return true - if the copy was successfully
|
||||
* false - otherwise
|
||||
*/
|
||||
static bool
|
||||
jerry_debugger_copy_variables_to_string_message (jerry_debugger_scope_variable_type_t variable_type, /**< type */
|
||||
jerry_debugger_copy_variables_to_string_message (uint8_t variable_type, /**< type */
|
||||
ecma_string_t *value_str, /**< property name or value string */
|
||||
jerry_debugger_send_string_t *message_string_p, /**< msg pointer */
|
||||
size_t *buffer_pos) /**< string data position of the message */
|
||||
@ -494,7 +496,7 @@ jerry_debugger_send_scope_variables (const uint8_t *recv_buffer_p) /**< pointer
|
||||
ecma_property_value_t prop_value_p = prop_pair_p->values[i];
|
||||
ecma_value_t property_value;
|
||||
|
||||
jerry_debugger_scope_variable_type_t variable_type = jerry_debugger_get_variable_type (prop_value_p.value);
|
||||
uint8_t variable_type = jerry_debugger_get_variable_type (prop_value_p.value);
|
||||
|
||||
property_value = ecma_op_to_string (prop_value_p.value);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user