diff --git a/jerry-core/debugger/debugger.c b/jerry-core/debugger/debugger.c index 75b58962d3..02ba152095 100644 --- a/jerry-core/debugger/debugger.c +++ b/jerry-core/debugger/debugger.c @@ -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);