Style fix: align pointer dereference operator to right
JerryScript-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com
This commit is contained in:
@@ -110,7 +110,7 @@ ecma_get_external_pointer_value (ecma_object_t *obj_p, /**< object to get proper
|
||||
|| id == ECMA_INTERNAL_PROPERTY_NATIVE_HANDLE
|
||||
|| id == ECMA_INTERNAL_PROPERTY_FREE_CALLBACK);
|
||||
|
||||
ecma_property_t* prop_p = ecma_find_internal_property (obj_p, id);
|
||||
ecma_property_t *prop_p = ecma_find_internal_property (obj_p, id);
|
||||
|
||||
if (prop_p == NULL)
|
||||
{
|
||||
|
||||
@@ -69,11 +69,11 @@ ecma_new_chars_collection (const lit_utf8_byte_t chars_buffer[], /**< utf-8 char
|
||||
JERRY_ASSERT (chars_buffer != NULL);
|
||||
JERRY_ASSERT (chars_size > 0);
|
||||
|
||||
ecma_collection_header_t* collection_p = ecma_alloc_collection_header ();
|
||||
ecma_collection_header_t *collection_p = ecma_alloc_collection_header ();
|
||||
|
||||
collection_p->unit_number = chars_size;
|
||||
|
||||
mem_cpointer_t* next_chunk_cp_p = &collection_p->first_chunk_cp;
|
||||
mem_cpointer_t *next_chunk_cp_p = &collection_p->first_chunk_cp;
|
||||
lit_utf8_byte_t *cur_char_buf_iter_p = NULL;
|
||||
lit_utf8_byte_t *cur_char_buf_end_p = NULL;
|
||||
|
||||
@@ -166,8 +166,8 @@ ecma_get_chars_collection_length (const ecma_collection_header_t *header_p) /**<
|
||||
* false - otherwise.
|
||||
*/
|
||||
static bool
|
||||
ecma_compare_chars_collection (const ecma_collection_header_t* header1_p, /**< first collection's header */
|
||||
const ecma_collection_header_t* header2_p) /**< second collection's header */
|
||||
ecma_compare_chars_collection (const ecma_collection_header_t *header1_p, /**< first collection's header */
|
||||
const ecma_collection_header_t *header2_p) /**< second collection's header */
|
||||
{
|
||||
JERRY_ASSERT (header1_p != NULL && header2_p != NULL);
|
||||
|
||||
@@ -224,14 +224,14 @@ ecma_compare_chars_collection (const ecma_collection_header_t* header1_p, /**< f
|
||||
* @return pointer to collection copy
|
||||
*/
|
||||
static ecma_collection_header_t*
|
||||
ecma_copy_chars_collection (const ecma_collection_header_t* collection_p) /**< collection's header */
|
||||
ecma_copy_chars_collection (const ecma_collection_header_t *collection_p) /**< collection's header */
|
||||
{
|
||||
JERRY_ASSERT (collection_p != NULL);
|
||||
|
||||
ecma_collection_header_t *new_header_p = ecma_alloc_collection_header ();
|
||||
*new_header_p = *collection_p;
|
||||
|
||||
mem_cpointer_t* next_chunk_cp_p = &new_header_p->first_chunk_cp;
|
||||
mem_cpointer_t *next_chunk_cp_p = &new_header_p->first_chunk_cp;
|
||||
|
||||
ecma_collection_chunk_t *chunk_p = ECMA_GET_POINTER (ecma_collection_chunk_t,
|
||||
collection_p->first_chunk_cp);
|
||||
@@ -297,7 +297,7 @@ ecma_copy_chars_collection_to_buffer (const ecma_collection_header_t *collection
|
||||
* Free the collection of ecma-chars.
|
||||
*/
|
||||
static void
|
||||
ecma_free_chars_collection (ecma_collection_header_t* collection_p) /**< collection's header */
|
||||
ecma_free_chars_collection (ecma_collection_header_t *collection_p) /**< collection's header */
|
||||
{
|
||||
JERRY_ASSERT (collection_p != NULL);
|
||||
|
||||
@@ -434,7 +434,7 @@ ecma_new_ecma_string_from_utf8 (const lit_utf8_byte_t *string_p, /**< utf-8 stri
|
||||
|
||||
JERRY_ASSERT (string_size > 0);
|
||||
|
||||
ecma_string_t* string_desc_p = ecma_alloc_string ();
|
||||
ecma_string_t *string_desc_p = ecma_alloc_string ();
|
||||
string_desc_p->refs = 1;
|
||||
string_desc_p->is_stack_var = false;
|
||||
string_desc_p->container = ECMA_STRING_CONTAINER_HEAP_CHUNKS;
|
||||
@@ -516,7 +516,7 @@ ecma_new_ecma_string_from_number (ecma_number_t num) /**< ecma-number */
|
||||
return ecma_get_magic_string_ex (magic_string_ex_id);
|
||||
}
|
||||
|
||||
ecma_string_t* string_desc_p = ecma_alloc_string ();
|
||||
ecma_string_t *string_desc_p = ecma_alloc_string ();
|
||||
string_desc_p->refs = 1;
|
||||
string_desc_p->is_stack_var = false;
|
||||
string_desc_p->container = ECMA_STRING_CONTAINER_HEAP_NUMBER;
|
||||
@@ -550,7 +550,7 @@ ecma_new_ecma_string_on_stack_from_lit_cp (ecma_string_t *string_p, /**< pointer
|
||||
ecma_string_t*
|
||||
ecma_new_ecma_string_from_lit_cp (lit_cpointer_t lit_cp) /**< index in the literal table */
|
||||
{
|
||||
ecma_string_t* string_desc_p = ecma_alloc_string ();
|
||||
ecma_string_t *string_desc_p = ecma_alloc_string ();
|
||||
|
||||
ecma_init_ecma_string_from_lit_cp (string_desc_p, lit_cp, false);
|
||||
|
||||
@@ -578,7 +578,7 @@ ecma_new_ecma_string_from_magic_string_id (lit_magic_string_id_t id) /**< identi
|
||||
{
|
||||
JERRY_ASSERT (id < LIT_MAGIC_STRING__COUNT);
|
||||
|
||||
ecma_string_t* string_desc_p = ecma_alloc_string ();
|
||||
ecma_string_t *string_desc_p = ecma_alloc_string ();
|
||||
ecma_init_ecma_string_from_magic_string_id (string_desc_p, id, false);
|
||||
|
||||
return string_desc_p;
|
||||
@@ -594,7 +594,7 @@ ecma_new_ecma_string_from_magic_string_ex_id (lit_magic_string_ex_id_t id) /**<
|
||||
{
|
||||
JERRY_ASSERT (id < lit_get_magic_string_ex_count ());
|
||||
|
||||
ecma_string_t* string_desc_p = ecma_alloc_string ();
|
||||
ecma_string_t *string_desc_p = ecma_alloc_string ();
|
||||
ecma_init_ecma_string_from_magic_string_ex_id (string_desc_p, id, false);
|
||||
|
||||
return string_desc_p;
|
||||
|
||||
@@ -237,7 +237,7 @@ ecma_make_simple_value (const ecma_simple_value_t value) /**< simple value */
|
||||
* Number value constructor
|
||||
*/
|
||||
ecma_value_t __attr_const___
|
||||
ecma_make_number_value (const ecma_number_t* num_p) /**< number to reference in value */
|
||||
ecma_make_number_value (const ecma_number_t *num_p) /**< number to reference in value */
|
||||
{
|
||||
JERRY_ASSERT (num_p != NULL);
|
||||
|
||||
@@ -256,7 +256,7 @@ ecma_make_number_value (const ecma_number_t* num_p) /**< number to reference in
|
||||
* String value constructor
|
||||
*/
|
||||
ecma_value_t __attr_const___
|
||||
ecma_make_string_value (const ecma_string_t* ecma_string_p) /**< string to reference in value */
|
||||
ecma_make_string_value (const ecma_string_t *ecma_string_p) /**< string to reference in value */
|
||||
{
|
||||
JERRY_ASSERT (ecma_string_p != NULL);
|
||||
|
||||
@@ -275,7 +275,7 @@ ecma_make_string_value (const ecma_string_t* ecma_string_p) /**< string to refer
|
||||
* object value constructor
|
||||
*/
|
||||
ecma_value_t __attr_const___
|
||||
ecma_make_object_value (const ecma_object_t* object_p) /**< object to reference in value */
|
||||
ecma_make_object_value (const ecma_object_t *object_p) /**< object to reference in value */
|
||||
{
|
||||
JERRY_ASSERT (object_p != NULL);
|
||||
|
||||
@@ -295,7 +295,7 @@ ecma_make_object_value (const ecma_object_t* object_p) /**< object to reference
|
||||
*
|
||||
* @return the pointer
|
||||
*/
|
||||
ecma_number_t* __attr_pure___
|
||||
ecma_number_t *__attr_pure___
|
||||
ecma_get_number_from_value (ecma_value_t value) /**< ecma-value */
|
||||
{
|
||||
JERRY_ASSERT (ecma_get_value_type_field (value) == ECMA_TYPE_NUMBER);
|
||||
@@ -309,7 +309,7 @@ ecma_get_number_from_value (ecma_value_t value) /**< ecma-value */
|
||||
*
|
||||
* @return the pointer
|
||||
*/
|
||||
ecma_string_t* __attr_pure___
|
||||
ecma_string_t *__attr_pure___
|
||||
ecma_get_string_from_value (ecma_value_t value) /**< ecma-value */
|
||||
{
|
||||
JERRY_ASSERT (ecma_get_value_type_field (value) == ECMA_TYPE_STRING);
|
||||
@@ -323,7 +323,7 @@ ecma_get_string_from_value (ecma_value_t value) /**< ecma-value */
|
||||
*
|
||||
* @return the pointer
|
||||
*/
|
||||
ecma_object_t* __attr_pure___
|
||||
ecma_object_t *__attr_pure___
|
||||
ecma_get_object_from_value (ecma_value_t value) /**< ecma-value */
|
||||
{
|
||||
JERRY_ASSERT (ecma_get_value_type_field (value) == ECMA_TYPE_OBJECT);
|
||||
@@ -648,7 +648,7 @@ ecma_get_completion_value_value (ecma_completion_value_t completion_value) /**<
|
||||
*
|
||||
* @return pointer
|
||||
*/
|
||||
ecma_number_t* __attr_const___
|
||||
ecma_number_t *__attr_const___
|
||||
ecma_get_number_from_completion_value (ecma_completion_value_t completion_value) /**< completion value */
|
||||
{
|
||||
return ecma_get_number_from_value (ecma_get_completion_value_value (completion_value));
|
||||
@@ -659,7 +659,7 @@ ecma_get_number_from_completion_value (ecma_completion_value_t completion_value)
|
||||
*
|
||||
* @return pointer
|
||||
*/
|
||||
ecma_string_t* __attr_const___
|
||||
ecma_string_t *__attr_const___
|
||||
ecma_get_string_from_completion_value (ecma_completion_value_t completion_value) /**< completion value */
|
||||
{
|
||||
return ecma_get_string_from_value (ecma_get_completion_value_value (completion_value));
|
||||
@@ -670,7 +670,7 @@ ecma_get_string_from_completion_value (ecma_completion_value_t completion_value)
|
||||
*
|
||||
* @return pointer
|
||||
*/
|
||||
ecma_object_t* __attr_const___
|
||||
ecma_object_t *__attr_const___
|
||||
ecma_get_object_from_completion_value (ecma_completion_value_t completion_value) /**< completion value */
|
||||
{
|
||||
return ecma_get_object_from_value (ecma_get_completion_value_value (completion_value));
|
||||
|
||||
@@ -258,7 +258,7 @@ ecma_set_object_type (ecma_object_t *object_p, /**< object */
|
||||
/**
|
||||
* Get object's prototype.
|
||||
*/
|
||||
ecma_object_t* __attr_pure___
|
||||
ecma_object_t *__attr_pure___
|
||||
ecma_get_object_prototype (const ecma_object_t *object_p) /**< object */
|
||||
{
|
||||
JERRY_ASSERT (object_p != NULL);
|
||||
@@ -331,7 +331,7 @@ ecma_get_lex_env_type (const ecma_object_t *object_p) /**< lexical environment *
|
||||
/**
|
||||
* Get outer reference of lexical environment.
|
||||
*/
|
||||
ecma_object_t* __attr_pure___
|
||||
ecma_object_t *__attr_pure___
|
||||
ecma_get_lex_env_outer_reference (const ecma_object_t *object_p) /**< lexical environment */
|
||||
{
|
||||
JERRY_ASSERT (object_p != NULL);
|
||||
@@ -351,7 +351,7 @@ ecma_get_lex_env_outer_reference (const ecma_object_t *object_p) /**< lexical en
|
||||
* See also:
|
||||
* ecma_op_object_get_property_names
|
||||
*/
|
||||
ecma_property_t* __attr_pure___
|
||||
ecma_property_t *__attr_pure___
|
||||
ecma_get_property_list (const ecma_object_t *object_p) /**< object or lexical environment */
|
||||
{
|
||||
JERRY_ASSERT (object_p != NULL);
|
||||
@@ -410,7 +410,7 @@ ecma_get_lex_env_provide_this (const ecma_object_t *object_p) /**< object-bound
|
||||
/**
|
||||
* Get lexical environment's bound object.
|
||||
*/
|
||||
ecma_object_t* __attr_pure___
|
||||
ecma_object_t *__attr_pure___
|
||||
ecma_get_lex_env_binding_object (const ecma_object_t *object_p) /**< object-bound lexical environment */
|
||||
{
|
||||
JERRY_ASSERT (object_p != NULL);
|
||||
@@ -1042,7 +1042,7 @@ ecma_get_named_accessor_property_setter (const ecma_property_t *prop_p) /**< nam
|
||||
* Set getter of named accessor property
|
||||
*/
|
||||
void
|
||||
ecma_set_named_accessor_property_getter (ecma_object_t* object_p, /**< the property's container */
|
||||
ecma_set_named_accessor_property_getter (ecma_object_t *object_p, /**< the property's container */
|
||||
ecma_property_t *prop_p, /**< named accessor property */
|
||||
ecma_object_t *getter_p) /**< getter object */
|
||||
{
|
||||
@@ -1060,7 +1060,7 @@ ecma_set_named_accessor_property_getter (ecma_object_t* object_p, /**< the prope
|
||||
* Set setter of named accessor property
|
||||
*/
|
||||
void
|
||||
ecma_set_named_accessor_property_setter (ecma_object_t* object_p, /**< the property's container */
|
||||
ecma_set_named_accessor_property_setter (ecma_object_t *object_p, /**< the property's container */
|
||||
ecma_property_t *prop_p, /**< named accessor property */
|
||||
ecma_object_t *setter_p) /**< setter object */
|
||||
{
|
||||
@@ -1081,7 +1081,7 @@ ecma_set_named_accessor_property_setter (ecma_object_t* object_p, /**< the prope
|
||||
* false - otherwise.
|
||||
*/
|
||||
bool
|
||||
ecma_is_property_writable (ecma_property_t* prop_p) /**< property */
|
||||
ecma_is_property_writable (ecma_property_t *prop_p) /**< property */
|
||||
{
|
||||
JERRY_ASSERT (prop_p->type == ECMA_PROPERTY_NAMEDDATA);
|
||||
|
||||
@@ -1092,7 +1092,7 @@ ecma_is_property_writable (ecma_property_t* prop_p) /**< property */
|
||||
* Set property's 'Writable' attribute value
|
||||
*/
|
||||
void
|
||||
ecma_set_property_writable_attr (ecma_property_t* prop_p, /**< property */
|
||||
ecma_set_property_writable_attr (ecma_property_t *prop_p, /**< property */
|
||||
bool is_writable) /**< should the property
|
||||
* be writable? */
|
||||
{
|
||||
@@ -1108,7 +1108,7 @@ ecma_set_property_writable_attr (ecma_property_t* prop_p, /**< property */
|
||||
* false - otherwise.
|
||||
*/
|
||||
bool
|
||||
ecma_is_property_enumerable (ecma_property_t* prop_p) /**< property */
|
||||
ecma_is_property_enumerable (ecma_property_t *prop_p) /**< property */
|
||||
{
|
||||
if (prop_p->type == ECMA_PROPERTY_NAMEDDATA)
|
||||
{
|
||||
@@ -1126,7 +1126,7 @@ ecma_is_property_enumerable (ecma_property_t* prop_p) /**< property */
|
||||
* Set property's 'Enumerable' attribute value
|
||||
*/
|
||||
void
|
||||
ecma_set_property_enumerable_attr (ecma_property_t* prop_p, /**< property */
|
||||
ecma_set_property_enumerable_attr (ecma_property_t *prop_p, /**< property */
|
||||
bool is_enumerable) /**< should the property
|
||||
* be enumerable? */
|
||||
{
|
||||
@@ -1151,7 +1151,7 @@ ecma_set_property_enumerable_attr (ecma_property_t* prop_p, /**< property */
|
||||
* false - otherwise.
|
||||
*/
|
||||
bool
|
||||
ecma_is_property_configurable (ecma_property_t* prop_p) /**< property */
|
||||
ecma_is_property_configurable (ecma_property_t *prop_p) /**< property */
|
||||
{
|
||||
if (prop_p->type == ECMA_PROPERTY_NAMEDDATA)
|
||||
{
|
||||
@@ -1169,7 +1169,7 @@ ecma_is_property_configurable (ecma_property_t* prop_p) /**< property */
|
||||
* Set property's 'Configurable' attribute value
|
||||
*/
|
||||
void
|
||||
ecma_set_property_configurable_attr (ecma_property_t* prop_p, /**< property */
|
||||
ecma_set_property_configurable_attr (ecma_property_t *prop_p, /**< property */
|
||||
bool is_configurable) /**< should the property
|
||||
* be configurable? */
|
||||
{
|
||||
|
||||
@@ -180,7 +180,7 @@ ecma_lcache_insert (ecma_object_t *object_p, /**< object */
|
||||
&& ecma_lcache_hash_table[hash_key][entry_index].prop_cp == prop_cp)
|
||||
{
|
||||
#ifndef JERRY_NDEBUG
|
||||
ecma_object_t* obj_in_entry_p;
|
||||
ecma_object_t *obj_in_entry_p;
|
||||
obj_in_entry_p = ECMA_GET_NON_NULL_POINTER (ecma_object_t,
|
||||
ecma_lcache_hash_table[hash_key][entry_index].object_cp);
|
||||
JERRY_ASSERT (obj_in_entry_p == object_p);
|
||||
|
||||
Reference in New Issue
Block a user