Skip to content

Commit a617217

Browse files
author
Sascha Schumann
committed
Replace macros which begin with an underscore through an appropiately
named macro.
1 parent 0db7994 commit a617217

14 files changed

+33
-33
lines changed

Zend/FlexLexer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@
4141
// #include <FlexLexer.h>
4242
// ...
4343

44-
#ifndef __FLEX_LEXER_H
44+
#ifndef FLEXLEXER_H
4545
// Never included before - need to define base class.
46-
#define __FLEX_LEXER_H
46+
#define FLEXLEXER_H
4747
#include <iostream.h>
4848

4949
extern "C++" {

Zend/zend-scanner.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
*/
1919

2020

21-
#ifndef _LANGUAGE_SCANNER_H
22-
#define _LANGUAGE_SCANNER_H
21+
#ifndef ZEND_SCANNER_H
22+
#define ZEND_SCANNER_H
2323

2424
#ifdef ZTS
2525
class ZendFlexLexer : public yyFlexLexer

Zend/zend_alloc.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
*/
1919

2020

21-
#ifndef _ALLOC_H
22-
#define _ALLOC_H
21+
#ifndef ZEND_ALLOC_H
22+
#define ZEND_ALLOC_H
2323

2424
#include <stdio.h>
2525

Zend/zend_compile.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
*/
1919

2020

21-
#ifndef _COMPILE_H
22-
#define _COMPILE_H
21+
#ifndef ZEND_COMPILE_H
22+
#define ZEND_COMPILE_H
2323

2424
#include "zend.h"
2525

@@ -624,4 +624,4 @@ int zendlex(znode *zendlval CLS_DC);
624624

625625
END_EXTERN_C()
626626

627-
#endif /* _COMPILE_H */
627+
#endif /* ZEND_COMPILE_H */

Zend/zend_constants.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
*/
1919

2020

21-
#ifndef _CONSTANTS_H
22-
#define _CONSTANTS_H
21+
#ifndef ZEND_CONSTANTS_H
22+
#define ZEND_CONSTANTS_H
2323

2424
#include "zend_globals.h"
2525

Zend/zend_dynamic_array.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
*/
1919

2020

21-
#ifndef _DYNAMIC_ARRAY_H
22-
#define _DYNAMIC_ARRAY_H
21+
#ifndef ZEND_DYNAMIC_ARRAY_H
22+
#define ZEND_DYNAMIC_ARRAY_H
2323

2424
typedef struct _dynamic_array {
2525
char *array;

Zend/zend_execute.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
*/
1919

2020

21-
#ifndef _EXECUTE_H
22-
#define _EXECUTE_H
21+
#ifndef ZEND_EXECUTE_H
22+
#define ZEND_EXECUTE_H
2323

2424
#include "zend_compile.h"
2525
#include "zend_hash.h"
@@ -229,4 +229,4 @@ ZEND_API inline void zend_assign_to_variable_reference(znode *result, zval **var
229229
#define IS_OVERLOADED_OBJECT 1
230230
#define IS_STRING_OFFSET 2
231231

232-
#endif /* _EXECUTE_H */
232+
#endif /* ZEND_EXECUTE_H */

Zend/zend_globals.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
*/
1919

2020

21-
#ifndef _T_GLOBALS_H
22-
#define _T_GLOBALS_H
21+
#ifndef ZEND_GLOBALS_H
22+
#define ZEND_GLOBALS_H
2323

2424

2525
#include <setjmp.h>
@@ -217,4 +217,4 @@ struct _zend_alloc_globals {
217217
#endif
218218
};
219219

220-
#endif /* _T_GLOBALS_H */
220+
#endif /* ZEND_GLOBALS_H */

Zend/zend_hash.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
+----------------------------------------------------------------------+
1818
*/
1919

20-
#ifndef _HASH_
21-
#define _HASH_
20+
#ifndef ZEND_HASH_H
21+
#define ZEND_HASH_H
2222

2323
#include <sys/types.h>
2424

@@ -193,4 +193,4 @@ END_EXTERN_C()
193193
zend_hash_init(ht, n, NULL, ZVAL_PTR_DTOR, persistent)
194194

195195

196-
#endif /* _HASH_ */
196+
#endif /* ZEND_HASH_H */

Zend/zend_highlight.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
*/
1919

2020

21-
#ifndef _HIGHLIGHT_H
22-
#define _HIGHLIGHT_H
21+
#ifndef ZEND_HIGHLIGHT_H
22+
#define ZEND_HIGHLIGHT_H
2323

2424
#define HL_COMMENT_COLOR "#FF8000" /* orange */
2525
#define HL_DEFAULT_COLOR "#0000BB" /* blue */

Zend/zend_list.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
*/
1919

2020

21-
#ifndef _LIST_H
22-
#define _LIST_H
21+
#ifndef ZEND_LIST_H
22+
#define ZEND_LIST_H
2323

2424
#include "zend_hash.h"
2525
#include "zend_globals.h"

Zend/zend_operators.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
*/
1919

2020

21-
#ifndef _OPERATORS_H
22-
#define _OPERATORS_H
21+
#ifndef ZEND_OPERATORS_H
22+
#define ZEND_OPERATORS_H
2323

2424
#include <errno.h>
2525
#include <math.h>

Zend/zend_static_allocator.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
+----------------------------------------------------------------------+
1717
*/
1818

19-
#ifndef _STATIC_ALLOCATOR_H
20-
#define _STATIC_ALLOCATOR_H
19+
#ifndef ZEND_STATIC_ALLOCATOR_H
20+
#define ZEND_STATIC_ALLOCATOR_H
2121

2222
#define ALLOCATOR_BLOCK_SIZE 400000
2323

@@ -42,4 +42,4 @@ void static_allocator_init(StaticAllocator *sa);
4242
char *static_allocator_allocate(StaticAllocator *sa, zend_uint size);
4343
void static_allocator_destroy(StaticAllocator *sa);
4444

45-
#endif /* _STATIC_ALLOCATOR_H */
45+
#endif /* ZEND_STATIC_ALLOCATOR_H */

Zend/zend_variables.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
*/
1919

2020

21-
#ifndef _VARIABLES_H
22-
#define _VARIABLES_H
21+
#ifndef ZEND_VARIABLES_H
22+
#define ZEND_VARIABLES_H
2323

2424

2525
ZEND_API int zend_print_variable(zval *var);

0 commit comments

Comments
 (0)