Browse Source

remove unused PHP_EXTNAME_API macros.

#in preparation for the gcc 4 visibility patch
PECL
Nuno Lopes 19 years ago
parent
commit
61eb7ae554
  1. 6
      ext/com_dotnet/php_com_dotnet.h
  2. 6
      ext/ctype/php_ctype.h
  3. 6
      ext/filter/php_filter.h
  4. 6
      ext/gmp/php_gmp.h
  5. 6
      ext/json/php_json.h
  6. 6
      ext/mime_magic/php_mime_magic.h
  7. 5
      ext/mssql/php_mssql.h
  8. 6
      ext/ncurses/php_ncurses.h
  9. 6
      ext/oci8/php_oci8.h
  10. 6
      ext/pcntl/php_pcntl.h
  11. 6
      ext/pdo_dblib/php_pdo_dblib.h
  12. 12
      ext/pdo_firebird/php_pdo_firebird.h
  13. 6
      ext/pdo_mysql/php_pdo_mysql.h
  14. 6
      ext/pdo_oci/php_pdo_oci.h
  15. 6
      ext/pdo_odbc/php_pdo_odbc.h
  16. 6
      ext/pdo_pgsql/php_pdo_pgsql.h
  17. 6
      ext/pdo_sqlite/php_pdo_sqlite.h
  18. 6
      ext/shmop/php_shmop.h
  19. 6
      ext/simplexml/php_simplexml.h
  20. 5
      ext/soap/php_soap.h
  21. 2
      ext/sockets/php_sockets.h
  22. 6
      ext/sqlite/php_sqlite.h
  23. 6
      ext/tokenizer/php_tokenizer.h
  24. 6
      ext/xml/php_xml.h
  25. 6
      ext/xmlreader/php_xmlreader.h
  26. 6
      ext/xmlrpc/php_xmlrpc.h
  27. 6
      ext/xsl/php_xsl.h

6
ext/com_dotnet/php_com_dotnet.h

@ -24,12 +24,6 @@
extern zend_module_entry com_dotnet_module_entry;
#define phpext_com_dotnet_ptr &com_dotnet_module_entry
#ifdef PHP_WIN32
# define PHP_COM_DOTNET_API __declspec(dllexport)
#else
# define PHP_COM_DOTNET_API
#endif
#ifdef ZTS
#include "TSRM.h"
#endif

6
ext/ctype/php_ctype.h

@ -24,12 +24,6 @@
extern zend_module_entry ctype_module_entry;
#define phpext_ctype_ptr &ctype_module_entry
#ifdef PHP_WIN32
#define PHP_CTYPE_API __declspec(dllexport)
#else
#define PHP_CTYPE_API
#endif
#else
#define phpext_ctype_ptr NULL

6
ext/filter/php_filter.h

@ -33,12 +33,6 @@
extern zend_module_entry filter_module_entry;
#define phpext_filter_ptr &filter_module_entry
#ifdef PHP_WIN32
#define PHP_FILTER_API __declspec(dllexport)
#else
#define PHP_FILTER_API
#endif
#ifdef ZTS
#include "TSRM.h"
#endif

6
ext/gmp/php_gmp.h

@ -26,12 +26,6 @@
extern zend_module_entry gmp_module_entry;
#define phpext_gmp_ptr &gmp_module_entry
#ifdef ZEND_WIN32
#define GMP_API __declspec(dllexport)
#else
#define GMP_API
#endif
ZEND_MODULE_STARTUP_D(gmp);
ZEND_MODULE_DEACTIVATE_D(gmp);
ZEND_MODULE_INFO_D(gmp);

6
ext/json/php_json.h

@ -26,12 +26,6 @@
extern zend_module_entry json_module_entry;
#define phpext_json_ptr &json_module_entry
#ifdef PHP_WIN32
#define PHP_JSON_API __declspec(dllexport)
#else
#define PHP_JSON_API
#endif
#ifdef ZTS
#include "TSRM.h"
#endif

6
ext/mime_magic/php_mime_magic.h

@ -24,12 +24,6 @@
extern zend_module_entry mime_magic_module_entry;
#define phpext_mime_magic_ptr &mime_magic_module_entry
#ifdef PHP_WIN32
#define PHP_MIME_MAGIC_API __declspec(dllexport)
#else
#define PHP_MIME_MAGIC_API
#endif
PHP_MINIT_FUNCTION(mime_magic);
PHP_MSHUTDOWN_FUNCTION(mime_magic);
PHP_RINIT_FUNCTION(mime_magic);

5
ext/mssql/php_mssql.h

@ -25,11 +25,6 @@
#if HAVE_MSSQL
#define MSDBLIB
#ifdef PHP_WIN32
#define PHP_MSSQL_API __declspec(dllexport)
#else
#define PHP_MSSQL_API
#endif
#include <sqlfront.h>
#include <sqldb.h>

6
ext/ncurses/php_ncurses.h

@ -39,12 +39,6 @@ extern zend_module_entry ncurses_module_entry;
extern const zend_function_entry ncurses_functions[];
#include "php_ncurses_fe.h"
#ifdef PHP_WIN32
#define PHP_NCURSES_API __declspec(dllexport)
#else
#define PHP_NCURSES_API
#endif
PHP_MINIT_FUNCTION(ncurses);
PHP_MSHUTDOWN_FUNCTION(ncurses);
PHP_MINFO_FUNCTION(ncurses);

6
ext/oci8/php_oci8.h

@ -31,12 +31,6 @@
# ifndef PHP_OCI8_H
# define PHP_OCI8_H
#ifdef PHP_WIN32
#define PHP_OCI_API __declspec(dllexport)
#else
#define PHP_OCI_API
#endif
#ifdef ZTS
# include "TSRM.h"
#endif

6
ext/pcntl/php_pcntl.h

@ -27,12 +27,6 @@
extern zend_module_entry pcntl_module_entry;
#define phpext_pcntl_ptr &pcntl_module_entry
#ifdef PHP_WIN32
#define PHP_PCNTL_API __declspec(dllexport)
#else
#define PHP_PCNTL_API
#endif
PHP_MINIT_FUNCTION(pcntl);
PHP_MSHUTDOWN_FUNCTION(pcntl);
PHP_RINIT_FUNCTION(pcntl);

6
ext/pdo_dblib/php_pdo_dblib.h

@ -26,12 +26,6 @@
extern zend_module_entry pdo_dblib_module_entry;
#define phpext_pdo_dblib_ptr &pdo_dblib_module_entry
#ifdef PHP_WIN32
# define PHP_PDO_DBLIB_API __declspec(dllexport)
#else
# define PHP_PDO_DBLIB_API
#endif
#ifdef ZTS
# include "TSRM.h"
#endif

12
ext/pdo_firebird/php_pdo_firebird.h

@ -24,18 +24,6 @@
extern zend_module_entry pdo_firebird_module_entry;
#define phpext_pdo_firebird_ptr &pdo_firebird_module_entry
#ifdef PHP_WIN32
# ifdef PDO_FIREBIRD_EXPORTS
# define PDO_FB_API __declspec(dllexport)
# elif defined(COMPILE_DL_PDO_FIREBIRD)
# define PDO_FB_API __declspec(dllimport)
# else
# define PDO_FB_API
# endif
#else
# define PDO_FB_API
#endif
#ifdef ZTS
#include "TSRM.h"
#endif

6
ext/pdo_mysql/php_pdo_mysql.h

@ -24,12 +24,6 @@
extern zend_module_entry pdo_mysql_module_entry;
#define phpext_pdo_mysql_ptr &pdo_mysql_module_entry
#ifdef PHP_WIN32
#define PHP_PDO_MYSQL_API __declspec(dllexport)
#else
#define PHP_PDO_MYSQL_API
#endif
#ifdef ZTS
#include "TSRM.h"
#endif

6
ext/pdo_oci/php_pdo_oci.h

@ -24,12 +24,6 @@
extern zend_module_entry pdo_oci_module_entry;
#define phpext_pdo_oci_ptr &pdo_oci_module_entry
#ifdef PHP_WIN32
#define PHP_PDO_OCI_API __declspec(dllexport)
#else
#define PHP_PDO_OCI_API
#endif
#ifdef ZTS
#include "TSRM.h"
#endif

6
ext/pdo_odbc/php_pdo_odbc.h

@ -24,12 +24,6 @@
extern zend_module_entry pdo_odbc_module_entry;
#define phpext_pdo_odbc_ptr &pdo_odbc_module_entry
#ifdef PHP_WIN32
#define PHP_PDO_ODBC_API __declspec(dllexport)
#else
#define PHP_PDO_ODBC_API
#endif
#ifdef ZTS
#include "TSRM.h"
#endif

6
ext/pdo_pgsql/php_pdo_pgsql.h

@ -26,12 +26,6 @@
extern zend_module_entry pdo_pgsql_module_entry;
#define phpext_pdo_pgsql_ptr &pdo_pgsql_module_entry
#ifdef PHP_WIN32
#define PHP_PDO_PGSQL_API __declspec(dllexport)
#else
#define PHP_PDO_PGSQL_API
#endif
#ifdef ZTS
#include "TSRM.h"
#endif

6
ext/pdo_sqlite/php_pdo_sqlite.h

@ -25,12 +25,6 @@
extern zend_module_entry pdo_sqlite_module_entry;
#define phpext_pdo_sqlite_ptr &pdo_sqlite_module_entry
#ifdef PHP_WIN32
#define PHP_PDO_SQLITE_API __declspec(dllexport)
#else
#define PHP_PDO_SQLITE_API
#endif
#ifdef ZTS
#include "TSRM.h"
#endif

6
ext/shmop/php_shmop.h

@ -24,12 +24,6 @@
extern zend_module_entry shmop_module_entry;
#define phpext_shmop_ptr &shmop_module_entry
#ifdef PHP_WIN32
#define PHP_SHMOP_API __declspec(dllexport)
#else
#define PHP_SHMOP_API
#endif
PHP_MINIT_FUNCTION(shmop);
PHP_MINFO_FUNCTION(shmop);

6
ext/simplexml/php_simplexml.h

@ -24,12 +24,6 @@
extern zend_module_entry simplexml_module_entry;
#define phpext_simplexml_ptr &simplexml_module_entry
#ifdef PHP_WIN32
#define PHP_SIMPLEXML_API __declspec(dllexport)
#else
#define PHP_SIMPLEXML_API
#endif
#ifdef ZTS
#include "TSRM.h"
#endif

5
ext/soap/php_soap.h

@ -173,11 +173,6 @@ ZEND_BEGIN_MODULE_GLOBALS(soap)
HashTable *ref_map;
ZEND_END_MODULE_GLOBALS(soap)
#ifdef PHP_WIN32
#define PHP_SOAP_API __declspec(dllexport)
#else
#define PHP_SOAP_API
#endif
#ifdef ZTS
#include "TSRM.h"
#endif

2
ext/sockets/php_sockets.h

@ -30,10 +30,8 @@ extern zend_module_entry sockets_module_entry;
#define phpext_sockets_ptr &sockets_module_entry
#ifdef PHP_WIN32
#define PHP_SOCKETS_API __declspec(dllexport)
#include <winsock.h>
#else
#define PHP_SOCKETS_API
#if HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif

6
ext/sqlite/php_sqlite.h

@ -26,12 +26,6 @@
extern zend_module_entry sqlite_module_entry;
#define phpext_sqlite_ptr &sqlite_module_entry
#ifdef PHP_WIN32
#define PHP_SQLITE_API __declspec(dllexport)
#else
#define PHP_SQLITE_API
#endif
#ifdef ZTS
#include "TSRM.h"
#endif

6
ext/tokenizer/php_tokenizer.h

@ -24,12 +24,6 @@
extern zend_module_entry tokenizer_module_entry;
#define phpext_tokenizer_ptr &tokenizer_module_entry
#ifdef PHP_WIN32
#define PHP_TOKENIZER_API __declspec(dllexport)
#else
#define PHP_TOKENIZER_API
#endif
#ifdef ZTS
#include "TSRM.h"
#endif

6
ext/xml/php_xml.h

@ -34,12 +34,6 @@ extern zend_module_entry xml_module_entry;
#include "ext/xml/expat_compat.h"
#ifdef PHP_WIN32
#define PHP_XML_API __declspec(dllexport)
#else
#define PHP_XML_API
#endif
#ifdef XML_UNICODE
#error "UTF-16 Unicode support not implemented!"

6
ext/xmlreader/php_xmlreader.h

@ -24,12 +24,6 @@
extern zend_module_entry xmlreader_module_entry;
#define phpext_xmlreader_ptr &xmlreader_module_entry
#ifdef PHP_WIN32
#define PHP_XMLREADER_API __declspec(dllexport)
#else
#define PHP_XMLREADER_API
#endif
#ifdef ZTS
#include "TSRM.h"
#endif

6
ext/xmlrpc/php_xmlrpc.h

@ -61,12 +61,6 @@
extern zend_module_entry xmlrpc_module_entry;
#define phpext_xmlrpc_ptr &xmlrpc_module_entry
#ifdef PHP_WIN32
#define PHP_XMLRPC_API __declspec(dllexport)
#else
#define PHP_XMLRPC_API
#endif
PHP_MINIT_FUNCTION(xmlrpc);
PHP_MINFO_FUNCTION(xmlrpc);

6
ext/xsl/php_xsl.h

@ -24,12 +24,6 @@
extern zend_module_entry xsl_module_entry;
#define phpext_xsl_ptr &xsl_module_entry
#ifdef PHP_WIN32
#define PHP_XSL_API __declspec(dllexport)
#else
#define PHP_XSL_API
#endif
#ifdef ZTS
#include "TSRM.h"
#endif

Loading…
Cancel
Save