Style fix: fix comments at the end of function definitions.
JerryScript-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com
This commit is contained in:
@@ -935,7 +935,7 @@ ecma_string_get_array_index (const ecma_string_t *str_p, /**< ecma-string */
|
||||
is_array_index = is_array_index && (*out_index_p != ECMA_MAX_VALUE_OF_VALID_ARRAY_INDEX);
|
||||
|
||||
return is_array_index;
|
||||
} /* ecma_string_is_array_index */
|
||||
} /* ecma_string_get_array_index */
|
||||
|
||||
/**
|
||||
* Convert ecma-string's contents to a cesu-8 string and put it to the buffer.
|
||||
@@ -1283,8 +1283,7 @@ ecma_compare_ecma_strings_relational (const ecma_string_t *string1_p, /**< ecma-
|
||||
}
|
||||
|
||||
return is_first_less_than_second;
|
||||
}
|
||||
/* ecma_compare_ecma_strings_relational */
|
||||
} /* ecma_compare_ecma_strings_relational */
|
||||
|
||||
/**
|
||||
* Get length of ecma-string
|
||||
@@ -1629,7 +1628,7 @@ ecma_string_hash (const ecma_string_t *string_p) /**< ecma-string to calculate h
|
||||
|
||||
{
|
||||
return (string_p->hash);
|
||||
} /* ecma_string_try_hash */
|
||||
} /* ecma_string_hash */
|
||||
|
||||
/**
|
||||
* Create a substring from an ecma string
|
||||
|
||||
@@ -1019,7 +1019,7 @@ ecma_get_named_accessor_property_getter (const ecma_property_t *prop_p) /**< nam
|
||||
prop_p->u.named_accessor_property.getter_setter_pair_cp);
|
||||
|
||||
return ECMA_GET_POINTER (ecma_object_t, getter_setter_pointers_p->getter_p);
|
||||
} /* ecma_named_accessor_property_get_getter */
|
||||
} /* ecma_get_named_accessor_property_getter */
|
||||
|
||||
/**
|
||||
* Get setter of named accessor property
|
||||
@@ -1036,7 +1036,7 @@ ecma_get_named_accessor_property_setter (const ecma_property_t *prop_p) /**< nam
|
||||
prop_p->u.named_accessor_property.getter_setter_pair_cp);
|
||||
|
||||
return ECMA_GET_POINTER (ecma_object_t, getter_setter_pointers_p->setter_p);
|
||||
} /* ecma_named_accessor_property_get_setter */
|
||||
} /* ecma_get_named_accessor_property_setter */
|
||||
|
||||
/**
|
||||
* Set getter of named accessor property
|
||||
@@ -1054,7 +1054,7 @@ ecma_set_named_accessor_property_getter (ecma_object_t *object_p, /**< the prope
|
||||
prop_p->u.named_accessor_property.getter_setter_pair_cp);
|
||||
|
||||
ECMA_SET_POINTER (getter_setter_pointers_p->getter_p, getter_p);
|
||||
} /* ecma_named_accessor_property_set_getter */
|
||||
} /* ecma_set_named_accessor_property_getter */
|
||||
|
||||
/**
|
||||
* Set setter of named accessor property
|
||||
@@ -1072,7 +1072,7 @@ ecma_set_named_accessor_property_setter (ecma_object_t *object_p, /**< the prope
|
||||
prop_p->u.named_accessor_property.getter_setter_pair_cp);
|
||||
|
||||
ECMA_SET_POINTER (getter_setter_pointers_p->setter_p, setter_p);
|
||||
} /* ecma_named_accessor_property_set_setter */
|
||||
} /* ecma_set_named_accessor_property_setter */
|
||||
|
||||
/**
|
||||
* Get property's 'Writable' attribute value
|
||||
|
||||
@@ -143,7 +143,7 @@ ecma_builtin_helper_json_create_separated_properties (ecma_collection_header_t *
|
||||
}
|
||||
|
||||
return properties_str_p;
|
||||
} /* ecma_builtin_json_helper_create_separated_properties */
|
||||
} /* ecma_builtin_helper_json_create_separated_properties */
|
||||
|
||||
/**
|
||||
* Common function to create a formatted JSON string.
|
||||
@@ -213,7 +213,7 @@ ecma_builtin_helper_json_create_formatted_json (ecma_string_t *left_bracket_p, /
|
||||
final_str_p = tmp_str_p;
|
||||
|
||||
return ecma_make_normal_completion_value (ecma_make_string_value (final_str_p));
|
||||
} /* ecma_builtin_json_helper_create_formatted_json */
|
||||
} /* ecma_builtin_helper_json_create_formatted_json */
|
||||
|
||||
/**
|
||||
* Common function to create a non-formatted JSON string.
|
||||
@@ -252,7 +252,7 @@ ecma_builtin_helper_json_create_non_formatted_json (ecma_string_t *left_bracket_
|
||||
properties_str_p = tmp_str_p;
|
||||
|
||||
return ecma_make_normal_completion_value (ecma_make_string_value (properties_str_p));
|
||||
} /* ecma_builtin_json_helper_create_non_formatted_json */
|
||||
} /* ecma_builtin_helper_json_create_non_formatted_json */
|
||||
|
||||
/**
|
||||
* Convert decimal value to 4 digit hexadecimal string value.
|
||||
|
||||
@@ -452,7 +452,7 @@ ecma_builtin_list_lazy_property_names (ecma_object_t *object_p, /**< a built-in
|
||||
|
||||
JERRY_UNREACHABLE ();
|
||||
}
|
||||
} /* ecma_builtin_list_and_lazy_property_names */
|
||||
} /* ecma_builtin_list_lazy_property_names */
|
||||
|
||||
/**
|
||||
* Construct a Function object for specified built-in routine
|
||||
|
||||
@@ -1167,7 +1167,7 @@ re_match_regexp (re_matcher_ctx_t *re_ctx_p, /**< RegExp matcher context */
|
||||
|
||||
JERRY_UNREACHABLE ();
|
||||
return ecma_make_simple_completion_value (ECMA_SIMPLE_VALUE_FALSE); /* fail */
|
||||
} /* regexp_match */
|
||||
} /* re_match_regexp */
|
||||
|
||||
/**
|
||||
* Define the necessary properties for the result array (index, input, length).
|
||||
|
||||
@@ -807,7 +807,7 @@ jerry_api_create_error (jerry_api_error_t error_type, /**< type of error */
|
||||
return jerry_api_create_error_sz (error_type,
|
||||
(lit_utf8_byte_t *) message_p,
|
||||
lit_zt_utf8_string_size (message_p));
|
||||
}
|
||||
} /* jerry_api_create_error */
|
||||
|
||||
/**
|
||||
* Create an error object
|
||||
@@ -885,7 +885,7 @@ jerry_api_create_error_sz (jerry_api_error_t error_type, /**< type of error */
|
||||
|
||||
return error_object_p;
|
||||
}
|
||||
} /* jerry_api_create_error */
|
||||
} /* jerry_api_create_error_sz */
|
||||
|
||||
/**
|
||||
* Create an external function object
|
||||
@@ -1136,7 +1136,7 @@ bool jerry_api_get_object_field_value (jerry_api_object_t *object_p, /**< object
|
||||
field_name_p,
|
||||
lit_zt_utf8_string_size (field_name_p),
|
||||
field_value_p);
|
||||
}
|
||||
} /* jerry_api_get_object_field_value */
|
||||
|
||||
/**
|
||||
* Applies the given function to the every fields in the objects
|
||||
@@ -1241,7 +1241,7 @@ jerry_api_get_object_field_value_sz (jerry_api_object_t *object_p, /**< object *
|
||||
ecma_deref_ecma_string (field_name_str_p);
|
||||
|
||||
return is_successful;
|
||||
} /* jerry_api_get_object_field_value */
|
||||
} /* jerry_api_get_object_field_value_sz */
|
||||
|
||||
/**
|
||||
* Set value of field in the specified object
|
||||
@@ -1259,7 +1259,7 @@ jerry_api_set_object_field_value (jerry_api_object_t *object_p, /**< object */
|
||||
field_name_p,
|
||||
lit_zt_utf8_string_size (field_name_p),
|
||||
field_value_p);
|
||||
}
|
||||
} /* jerry_api_set_object_field_value */
|
||||
|
||||
/**
|
||||
* Set value of field in the specified object
|
||||
@@ -1302,7 +1302,7 @@ jerry_api_set_object_field_value_sz (jerry_api_object_t *object_p, /**< object *
|
||||
ecma_deref_ecma_string (field_name_str_p);
|
||||
|
||||
return is_successful;
|
||||
} /* jerry_api_set_object_field_value */
|
||||
} /* jerry_api_set_object_field_value_sz */
|
||||
|
||||
/**
|
||||
* Get native handle, associated with specified object
|
||||
|
||||
@@ -125,7 +125,7 @@ lit_snapshot_dump (lit_literal_t lit, /**< literal to dump */
|
||||
|
||||
JERRY_UNREACHABLE ();
|
||||
return 0;
|
||||
} /* rcs_snapshot_dump */
|
||||
} /* lit_snapshot_dump */
|
||||
|
||||
/**
|
||||
* Dump literals to specified snapshot buffer.
|
||||
@@ -410,6 +410,6 @@ lit_load_literals_from_snapshot (const uint8_t *lit_table_p, /**< buffer with li
|
||||
|
||||
mem_heap_free_block (id_map_p);
|
||||
return false;
|
||||
} /* rcs_load_literals_from_snapshot */
|
||||
} /* lit_load_literals_from_snapshot */
|
||||
|
||||
#endif /* JERRY_ENABLE_SNAPSHOT_EXEC */
|
||||
|
||||
@@ -847,7 +847,7 @@ lit_code_point_to_cesu8 (lit_code_point_t code_point, /**< code point */
|
||||
offset += lit_code_unit_to_utf8 (convert_code_point_to_low_surrogate (code_point), buf + offset);
|
||||
return offset;
|
||||
}
|
||||
} /* lit_code_point_to_utf8 */
|
||||
} /* lit_code_point_to_cesu8 */
|
||||
|
||||
/**
|
||||
* Convert code point to utf-8 representation
|
||||
|
||||
@@ -201,7 +201,7 @@ re_get_opcode (uint8_t **bc_p) /**< pointer to bytecode start */
|
||||
uint8_t bytecode = **bc_p;
|
||||
(*bc_p) += sizeof (uint8_t);
|
||||
return (re_opcode_t) bytecode;
|
||||
} /* get_opcode */
|
||||
} /* re_get_opcode */
|
||||
|
||||
/**
|
||||
* Get a parameter of a RegExp opcode
|
||||
@@ -212,7 +212,7 @@ re_get_value (uint8_t **bc_p) /**< pointer to bytecode start */
|
||||
uint32_t value = *((uint32_t*) *bc_p);
|
||||
(*bc_p) += sizeof (uint32_t);
|
||||
return value;
|
||||
} /* get_value */
|
||||
} /* re_get_value */
|
||||
|
||||
/**
|
||||
* Callback function of character class generation
|
||||
|
||||
@@ -299,7 +299,7 @@ rcs_alloc_record (rcs_record_set_t *rec_set_p, /**< recordset */
|
||||
rcs_assert_state_is_correct (rec_set_p);
|
||||
|
||||
return rec_p;
|
||||
} /* alloc_record */
|
||||
} /* rcs_alloc_record */
|
||||
|
||||
/**
|
||||
* Free the specified record.
|
||||
|
||||
@@ -142,7 +142,7 @@ rcs_record_set_alignment_bytes_count (rcs_record_t *rec_p, /**< record */
|
||||
JERRY_ASSERT (RCS_RECORD_IS_CHARSET (rec_p));
|
||||
|
||||
rcs_record_set_field (rec_p, RCS_CHARSET_HEADER_ALIGN_POS, RCS_CHARSET_HEADER_ALIGN_WIDTH, count);
|
||||
} /* rcs_record_set_align */
|
||||
} /* rcs_record_set_alignment_bytes_count */
|
||||
|
||||
/**
|
||||
* Set the hash value of the record.
|
||||
|
||||
Reference in New Issue
Block a user