Skip to content

Commit 7a07e55

Browse files
committed
Unify the naming scheme of all header defines
There have been several renamings of header files but the ifndef/define/endif preprocessor directives did not always follow the file name changes (or perhaps never followed a unified naming scheme). This patch gets all headers aligned with the style of the majority. JerryScript-DCO-1.0-Signed-off-by: Akos Kiss [email protected]
1 parent a19f63f commit 7a07e55

22 files changed

+65
-65
lines changed

jerry-core/ecma/base/ecma-alloc.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
* @{
2121
*/
2222

23-
#ifndef JERRY_ECMA_ALLOC_H
24-
#define JERRY_ECMA_ALLOC_H
23+
#ifndef ECMA_ALLOC_H
24+
#define ECMA_ALLOC_H
2525

2626
#include "ecma-globals.h"
2727

@@ -122,7 +122,7 @@ extern ecma_external_pointer_t *ecma_alloc_external_pointer (void);
122122
extern void ecma_dealloc_external_pointer (ecma_external_pointer_t *);
123123

124124

125-
#endif /* JERRY_ECMA_ALLOC_H */
125+
#endif /* !ECMA_ALLOC_H */
126126

127127
/**
128128
* @}

jerry-core/ecma/base/ecma-globals.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
* @{
2121
*/
2222

23-
#ifndef JERRY_ECMA_GLOBALS_H
24-
#define JERRY_ECMA_GLOBALS_H
23+
#ifndef ECMA_GLOBALS_H
24+
#define ECMA_GLOBALS_H
2525

2626
#include "config.h"
2727
#include "jrt.h"
@@ -756,7 +756,7 @@ typedef struct
756756
* @}
757757
*/
758758

759-
#endif /* JERRY_ECMA_GLOBALS_H */
759+
#endif /* !ECMA_GLOBALS_H */
760760

761761
/**
762762
* @}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
* @{
2222
*/
2323

24-
#ifndef JERRY_ECMA_HELPERS_H
25-
#define JERRY_ECMA_HELPERS_H
24+
#ifndef ECMA_HELPERS_H
25+
#define ECMA_HELPERS_H
2626

2727
#include "ecma-globals.h"
2828
#include "lit-cpointer.h"
@@ -246,7 +246,7 @@ extern ecma_number_t ecma_int32_to_number (int32_t);
246246
extern ecma_number_t ecma_uint32_to_number (uint32_t);
247247
extern lit_utf8_size_t ecma_number_to_utf8_string (ecma_number_t, lit_utf8_byte_t *, lit_utf8_size_t);
248248

249-
#endif /* !JERRY_ECMA_HELPERS_H */
249+
#endif /* !ECMA_HELPERS_H */
250250

251251
/**
252252
* @}

jerry-core/ecma/base/ecma-init-finalize.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright 2014-2015 Samsung Electronics Co., Ltd.
1+
/* Copyright 2014-2016 Samsung Electronics Co., Ltd.
22
*
33
* Licensed under the Apache License, Version 2.0 (the "License");
44
* you may not use this file except in compliance with the License.
@@ -33,4 +33,4 @@ extern void ecma_finalize (void);
3333
* @}
3434
*/
3535

36-
#endif /* ECMA_INIT_FINALIZE_H */
36+
#endif /* !ECMA_INIT_FINALIZE_H */

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright 2014-2015 Samsung Electronics Co., Ltd.
1+
/* Copyright 2014-2016 Samsung Electronics Co., Ltd.
22
*
33
* Licensed under the Apache License, Version 2.0 (the "License");
44
* you may not use this file except in compliance with the License.
@@ -34,4 +34,4 @@ extern void ecma_lcache_invalidate (ecma_object_t *, ecma_string_t *, ecma_prope
3434
* @}
3535
*/
3636

37-
#endif /* ECMA_LCACHE_H */
37+
#endif /* !ECMA_LCACHE_H */

jerry-core/ecma/builtin-objects/ecma-builtin-helpers.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17-
#ifndef ECMA_OBJECT_PROTOTYPE_H
18-
#define ECMA_OBJECT_PROTOTYPE_H
17+
#ifndef ECMA_BUILTIN_HELPERS_H
18+
#define ECMA_BUILTIN_HELPERS_H
1919

2020
#include "ecma-globals.h"
2121

@@ -171,4 +171,4 @@ ecma_builtin_helper_json_create_non_formatted_json (ecma_string_t *, ecma_string
171171
* @}
172172
*/
173173

174-
#endif /* !ECMA_OBJECT_PROPERTY_H */
174+
#endif /* !ECMA_BUILTIN_HELPERS_H */

jerry-core/ecma/operations/ecma-comparison.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright 2014-2015 Samsung Electronics Co., Ltd.
1+
/* Copyright 2014-2016 Samsung Electronics Co., Ltd.
22
*
33
* Licensed under the Apache License, Version 2.0 (the "License");
44
* you may not use this file except in compliance with the License.
@@ -13,8 +13,8 @@
1313
* limitations under the License.
1414
*/
1515

16-
#ifndef JERRY_ECMA_COMPARISON_H
17-
#define JERRY_ECMA_COMPARISON_H
16+
#ifndef ECMA_COMPARISON_H
17+
#define ECMA_COMPARISON_H
1818

1919
#include "ecma-globals.h"
2020
#include "ecma-helpers.h"
@@ -35,4 +35,4 @@ extern ecma_value_t ecma_op_abstract_relational_compare (ecma_value_t, ecma_valu
3535
* @}
3636
*/
3737

38-
#endif /* !JERRY_ECMA_COMPARISON_H */
38+
#endif /* !ECMA_COMPARISON_H */

jerry-core/ecma/operations/ecma-conversion.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright 2014-2015 Samsung Electronics Co., Ltd.
1+
/* Copyright 2014-2016 Samsung Electronics Co., Ltd.
22
*
33
* Licensed under the Apache License, Version 2.0 (the "License");
44
* you may not use this file except in compliance with the License.
@@ -13,8 +13,8 @@
1313
* limitations under the License.
1414
*/
1515

16-
#ifndef JERRY_ECMA_CONVERSION_H
17-
#define JERRY_ECMA_CONVERSION_H
16+
#ifndef ECMA_CONVERSION_H
17+
#define ECMA_CONVERSION_H
1818

1919
#include "ecma-globals.h"
2020
#include "ecma-helpers.h"
@@ -53,4 +53,4 @@ extern ecma_value_t ecma_op_to_property_descriptor (ecma_value_t, ecma_property_
5353
* @}
5454
*/
5555

56-
#endif /* !JERRY_ECMA_CONVERSION_H */
56+
#endif /* !ECMA_CONVERSION_H */

jerry-core/ecma/operations/ecma-number-arithmetic.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright 2014 Samsung Electronics Co., Ltd.
1+
/* Copyright 2014-2016 Samsung Electronics Co., Ltd.
22
*
33
* Licensed under the Apache License, Version 2.0 (the "License");
44
* you may not use this file except in compliance with the License.
@@ -13,8 +13,8 @@
1313
* limitations under the License.
1414
*/
1515

16-
#ifndef ECMA_NUMBER_H
17-
#define ECMA_NUMBER_H
16+
#ifndef ECMA_NUMBER_ARITHMETIC_H
17+
#define ECMA_NUMBER_ARITHMETIC_H
1818

1919
#include "ecma-globals.h"
2020

@@ -34,4 +34,4 @@ extern ecma_number_t ecma_op_number_remainder (ecma_number_t, ecma_number_t);
3434
* @}
3535
*/
3636

37-
#endif /* ECMA_NUMBER_H */
37+
#endif /* !ECMA_NUMBER_ARITHMETIC_H */

jerry-core/jrt/jrt-bit-fields.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17-
#ifndef JERRY_BIT_FIELDS_H
18-
#define JERRY_BIT_FIELDS_H
17+
#ifndef JRT_BIT_FIELDS_H
18+
#define JRT_BIT_FIELDS_H
1919

2020
/**
2121
* Extract a bit-field.
@@ -42,4 +42,4 @@
4242
#define JRT_SET_BIT_FIELD_VALUE(type, container, new_bit_field_value, lsb, width) \
4343
(((container) & ~(((((type) 1) << (width)) - 1) << (lsb))) | (((type) new_bit_field_value) << (lsb)))
4444

45-
#endif /* !JERRY_BIT_FIELDS_H */
45+
#endif /* !JRT_BIT_FIELDS_H */

0 commit comments

Comments
 (0)