Skip to content

Commit

Permalink
Use #ifdef COMPILE_DL_EXTNAME solely.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sascha Schumann committed May 23, 2000
1 parent 0236982 commit 4686a3b
Show file tree
Hide file tree
Showing 36 changed files with 56 additions and 56 deletions.
4 changes: 2 additions & 2 deletions ext/aspell/aspell.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#include "php.h"

#if defined(COMPILE_DL) || defined(COMPILE_DL_ASPELL)
#ifdef COMPILE_DL_ASPELL
#include "phpdl.h"
#endif
#include <stdlib.h>
Expand Down Expand Up @@ -48,7 +48,7 @@ zend_module_entry aspell_module_entry = {
};


#if defined(COMPILE_DL) || defined(COMPILE_DL_ASPELL)
#ifdef COMPILE_DL_ASPELL
ZEND_GET_MODULE(aspell)
#endif

Expand Down
2 changes: 1 addition & 1 deletion ext/bcmath/bcmath.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ zend_module_entry bcmath_module_entry = {
"bcmath", bcmath_functions, NULL, NULL, PHP_RINIT(bcmath), PHP_RSHUTDOWN(bcmath), NULL, STANDARD_MODULE_PROPERTIES
};

#if defined(COMPILE_DL) || defined(COMPILE_DL_BCMATH)
#ifdef COMPILE_DL_BCMATH
ZEND_GET_MODULE(bcmath)
#endif

Expand Down
2 changes: 1 addition & 1 deletion ext/cpdf/cpdf.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ zend_module_entry cpdf_module_entry = {
"cpdf", cpdf_functions, PHP_MINIT(cpdf), PHP_MSHUTDOWN(cpdf), PHP_RINIT(cpdf), NULL, PHP_MINFO(cpdf), STANDARD_MODULE_PROPERTIES
};

#if defined(COMPILE_DL) || defined(COMPILE_DL_CPDF)
#ifdef COMPILE_DL_CPDF
#include "dl/phpdl.h"
ZEND_GET_MODULE(cpdf)
#endif
Expand Down
4 changes: 2 additions & 2 deletions ext/dav/dav.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/* $Id$ */

#define IS_EXT_MODULE
#if defined(COMPILE_DL) || defined(COMPILE_DL_DAV)
#ifdef COMPILE_DL_DAV
# if PHP_31
# include "../phpdl.h"
# else
Expand Down Expand Up @@ -68,7 +68,7 @@ phpdav_module php_dav_module;
/* }}} */
/* {{{ dynamically loadable module stuff */

#if defined(COMPILE_DL) || defined(COMPILE_DL_DAV)
#ifdef COMPILE_DL_DAV
ZEND_GET_MODULE(phpdav)
# endif /* COMPILE_DL */

Expand Down
4 changes: 2 additions & 2 deletions ext/db/db.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

/* $Id$ */
#define IS_EXT_MODULE
#if defined(COMPILE_DL) || defined(COMPILE_DL_DB)
#ifdef COMPILE_DL_DB
# include "dl/phpdl.h"
#endif

Expand Down Expand Up @@ -1172,7 +1172,7 @@ zend_module_entry dbm_module_entry = {
"db", dbm_functions, PHP_MINIT(db), PHP_MSHUTDOWN(db), PHP_RINIT(db), NULL, PHP_MINFO(db), STANDARD_MODULE_PROPERTIES
};

#if defined(COMPILE_DL) || defined(COMPILE_DL_DB)
#ifdef COMPILE_DL_DB
ZEND_GET_MODULE(dbm)
#endif

Expand Down
8 changes: 4 additions & 4 deletions ext/dbase/dbase.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
| Authors: Jim Winstead ([email protected]) |
+----------------------------------------------------------------------+
*/
#if defined(COMPILE_DL) || defined(COMPILE_DL_DBASE)
#ifdef COMPILE_DL_DBASE
#include "dl/phpdl.h"
#endif

Expand Down Expand Up @@ -69,7 +69,7 @@ PHP_MINIT_FUNCTION(dbase)
{
#if defined(THREAD_SAFE)
dbase_global_struct *dbase_globals;
#if defined(COMPILE_DL) || defined(COMPILE_DL_DBASE)
#ifdef COMPILE_DL_DBASE
CREATE_MUTEX(dbase_mutex,"DBase_TLS");
SET_MUTEX(dbase_mutex);
numthreads++;
Expand All @@ -94,7 +94,7 @@ static PHP_MSHUTDOWN_FUNCTION(dbase)
dbase_globals = TlsGetValue(DbaseTls);
if (dbase_globals != 0)
LocalFree((HLOCAL) dbase_globals);
#if defined(COMPILE_DL) || defined(COMPILE_DL_DBASE)
#ifdef COMPILE_DL_DBASE
SET_MUTEX(dbase_mutex);
numthreads--;
if (!numthreads){
Expand Down Expand Up @@ -730,7 +730,7 @@ zend_module_entry dbase_module_entry = {
};


#if defined(COMPILE_DL) || defined(COMPILE_DL_DBASE)
#ifdef COMPILE_DL_DBASE
ZEND_GET_MODULE(dbase)

#if (WIN32|WINNT) && defined(THREAD_SAFE)
Expand Down
2 changes: 1 addition & 1 deletion ext/fdf/fdf.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ zend_module_entry fdf_module_entry = {
PHP_MINFO(fdf), STANDARD_MODULE_PROPERTIES
};

#if defined(COMPILE_DL) || defined(COMPILE_DL_FDF)
#ifdef COMPILE_DL_FDF
#include "dl/phpdl.h"
ZEND_GET_MODULE(fdf)
#endif
Expand Down
6 changes: 3 additions & 3 deletions ext/filepro/filepro.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ PHP_MINIT_FUNCTION(filepro)
{
#ifdef THREAD_SAFE
fp_global_struct *fp_globals;
#if defined(COMPILE_DL) || defined(COMPILE_DL_FILEPRO)
#ifdef COMPILE_DL_FILEPRO
CREATE_MUTEX(fp_mutex,"FP_TLS");
SET_MUTEX(fp_mutex);
numthreads++;
Expand Down Expand Up @@ -105,7 +105,7 @@ PHP_MSHUTDOWN_FUNCTION(filepro)
fp_globals = TlsGetValue(FPTls);
if (fp_globals != 0)
LocalFree((HLOCAL) fp_globals);
#if defined(COMPILE_DL) || defined(COMPILE_DL_FILEPRO)
#ifdef COMPILE_DL_FILEPRO
SET_MUTEX(fp_mutex);
numthreads--;
if (!numthreads){
Expand Down Expand Up @@ -136,7 +136,7 @@ zend_module_entry filepro_module_entry = {
};


#if defined(COMPILE_DL) || defined(COMPILE_DL_FILEPRO)
#ifdef COMPILE_DL_FILEPRO
#include "dl/phpdl.h"
ZEND_GET_MODULE(filepro)
#if (WIN32|WINNT) && defined(THREAD_SAFE)
Expand Down
2 changes: 1 addition & 1 deletion ext/gd/gd.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ int gd_globals_id;
static php_gd_globals gd_globals;
#endif

#if defined(COMPILE_DL) || defined(COMPILE_DL_GD)
#ifdef COMPILE_DL_GD
# include "dl/phpdl.h"
ZEND_GET_MODULE(gd)
#endif
Expand Down
6 changes: 3 additions & 3 deletions ext/hyperwave/hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/

/* $Id$ */
#if defined(COMPILE_DL) || defined(COMPILE_DL_HYPERWAVE)
#ifdef COMPILE_DL_HYPERWAVE
#include "dl/phpdl.h"
#endif

Expand Down Expand Up @@ -125,13 +125,13 @@ int hw_globals_id;
PHP_HW_API php_hw_globals hw_globals;
#endif

#if defined(COMPILE_DL) || defined(COMPILE_DL_HYPERWAVE)
#ifdef COMPILE_DL_HYPERWAVE
ZEND_GET_MODULE(hw)
#endif

void print_msg(hg_msg *msg, char *str, int txt);

#if defined(COMPILE_DL) || defined(COMPILE_DL_HYPERWAVE)
#ifdef COMPILE_DL_HYPERWAVE
ZEND_GET_MODULE(hw)
#endif

Expand Down
4 changes: 2 additions & 2 deletions ext/icap/php_icap.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

#include "php.h"

#if defined(COMPILE_DL) || defined(COMPILE_DL_ICAP)
#ifdef COMPILE_DL_ICAP
#include "dl/phpdl.h"
#endif

Expand Down Expand Up @@ -101,7 +101,7 @@ zend_module_entry php_icap_module_entry = {
};


#if defined(COMPILE_DL) || defined(COMPILE_DL_ICAP)
#ifdef COMPILE_DL_ICAP
ZEND_GET_MODULE(php_icap)
#endif

Expand Down
2 changes: 1 addition & 1 deletion ext/imap/php_imap.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ zend_module_entry imap_module_entry = {
};


#if defined(COMPILE_DL) || defined(COMPILE_DL_IMAP)
#ifdef COMPILE_DL_IMAP
ZEND_GET_MODULE(imap)
#endif

Expand Down
4 changes: 2 additions & 2 deletions ext/interbase/interbase.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ zend_module_entry ibase_module_entry =
STANDARD_MODULE_PROPERTIES
};

#if defined(COMPILE_DL) || defined(COMPILE_DL_INTERBASE)
#ifdef COMPILE_DL_INTERBASE
#include "dl/phpdl.h"
ZEND_GET_MODULE(ibase)

Expand Down Expand Up @@ -526,7 +526,7 @@ PHP_MINFO_FUNCTION(ibase)
php_info_print_table_start();
php_info_print_table_row(2, "Interbase Support", "enabled");
php_info_print_table_row(2, "Revision", "$Revision$");
#if defined(COMPILE_DL) || defined(COMPILE_DL_INTERBASE)
#ifdef COMPILE_DL_INTERBASE
php_info_print_table_row(2, "Dynamic Module", "yes");
#endif
php_info_print_table_row(2, "Allow Persistent Links", (IBG(allow_persistent)?"Yes":"No") );
Expand Down
2 changes: 1 addition & 1 deletion ext/ldap/ldap.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ zend_module_entry ldap_module_entry = {



#if defined(COMPILE_DL) || defined(COMPILE_DL_LDAP)
#ifdef COMPILE_DL_LDAP
ZEND_GET_MODULE(ldap)
#endif

Expand Down
4 changes: 2 additions & 2 deletions ext/mcal/php_mcal.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

#include "php.h"

#if defined(COMPILE_DL) || defined(COMPILE_DL_MCAL)
#ifdef COMPILE_DL_MCAL
#include "dl/phpdl.h"
#endif

Expand Down Expand Up @@ -127,7 +127,7 @@ zend_module_entry php_mcal_module_entry = {
"mcal", mcal_functions, PHP_MINIT(mcal), NULL, NULL, NULL, PHP_MINFO(mcal), STANDARD_MODULE_PROPERTIES
};

#if defined(COMPILE_DL) || defined(COMPILE_DL_MCAL)
#ifdef COMPILE_DL_MCAL
ZEND_GET_MODULE(php_mcal)
#endif

Expand Down
4 changes: 2 additions & 2 deletions ext/msql/php_msql.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/* $Id$ */

#include "php.h"
#if defined(COMPILE_DL) || defined(COMPILE_DL_MSQL)
#ifdef COMPILE_DL_MSQL
#include "dl/phpdl.h"
#include "functions/dl.h"
#endif
Expand Down Expand Up @@ -107,7 +107,7 @@ zend_module_entry msql_module_entry = {
};


#if defined(COMPILE_DL) || defined(COMPILE_DL_MSQL)
#ifdef COMPILE_DL_MSQL
ZEND_GET_MODULE(msql)
#endif

Expand Down
4 changes: 2 additions & 2 deletions ext/mssql/php_mssql.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

/* $Id$ */

#if defined(COMPILE_DL) || defined(COMPILE_DL_MSSQL)
#ifdef COMPILE_DL_MSSQL
#include "dl/phpdl.h"
#define HAVE_MSSQL 1
#endif
Expand Down Expand Up @@ -80,7 +80,7 @@ int mssql_globals_id;
PHP_MSSQL_API php_mssql_globals mssql_globals;
#endif

#if defined(COMPILE_DL) || defined(COMPILE_DL_MSSQL)
#ifdef COMPILE_DL_MSSQL
ZEND_GET_MODULE(mssql)
#endif

Expand Down
2 changes: 1 addition & 1 deletion ext/mysql/php_mysql.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ zend_module_entry mysql_module_entry = {

ZEND_DECLARE_MODULE_GLOBALS(mysql)

#if defined(COMPILE_DL) || defined(COMPILE_DL_MYSQL)
#ifdef COMPILE_DL_MYSQL
ZEND_GET_MODULE(mysql)
#endif

Expand Down
2 changes: 1 addition & 1 deletion ext/oci8/oci8.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ PHP_OCI_API php_oci_globals oci_globals;
/* }}} */
/* {{{ dynamically loadable module stuff */

#if defined(COMPILE_DL) || defined(COMPILE_DL_OCI8)
#ifdef COMPILE_DL_OCI8
ZEND_GET_MODULE(oci8)
#endif /* COMPILE_DL */

Expand Down
4 changes: 2 additions & 2 deletions ext/odbc/php_odbc.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

/* $Id$ */

#if defined(COMPILE_DL) || defined(COMPILE_DL_ODBC)
#ifdef COMPILE_DL_ODBC
#include "dl/phpdl.h"
#endif

Expand Down Expand Up @@ -133,7 +133,7 @@ int odbc_globals_id;
ZEND_API php_odbc_globals odbc_globals;
#endif

#if defined(COMPILE_DL) || defined(COMPILE_DL_ODBC)
#ifdef COMPILE_DL_ODBC
ZEND_GET_MODULE(odbc)
#endif

Expand Down
2 changes: 1 addition & 1 deletion ext/odbc/velocis.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ zend_module_entry velocis_module_entry = {
};


#if defined(COMPILE_DL) || defined(COMPILE_DL_ODBC)
#ifdef COMPILE_DL_ODBC
ZEND_GET_MODULE(velocis)
#endif

Expand Down
4 changes: 2 additions & 2 deletions ext/oracle/oracle.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

#define HAS_OLOG 1

#if defined(COMPILE_DL) || defined(COMPILE_DL_ORACLE)
#ifdef COMPILE_DL_ORACLE
# include "dl/phpdl.h"
#endif

Expand Down Expand Up @@ -181,7 +181,7 @@ static const text *ora_func_tab[] =
/* 61, 62 */ (text *) "unused", (text *) "OBNDRA"
};

#if defined(COMPILE_DL) || defined(COMPILE_DL_ORACLE)
#ifdef COMPILE_DL_ORACLE
ZEND_GET_MODULE(oracle)
#endif

Expand Down
2 changes: 1 addition & 1 deletion ext/pcre/php_pcre.c
Original file line number Diff line number Diff line change
Expand Up @@ -1213,7 +1213,7 @@ zend_module_entry pcre_module_entry = {
STANDARD_MODULE_PROPERTIES
};

#if defined(COMPILE_DL) || defined(COMPILE_DL_PCRE)
#ifdef COMPILE_DL_PCRE
ZEND_GET_MODULE(pcre)
#endif

Expand Down
2 changes: 1 addition & 1 deletion ext/pdf/pdf.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ zend_module_entry pdf_module_entry = {
"pdf", pdf_functions, PHP_MINIT(pdf), PHP_MSHUTDOWN(pdf), NULL, NULL, PHP_MINFO(pdf), STANDARD_MODULE_PROPERTIES
};

#if defined(COMPILE_DL) || defined(COMPILE_DL_PDF)
#ifdef COMPILE_DL_PDF
#include "dl/phpdl.h"
ZEND_GET_MODULE(pdf)
#endif
Expand Down
4 changes: 2 additions & 2 deletions ext/pgsql/pgsql.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#include <stdlib.h>

#if defined(COMPILE_DL) || defined(COMPILE_DL_PGSQL)
#ifdef COMPILE_DL_PGSQL
#include "dl/phpdl.h"
#endif

Expand Down Expand Up @@ -81,7 +81,7 @@ zend_module_entry pgsql_module_entry = {
"pgsql", pgsql_functions, PHP_MINIT(pgsql), PHP_MSHUTDOWN(pgsql), PHP_RINIT(pgsql), NULL, NULL, STANDARD_MODULE_PROPERTIES
};

#if defined(COMPILE_DL) || defined(COMPILE_DL_PGSQL)
#ifdef COMPILE_DL_PGSQL
ZEND_GET_MODULE(pgsql)
#endif

Expand Down
2 changes: 1 addition & 1 deletion ext/posix/posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ zend_module_entry posix_module_entry = {
STANDARD_MODULE_PROPERTIES
};

#if defined(COMPILE_DL) || defined(COMPILE_DL_POSIX)
#ifdef COMPILE_DL_POSIX
ZEND_GET_MODULE(posix)
#endif

Expand Down
Loading

0 comments on commit 4686a3b

Please sign in to comment.