Skip to content

Commit 16017f6

Browse files
author
Sascha Schumann
committed
Change header protection macros to conform to standard.
Draft 3 of IEEE 1003.1 200x, "2.2 The Compilation Environment" All identifiers that begin with an underscore and either an uppercase letter or another underscore are always reserved for any use by the implementation.
1 parent 8adf849 commit 16017f6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+263
-260
lines changed

ext/bcmath/php_bcmath.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030

3131
/* $Id$ */
3232

33-
#ifndef _PHP_BCMATH_H
34-
#define _PHP_BCMATH_H
33+
#ifndef PHP_BCMATH_H
34+
#define PHP_BCMATH_H
3535

3636
#if WITH_BCMATH
3737

@@ -56,4 +56,4 @@ PHP_FUNCTION(bcscale);
5656

5757
#endif
5858

59-
#endif /* _PHP_BCMATH_H */
59+
#endif /* PHP_BCMATH_H */

ext/calendar/sdncal.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef _INCLUDED_SDNCAL_H
2-
#define _INCLUDED_SDNCAL_H
1+
#ifndef SDNCAL_H
2+
#define SDNCAL_H
33
/*
44
* This code has been modified for use with PHP
55
* by Shane Caraveo [email protected]
@@ -93,4 +93,4 @@ int DayOfWeek(long int sdn);
9393
extern char *DayNameShort[7];
9494
extern char *DayNameLong[7];
9595

96-
#endif /* _INCLUDED_SDNCAL_H */
96+
#endif /* SDNCAL_H */

ext/com/php_COM.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef _PHP_COM_H
2-
#define _PHP_COM_H
1+
#ifndef PHP_COM_H
2+
#define PHP_COM_H
33

44
#if WIN32|WINNT
55

@@ -21,4 +21,4 @@ extern zend_module_entry COM_module_entry;
2121

2222
#define phpext_COM_ptr COM_module_ptr
2323

24-
#endif /* _PHP_COM_H */
24+
#endif /* PHP_COM_H */

ext/cpdf/php_cpdf.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
*/
2929
/* $Id$ */
3030

31-
#ifndef _PHP_CPDF_H
32-
#define _PHP_CPDF_H
31+
#ifndef PHP_CPDF_H
32+
#define PHP_CPDF_H
3333

3434
#if HAVE_CPDFLIB
3535

ext/cybercash/cybercash.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
+----------------------------------------------------------------------+
2828
*/
2929

30-
#ifndef _CYBERCASH_H
31-
#define _CYBERCASH_H
30+
#ifndef CYBERCASH_H
31+
#define CYBERCASH_H
3232

3333

3434
#if HAVE_MCK

ext/dav/php_dav.h

+8-8
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@
2929

3030
/* $Id */
3131

32-
#ifndef _PHP_DAV_H
33-
# define _PHP_DAV_H
32+
#ifndef PHP_DAV_H
33+
#define PHP_DAV_H
3434

35-
# if HAVE_MOD_DAV
35+
#if HAVE_MOD_DAV
3636

3737
typedef struct {
3838
int foo;
@@ -41,21 +41,21 @@ typedef struct {
4141
} phpdav_module;
4242

4343
extern zend_module_entry phpdav_module_entry;
44-
# define phpdav_module_ptr &phpdav_module_entry
44+
#define phpdav_module_ptr &phpdav_module_entry
4545

4646
int phpdav_mkcol_test_handler(request_rec *);
4747

4848
PHP_FUNCTION(dav_set_mkcol_handlers);
4949

50-
# else /* !HAVE_MOD_DAV */
50+
#else /* !HAVE_MOD_DAV */
5151

52-
# define phpdav_module_ptr NULL
52+
#define phpdav_module_ptr NULL
5353

54-
# endif /* HAVE_MOD_DAV */
54+
#endif /* HAVE_MOD_DAV */
5555

5656
#define phpext_dav_ptr phpdav_module_ptr
5757

58-
#endif /* _PHP_DAV_H */
58+
#endif /* PHP_DAV_H */
5959

6060

6161
/*

ext/db/php_db.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
/* $Id$ */
3232

3333

34-
#ifndef _PHP_DB_H
35-
#define _PHP_DB_H
34+
#ifndef PHP_DB_H
35+
#define PHP_DB_H
3636

3737

3838
#ifndef DLEXPORT
@@ -89,4 +89,4 @@ PHP_FUNCTION(dbmdelete);
8989
PHP_FUNCTION(dbmfirstkey);
9090
PHP_FUNCTION(dbmnextkey);
9191

92-
#endif /* _PHP_DB_H */
92+
#endif /* PHP_DB_H */

ext/dba/php_cdb.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef _PHP_CDB_H
2-
#define _PHP_CDB_H
1+
#ifndef PHP_CDB_H
2+
#define PHP_CDB_H
33

44
#if DBA_CDB
55

ext/dba/php_db2.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef _PHP_DB2_H
2-
#define _PHP_DB2_H
1+
#ifndef PHP_DB2_H
2+
#define PHP_DB2_H
33

44
#if DBA_DB2
55

ext/dba/php_db3.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef _PHP_DB3_H
2-
#define _PHP_DB3_H
1+
#ifndef PHP_DB3_H
2+
#define PHP_DB3_H
33

44
#if DBA_DB3
55

ext/dba/php_dbm.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef _PHP_DBM_H
2-
#define _PHP_DBM_H
1+
#ifndef PHP_DBM_H
2+
#define PHP_DBM_H
33

44
#if DBA_DBM
55

ext/dba/php_gdbm.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef _PHP_GDBM_H
2-
#define _PHP_GDBM_H
1+
#ifndef PHP_GDBM_H
2+
#define PHP_GDBM_H
33

44
#if DBA_GDBM
55

ext/dba/php_ndbm.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef _PHP_NDBM_H
2-
#define _PHP_NDBM_H
1+
#ifndef PHP_NDBM_H
2+
#define PHP_NDBM_H
33

44
#if DBA_NDBM
55

ext/dbase/dbf.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
* (c) 1986 John Wiley & Sons, Inc.
1414
*/
1515

16-
#ifndef _DBF_H_
17-
#define _DBF_H_
16+
#ifndef DBF_H_
17+
#define DBF_H_
1818

1919
#include <stdlib.h>
2020
#include <string.h>
@@ -91,4 +91,4 @@ typedef struct db_head dbhead_t;
9191
#include "dbf_misc.h"
9292
#include "dbf_rec.h"
9393

94-
#endif /* _DBF_H_ */
94+
#endif /* DBF_H_ */

ext/dbase/dbf_ndx.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
* by Rick Spence
1313
*/
1414

15-
#ifndef _DBF_NDX_H_
16-
#define _DBF_NDX_H_
15+
#ifndef DBF_NDX_H_
16+
#define DBF_NDX_H_
1717

1818
#include "dbf.h"
1919

@@ -95,4 +95,4 @@ extern ndx_header_t *ndx_get_header(int);
9595
extern ndx_record_t *ndx_get_first_rec(ndx_header_t *);
9696
extern ndx_record_t *ndx_get_next_rec(ndx_header_t *, ndx_record_t *);
9797

98-
#endif /* _DBF_NDX_H_ */
98+
#endif /* DBF_NDX_H_ */

ext/domxml/php_domxml.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131

3232
/* $Id$ */
3333

34-
#ifndef _PHP_DOMXML_H
35-
#define _PHP_DOMXML_H
34+
#ifndef PHP_DOMXML_H
35+
#define PHP_DOMXML_H
3636

3737
#if HAVE_DOMXML
3838
#include <libxml/parser.h>

ext/ereg/php_ereg.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030

3131
/* $Id$ */
3232

33-
#ifndef _REG_H
34-
#define _REG_H
33+
#ifndef REG_H
34+
#define REG_H
3535

3636
char *php_reg_replace(const char *pattern, const char *replace, const char *string, int icase, int extended);
3737

@@ -68,4 +68,4 @@ PHP_MINFO_FUNCTION(regex);
6868
#define REGLS_FETCH()
6969
#endif
7070

71-
#endif /* _REG_H */
71+
#endif /* REG_H */

ext/ereg/php_regex.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef _PHP_REGEX_H
2-
#define _PHP_REGEX_H
1+
#ifndef PHP_REGEX_H
2+
#define PHP_REGEX_H
33

44
/*
55
* REGEX means:
@@ -39,4 +39,4 @@
3939
#endif
4040
#endif
4141

42-
#endif /* _PHP_REGEX_H */
42+
#endif /* PHP_REGEX_H */

ext/fdf/php_fdf.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
*/
2929
/* $Id$ */
3030

31-
#ifndef _PHP_FDF_H
32-
#define _PHP_FDF_H
31+
#ifndef PHP_FDF_H
32+
#define PHP_FDF_H
3333

3434
#if HAVE_FDFLIB
3535
#if WIN32|WINNT
@@ -62,4 +62,4 @@ PHP_FUNCTION(fdf_add_template);
6262
#else
6363
#define phpext_fdf_ptr NULL
6464
#endif
65-
#endif /* _PHP_FDF_H */
65+
#endif /* PHP_FDF_H */

ext/ftp/ftp.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030

3131
/* $Id$ */
3232

33-
#ifndef _FTP_H
34-
#define _FTP_H
33+
#ifndef FTP_H
34+
#define FTP_H
3535

3636
#include <stdio.h>
3737
#ifdef HAVE_NETINET_IN_H

ext/gd/php_gd.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131

3232
/* $Id$ */
3333

34-
#ifndef _PHP_GD_H
35-
#define _PHP_GD_H
34+
#ifndef PHP_GD_H
35+
#define PHP_GD_H
3636

3737
#define HAVE_GDIMAGECREATEFROMPNG 1
3838

@@ -159,4 +159,4 @@ static void _php_image_output_wbmp(gdImagePtr im, FILE *fp);
159159

160160
#endif
161161

162-
#endif /* _PHP_GD_H */
162+
#endif /* PHP_GD_H */

ext/hyperwave/debug.h

+6-3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
* -----------------
1818
*
1919
* $Log$
20+
* Revision 1.1 1999/04/21 23:37:47 ssb
21+
* moved db
22+
*
2023
* Revision 1.1.1.1 1999/04/07 21:03:29 zeev
2124
* PHP 4.0
2225
*
@@ -49,8 +52,8 @@
4952
*
5053
****************************************************************************/
5154

52-
#ifndef __DEBUG_H
53-
#define __DEBUG_H
55+
#ifndef DEBUG_H
56+
#define DEBUG_H
5457

5558
#ifdef DEBUG
5659
# define D(x) x
@@ -191,4 +194,4 @@ typedef int bool;
191194
#define NO 0
192195
#define YES 1
193196

194-
#endif __DEBUG_H
197+
#endif /* DEBUG_H */

ext/hyperwave/hg_comm.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525

2626
/* $Id$ */
2727

28-
#ifndef _HG_COMM_H
29-
#define _HG_COMM_H
28+
#ifndef HG_COMM_H
29+
#define HG_COMM_H
3030

3131
#if HYPERWAVE
3232

ext/hyperwave/hw_error.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424

2525

2626
/* $Id$ */
27-
#ifndef _HW_ERROR_H
28-
#define _HW_ERROR_H
27+
#ifndef HW_ERROR_H
28+
#define HW_ERROR_H
2929

3030
#if HYPERWAVE
3131

ext/ldap/php_ldap.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131

3232
/* $Id$ */
3333

34-
#ifndef _PHP_LDAP_H
35-
#define _PHP_LDAP_H
34+
#ifndef PHP_LDAP_H
35+
#define PHP_LDAP_H
3636

3737
#include <lber.h>
3838
#include <ldap.h>
@@ -113,4 +113,4 @@ ZEND_END_MODULE_GLOBALS(ldap)
113113

114114
#define phpext_ldap_ptr ldap_module_ptr
115115

116-
#endif /* _PHP_LDAP_H */
116+
#endif /* PHP_LDAP_H */

ext/msql/php_msql.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030

3131
/* $Id$ */
3232

33-
#ifndef _PHP_MSQL_H
34-
#define _PHP_MSQL_H
33+
#ifndef PHP_MSQL_H
34+
#define PHP_MSQL_H
3535

3636
#if HAVE_MSQL
3737

@@ -91,4 +91,4 @@ typedef struct {
9191

9292
#define phpext_msql_ptr msql_module_ptr
9393

94-
#endif /* _PHP_MSQL_H */
94+
#endif /* PHP_MSQL_H */

ext/mssql/php_mssql.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919

2020
/* $Id$ */
2121

22-
#ifndef _PHP_MSSQL_H
23-
#define _PHP_MSSQL_H
22+
#ifndef PHP_MSSQL_H
23+
#define PHP_MSSQL_H
2424

2525

2626
#if HAVE_MSSQL
@@ -154,4 +154,4 @@ extern PHP_MSSQL_API php_mssql_globals mssql_globals;
154154

155155
#define phpext_mssql_ptr mssql_module_ptr
156156

157-
#endif /* _PHP_MSSQL_H */
157+
#endif /* PHP_MSSQL_H */

0 commit comments

Comments
 (0)