Skip to content

Commit b1acf1a

Browse files
committed
Style fix: align pointer dereference operator to right
JerryScript-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com
1 parent efc994b commit b1acf1a

37 files changed

+154
-121
lines changed

jerry-core/ecma/base/ecma-helpers-external-pointers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ ecma_get_external_pointer_value (ecma_object_t *obj_p, /**< object to get proper
110110
|| id == ECMA_INTERNAL_PROPERTY_NATIVE_HANDLE
111111
|| id == ECMA_INTERNAL_PROPERTY_FREE_CALLBACK);
112112

113-
ecma_property_t* prop_p = ecma_find_internal_property (obj_p, id);
113+
ecma_property_t *prop_p = ecma_find_internal_property (obj_p, id);
114114

115115
if (prop_p == NULL)
116116
{

jerry-core/ecma/base/ecma-helpers-string.cpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ ecma_new_chars_collection (const lit_utf8_byte_t chars_buffer[], /**< utf-8 char
6969
JERRY_ASSERT (chars_buffer != NULL);
7070
JERRY_ASSERT (chars_size > 0);
7171

72-
ecma_collection_header_t* collection_p = ecma_alloc_collection_header ();
72+
ecma_collection_header_t *collection_p = ecma_alloc_collection_header ();
7373

7474
collection_p->unit_number = chars_size;
7575

76-
mem_cpointer_t* next_chunk_cp_p = &collection_p->first_chunk_cp;
76+
mem_cpointer_t *next_chunk_cp_p = &collection_p->first_chunk_cp;
7777
lit_utf8_byte_t *cur_char_buf_iter_p = NULL;
7878
lit_utf8_byte_t *cur_char_buf_end_p = NULL;
7979

@@ -166,8 +166,8 @@ ecma_get_chars_collection_length (const ecma_collection_header_t *header_p) /**<
166166
* false - otherwise.
167167
*/
168168
static bool
169-
ecma_compare_chars_collection (const ecma_collection_header_t* header1_p, /**< first collection's header */
170-
const ecma_collection_header_t* header2_p) /**< second collection's header */
169+
ecma_compare_chars_collection (const ecma_collection_header_t *header1_p, /**< first collection's header */
170+
const ecma_collection_header_t *header2_p) /**< second collection's header */
171171
{
172172
JERRY_ASSERT (header1_p != NULL && header2_p != NULL);
173173

@@ -224,14 +224,14 @@ ecma_compare_chars_collection (const ecma_collection_header_t* header1_p, /**< f
224224
* @return pointer to collection copy
225225
*/
226226
static ecma_collection_header_t*
227-
ecma_copy_chars_collection (const ecma_collection_header_t* collection_p) /**< collection's header */
227+
ecma_copy_chars_collection (const ecma_collection_header_t *collection_p) /**< collection's header */
228228
{
229229
JERRY_ASSERT (collection_p != NULL);
230230

231231
ecma_collection_header_t *new_header_p = ecma_alloc_collection_header ();
232232
*new_header_p = *collection_p;
233233

234-
mem_cpointer_t* next_chunk_cp_p = &new_header_p->first_chunk_cp;
234+
mem_cpointer_t *next_chunk_cp_p = &new_header_p->first_chunk_cp;
235235

236236
ecma_collection_chunk_t *chunk_p = ECMA_GET_POINTER (ecma_collection_chunk_t,
237237
collection_p->first_chunk_cp);
@@ -297,7 +297,7 @@ ecma_copy_chars_collection_to_buffer (const ecma_collection_header_t *collection
297297
* Free the collection of ecma-chars.
298298
*/
299299
static void
300-
ecma_free_chars_collection (ecma_collection_header_t* collection_p) /**< collection's header */
300+
ecma_free_chars_collection (ecma_collection_header_t *collection_p) /**< collection's header */
301301
{
302302
JERRY_ASSERT (collection_p != NULL);
303303

@@ -434,7 +434,7 @@ ecma_new_ecma_string_from_utf8 (const lit_utf8_byte_t *string_p, /**< utf-8 stri
434434

435435
JERRY_ASSERT (string_size > 0);
436436

437-
ecma_string_t* string_desc_p = ecma_alloc_string ();
437+
ecma_string_t *string_desc_p = ecma_alloc_string ();
438438
string_desc_p->refs = 1;
439439
string_desc_p->is_stack_var = false;
440440
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 */
516516
return ecma_get_magic_string_ex (magic_string_ex_id);
517517
}
518518

519-
ecma_string_t* string_desc_p = ecma_alloc_string ();
519+
ecma_string_t *string_desc_p = ecma_alloc_string ();
520520
string_desc_p->refs = 1;
521521
string_desc_p->is_stack_var = false;
522522
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
550550
ecma_string_t*
551551
ecma_new_ecma_string_from_lit_cp (lit_cpointer_t lit_cp) /**< index in the literal table */
552552
{
553-
ecma_string_t* string_desc_p = ecma_alloc_string ();
553+
ecma_string_t *string_desc_p = ecma_alloc_string ();
554554

555555
ecma_init_ecma_string_from_lit_cp (string_desc_p, lit_cp, false);
556556

@@ -578,7 +578,7 @@ ecma_new_ecma_string_from_magic_string_id (lit_magic_string_id_t id) /**< identi
578578
{
579579
JERRY_ASSERT (id < LIT_MAGIC_STRING__COUNT);
580580

581-
ecma_string_t* string_desc_p = ecma_alloc_string ();
581+
ecma_string_t *string_desc_p = ecma_alloc_string ();
582582
ecma_init_ecma_string_from_magic_string_id (string_desc_p, id, false);
583583

584584
return string_desc_p;
@@ -594,7 +594,7 @@ ecma_new_ecma_string_from_magic_string_ex_id (lit_magic_string_ex_id_t id) /**<
594594
{
595595
JERRY_ASSERT (id < lit_get_magic_string_ex_count ());
596596

597-
ecma_string_t* string_desc_p = ecma_alloc_string ();
597+
ecma_string_t *string_desc_p = ecma_alloc_string ();
598598
ecma_init_ecma_string_from_magic_string_ex_id (string_desc_p, id, false);
599599

600600
return string_desc_p;

jerry-core/ecma/base/ecma-helpers-value.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ ecma_make_simple_value (const ecma_simple_value_t value) /**< simple value */
237237
* Number value constructor
238238
*/
239239
ecma_value_t __attr_const___
240-
ecma_make_number_value (const ecma_number_t* num_p) /**< number to reference in value */
240+
ecma_make_number_value (const ecma_number_t *num_p) /**< number to reference in value */
241241
{
242242
JERRY_ASSERT (num_p != NULL);
243243

@@ -256,7 +256,7 @@ ecma_make_number_value (const ecma_number_t* num_p) /**< number to reference in
256256
* String value constructor
257257
*/
258258
ecma_value_t __attr_const___
259-
ecma_make_string_value (const ecma_string_t* ecma_string_p) /**< string to reference in value */
259+
ecma_make_string_value (const ecma_string_t *ecma_string_p) /**< string to reference in value */
260260
{
261261
JERRY_ASSERT (ecma_string_p != NULL);
262262

@@ -275,7 +275,7 @@ ecma_make_string_value (const ecma_string_t* ecma_string_p) /**< string to refer
275275
* object value constructor
276276
*/
277277
ecma_value_t __attr_const___
278-
ecma_make_object_value (const ecma_object_t* object_p) /**< object to reference in value */
278+
ecma_make_object_value (const ecma_object_t *object_p) /**< object to reference in value */
279279
{
280280
JERRY_ASSERT (object_p != NULL);
281281

@@ -295,7 +295,7 @@ ecma_make_object_value (const ecma_object_t* object_p) /**< object to reference
295295
*
296296
* @return the pointer
297297
*/
298-
ecma_number_t* __attr_pure___
298+
ecma_number_t *__attr_pure___
299299
ecma_get_number_from_value (ecma_value_t value) /**< ecma-value */
300300
{
301301
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 */
309309
*
310310
* @return the pointer
311311
*/
312-
ecma_string_t* __attr_pure___
312+
ecma_string_t *__attr_pure___
313313
ecma_get_string_from_value (ecma_value_t value) /**< ecma-value */
314314
{
315315
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 */
323323
*
324324
* @return the pointer
325325
*/
326-
ecma_object_t* __attr_pure___
326+
ecma_object_t *__attr_pure___
327327
ecma_get_object_from_value (ecma_value_t value) /**< ecma-value */
328328
{
329329
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) /**<
648648
*
649649
* @return pointer
650650
*/
651-
ecma_number_t* __attr_const___
651+
ecma_number_t *__attr_const___
652652
ecma_get_number_from_completion_value (ecma_completion_value_t completion_value) /**< completion value */
653653
{
654654
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)
659659
*
660660
* @return pointer
661661
*/
662-
ecma_string_t* __attr_const___
662+
ecma_string_t *__attr_const___
663663
ecma_get_string_from_completion_value (ecma_completion_value_t completion_value) /**< completion value */
664664
{
665665
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)
670670
*
671671
* @return pointer
672672
*/
673-
ecma_object_t* __attr_const___
673+
ecma_object_t *__attr_const___
674674
ecma_get_object_from_completion_value (ecma_completion_value_t completion_value) /**< completion value */
675675
{
676676
return ecma_get_object_from_value (ecma_get_completion_value_value (completion_value));

jerry-core/ecma/base/ecma-helpers.cpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ ecma_set_object_type (ecma_object_t *object_p, /**< object */
258258
/**
259259
* Get object's prototype.
260260
*/
261-
ecma_object_t* __attr_pure___
261+
ecma_object_t *__attr_pure___
262262
ecma_get_object_prototype (const ecma_object_t *object_p) /**< object */
263263
{
264264
JERRY_ASSERT (object_p != NULL);
@@ -331,7 +331,7 @@ ecma_get_lex_env_type (const ecma_object_t *object_p) /**< lexical environment *
331331
/**
332332
* Get outer reference of lexical environment.
333333
*/
334-
ecma_object_t* __attr_pure___
334+
ecma_object_t *__attr_pure___
335335
ecma_get_lex_env_outer_reference (const ecma_object_t *object_p) /**< lexical environment */
336336
{
337337
JERRY_ASSERT (object_p != NULL);
@@ -351,7 +351,7 @@ ecma_get_lex_env_outer_reference (const ecma_object_t *object_p) /**< lexical en
351351
* See also:
352352
* ecma_op_object_get_property_names
353353
*/
354-
ecma_property_t* __attr_pure___
354+
ecma_property_t *__attr_pure___
355355
ecma_get_property_list (const ecma_object_t *object_p) /**< object or lexical environment */
356356
{
357357
JERRY_ASSERT (object_p != NULL);
@@ -410,7 +410,7 @@ ecma_get_lex_env_provide_this (const ecma_object_t *object_p) /**< object-bound
410410
/**
411411
* Get lexical environment's bound object.
412412
*/
413-
ecma_object_t* __attr_pure___
413+
ecma_object_t *__attr_pure___
414414
ecma_get_lex_env_binding_object (const ecma_object_t *object_p) /**< object-bound lexical environment */
415415
{
416416
JERRY_ASSERT (object_p != NULL);
@@ -1042,7 +1042,7 @@ ecma_get_named_accessor_property_setter (const ecma_property_t *prop_p) /**< nam
10421042
* Set getter of named accessor property
10431043
*/
10441044
void
1045-
ecma_set_named_accessor_property_getter (ecma_object_t* object_p, /**< the property's container */
1045+
ecma_set_named_accessor_property_getter (ecma_object_t *object_p, /**< the property's container */
10461046
ecma_property_t *prop_p, /**< named accessor property */
10471047
ecma_object_t *getter_p) /**< getter object */
10481048
{
@@ -1060,7 +1060,7 @@ ecma_set_named_accessor_property_getter (ecma_object_t* object_p, /**< the prope
10601060
* Set setter of named accessor property
10611061
*/
10621062
void
1063-
ecma_set_named_accessor_property_setter (ecma_object_t* object_p, /**< the property's container */
1063+
ecma_set_named_accessor_property_setter (ecma_object_t *object_p, /**< the property's container */
10641064
ecma_property_t *prop_p, /**< named accessor property */
10651065
ecma_object_t *setter_p) /**< setter object */
10661066
{
@@ -1081,7 +1081,7 @@ ecma_set_named_accessor_property_setter (ecma_object_t* object_p, /**< the prope
10811081
* false - otherwise.
10821082
*/
10831083
bool
1084-
ecma_is_property_writable (ecma_property_t* prop_p) /**< property */
1084+
ecma_is_property_writable (ecma_property_t *prop_p) /**< property */
10851085
{
10861086
JERRY_ASSERT (prop_p->type == ECMA_PROPERTY_NAMEDDATA);
10871087

@@ -1092,7 +1092,7 @@ ecma_is_property_writable (ecma_property_t* prop_p) /**< property */
10921092
* Set property's 'Writable' attribute value
10931093
*/
10941094
void
1095-
ecma_set_property_writable_attr (ecma_property_t* prop_p, /**< property */
1095+
ecma_set_property_writable_attr (ecma_property_t *prop_p, /**< property */
10961096
bool is_writable) /**< should the property
10971097
* be writable? */
10981098
{
@@ -1108,7 +1108,7 @@ ecma_set_property_writable_attr (ecma_property_t* prop_p, /**< property */
11081108
* false - otherwise.
11091109
*/
11101110
bool
1111-
ecma_is_property_enumerable (ecma_property_t* prop_p) /**< property */
1111+
ecma_is_property_enumerable (ecma_property_t *prop_p) /**< property */
11121112
{
11131113
if (prop_p->type == ECMA_PROPERTY_NAMEDDATA)
11141114
{
@@ -1126,7 +1126,7 @@ ecma_is_property_enumerable (ecma_property_t* prop_p) /**< property */
11261126
* Set property's 'Enumerable' attribute value
11271127
*/
11281128
void
1129-
ecma_set_property_enumerable_attr (ecma_property_t* prop_p, /**< property */
1129+
ecma_set_property_enumerable_attr (ecma_property_t *prop_p, /**< property */
11301130
bool is_enumerable) /**< should the property
11311131
* be enumerable? */
11321132
{
@@ -1151,7 +1151,7 @@ ecma_set_property_enumerable_attr (ecma_property_t* prop_p, /**< property */
11511151
* false - otherwise.
11521152
*/
11531153
bool
1154-
ecma_is_property_configurable (ecma_property_t* prop_p) /**< property */
1154+
ecma_is_property_configurable (ecma_property_t *prop_p) /**< property */
11551155
{
11561156
if (prop_p->type == ECMA_PROPERTY_NAMEDDATA)
11571157
{
@@ -1169,7 +1169,7 @@ ecma_is_property_configurable (ecma_property_t* prop_p) /**< property */
11691169
* Set property's 'Configurable' attribute value
11701170
*/
11711171
void
1172-
ecma_set_property_configurable_attr (ecma_property_t* prop_p, /**< property */
1172+
ecma_set_property_configurable_attr (ecma_property_t *prop_p, /**< property */
11731173
bool is_configurable) /**< should the property
11741174
* be configurable? */
11751175
{

jerry-core/ecma/base/ecma-lcache.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ ecma_lcache_insert (ecma_object_t *object_p, /**< object */
180180
&& ecma_lcache_hash_table[hash_key][entry_index].prop_cp == prop_cp)
181181
{
182182
#ifndef JERRY_NDEBUG
183-
ecma_object_t* obj_in_entry_p;
183+
ecma_object_t *obj_in_entry_p;
184184
obj_in_entry_p = ECMA_GET_NON_NULL_POINTER (ecma_object_t,
185185
ecma_lcache_hash_table[hash_key][entry_index].object_cp);
186186
JERRY_ASSERT (obj_in_entry_p == object_p);

jerry-core/ecma/builtin-objects/ecma-builtin-function-prototype.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ ecma_builtin_function_prototype_object_apply (ecma_value_t this_arg, /**< this a
174174
*/
175175
static ecma_completion_value_t
176176
ecma_builtin_function_prototype_object_call (ecma_value_t this_arg, /**< this argument */
177-
const ecma_value_t* arguments_list_p, /**< list of arguments */
177+
const ecma_value_t *arguments_list_p, /**< list of arguments */
178178
ecma_length_t arguments_number) /**< number of arguments */
179179
{
180180
if (!ecma_op_is_callable (this_arg))
@@ -212,7 +212,7 @@ ecma_builtin_function_prototype_object_call (ecma_value_t this_arg, /**< this ar
212212
*/
213213
static ecma_completion_value_t
214214
ecma_builtin_function_prototype_object_bind (ecma_value_t this_arg, /**< this argument */
215-
const ecma_value_t* arguments_list_p, /**< list of arguments */
215+
const ecma_value_t *arguments_list_p, /**< list of arguments */
216216
ecma_length_t arguments_number) /**< number of arguments */
217217
{
218218
ecma_completion_value_t ret_value = ecma_make_empty_completion_value ();
@@ -368,7 +368,7 @@ ecma_builtin_function_prototype_object_bind (ecma_value_t this_arg, /**< this ar
368368
* @return completion-value
369369
*/
370370
ecma_completion_value_t
371-
ecma_builtin_function_prototype_dispatch_call (const ecma_value_t* arguments_list_p, /**< arguments list */
371+
ecma_builtin_function_prototype_dispatch_call (const ecma_value_t *arguments_list_p, /**< arguments list */
372372
ecma_length_t arguments_list_len) /**< number of arguments */
373373
{
374374
JERRY_ASSERT (arguments_list_len == 0 || arguments_list_p != NULL);

jerry-core/ecma/builtin-objects/ecma-builtin-helpers-date.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ ecma_date_daylight_saving_ta (ecma_number_t time) /**< time value */
486486
* ECMA-262 v5, 15.9.1.9
487487
*
488488
* Used by:
489-
* - All Date.prototype.getUTC* routines. (Generated.)
489+
* - All Date.prototype.getUTC routines. (Generated.)
490490
* - The Date.prototype.getTimezoneOffset routine.
491491
* - The Date.prototype.setMilliseconds routine.
492492
* - The Date.prototype.setSeconds routine.
@@ -873,7 +873,7 @@ ecma_date_timezone_offset (ecma_number_t time) /**< time value */
873873
* Helper function to set Date internal property.
874874
*
875875
* Used by:
876-
* - All Date.prototype.set* routine except Date.prototype.setTime.
876+
* - All Date.prototype.set *routine except Date.prototype.setTime.
877877
*
878878
* @return completion value containing the new internal time value
879879
* Returned value must be freed with ecma_free_completion_value.

jerry-core/ecma/builtin-objects/ecma-builtin-number-prototype.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ ecma_builtin_number_prototype_helper_round (uint64_t digits, /**< actual number
8686
*/
8787
static ecma_completion_value_t
8888
ecma_builtin_number_prototype_object_to_string (ecma_value_t this_arg, /**< this argument */
89-
const ecma_value_t* arguments_list_p, /**< arguments list */
89+
const ecma_value_t *arguments_list_p, /**< arguments list */
9090
ecma_length_t arguments_list_len) /**< number of arguments */
9191
{
9292
ecma_completion_value_t ret_value = ecma_make_empty_completion_value ();
@@ -307,7 +307,7 @@ ecma_builtin_number_prototype_object_to_string (ecma_value_t this_arg, /**< this
307307
}
308308

309309
JERRY_ASSERT (buff_index <= buff_size);
310-
ecma_string_t* str_p = ecma_new_ecma_string_from_utf8 (buff, (lit_utf8_size_t) buff_index);
310+
ecma_string_t *str_p = ecma_new_ecma_string_from_utf8 (buff, (lit_utf8_size_t) buff_index);
311311
ret_value = ecma_make_normal_completion_value (ecma_make_string_value (str_p));
312312
MEM_FINALIZE_LOCAL_ARRAY (buff);
313313
}
@@ -559,7 +559,7 @@ ecma_builtin_number_prototype_object_to_fixed (ecma_value_t this_arg, /**< this
559559
JERRY_ASSERT (p - buff < buffer_size);
560560
/* String terminator. */
561561
*p = 0;
562-
ecma_string_t* str = ecma_new_ecma_string_from_utf8 (buff, (lit_utf8_size_t) (p - buff));
562+
ecma_string_t *str = ecma_new_ecma_string_from_utf8 (buff, (lit_utf8_size_t) (p - buff));
563563

564564
ret_value = ecma_make_normal_completion_value (ecma_make_string_value (str));
565565
MEM_FINALIZE_LOCAL_ARRAY (buff);

jerry-core/ecma/builtin-objects/ecma-builtin-object.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ ecma_builtin_object_object_get_own_property_descriptor (ecma_value_t this_arg __
604604
ecma_property_descriptor_t prop_desc = ecma_get_property_descriptor_from_property (prop_p);
605605

606606
// 4.
607-
ecma_object_t* desc_obj_p = ecma_op_from_property_descriptor (&prop_desc);
607+
ecma_object_t *desc_obj_p = ecma_op_from_property_descriptor (&prop_desc);
608608

609609
ecma_free_property_descriptor (&prop_desc);
610610

jerry-core/ecma/builtin-objects/ecma-builtin-string-prototype.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ ecma_builtin_string_prototype_object_char_code_at (ecma_value_t this_arg, /**< t
241241
*/
242242
static ecma_completion_value_t
243243
ecma_builtin_string_prototype_object_concat (ecma_value_t this_arg, /**< this argument */
244-
const ecma_value_t* argument_list_p, /**< arguments list */
244+
const ecma_value_t *argument_list_p, /**< arguments list */
245245
ecma_length_t arguments_number) /**< number of arguments */
246246
{
247247
ecma_completion_value_t ret_value = ecma_make_empty_completion_value ();

0 commit comments

Comments
 (0)