- Added ZEND_MOD_END macro to use in the end of zend_module_dep[]

This commit is contained in:
Felipe Pena 2011-08-06 14:47:44 +00:00
parent fc3e0ff1ec
commit 9480eace41
22 changed files with 23 additions and 21 deletions

View File

@ -113,6 +113,8 @@ struct _zend_module_entry {
#define ZEND_MOD_CONFLICTS(name) ZEND_MOD_CONFLICTS_EX(name, NULL, NULL)
#define ZEND_MOD_OPTIONAL(name) ZEND_MOD_OPTIONAL_EX(name, NULL, NULL)
#define ZEND_MOD_END { NULL, NULL, NULL, 0 }
struct _zend_module_dep {
const char *name; /* module name */
const char *rel; /* version relationship: NULL (exists), lt|le|eq|ge|gt (to given version) */

View File

@ -553,7 +553,7 @@ static zend_object_handlers* dom_get_obj_handlers(TSRMLS_D) {
static const zend_module_dep dom_deps[] = {
ZEND_MOD_REQUIRED("libxml")
ZEND_MOD_CONFLICTS("domxml")
{NULL, NULL, NULL}
ZEND_MOD_END
};
zend_module_entry dom_module_entry = { /* {{{ */

View File

@ -254,7 +254,7 @@ PHP_MSHUTDOWN_FUNCTION(exif)
static const zend_module_dep exif_module_deps[] = {
ZEND_MOD_REQUIRED("standard")
ZEND_MOD_OPTIONAL("mbstring")
{NULL, NULL, NULL}
ZEND_MOD_END
};
/* }}} */

View File

@ -558,7 +558,7 @@ const zend_function_entry imap_functions[] = {
/* {{{ imap dependencies */
static const zend_module_dep imap_deps[] = {
ZEND_MOD_REQUIRED("standard")
{NULL, NULL, NULL}
ZEND_MOD_END
};
/* }}} */

View File

@ -329,7 +329,7 @@ static const zend_module_dep mysql_deps[] = {
#if defined(MYSQL_USE_MYSQLND)
ZEND_MOD_REQUIRED("mysqlnd")
#endif
{NULL, NULL, NULL}
ZEND_MOD_END
};
/* {{{ mysql_module_entry

View File

@ -941,7 +941,7 @@ static const zend_module_dep mysqli_deps[] = {
#if defined(MYSQLI_USE_MYSQLND)
ZEND_MOD_REQUIRED("mysqlnd")
#endif
{NULL, NULL, NULL}
ZEND_MOD_END
};
/* {{{ mysqli_module_entry

View File

@ -312,7 +312,7 @@ static PHP_RSHUTDOWN_FUNCTION(mysqlnd)
static const zend_module_dep mysqlnd_deps[] = {
ZEND_MOD_REQUIRED("standard")
{NULL, NULL, NULL}
ZEND_MOD_END
};
/* {{{ mysqlnd_module_entry

View File

@ -135,7 +135,7 @@ static const zend_module_dep pdo_deps[] = {
#ifdef HAVE_SPL
ZEND_MOD_REQUIRED("spl")
#endif
{NULL, NULL, NULL}
ZEND_MOD_END
};
#endif
/* }}} */

View File

@ -42,7 +42,7 @@ const zend_function_entry pdo_dblib_functions[] = {
#if ZEND_MODULE_API_NO >= 20050922
static const zend_module_dep pdo_dblib_deps[] = {
ZEND_MOD_REQUIRED("pdo")
{NULL, NULL, NULL}
ZEND_MOD_END
};
#endif

View File

@ -40,7 +40,7 @@ const zend_function_entry pdo_firebird_functions[] = { /* {{{ */
#if ZEND_MODULE_API_NO >= 20050922
static const zend_module_dep pdo_firebird_deps[] = {
ZEND_MOD_REQUIRED("pdo")
{NULL, NULL, NULL}
ZEND_MOD_END
};
#endif
/* }}} */

View File

@ -181,7 +181,7 @@ static const zend_module_dep pdo_mysql_deps[] = {
#ifdef PDO_USE_MYSQLND
ZEND_MOD_REQUIRED("mysqlnd")
#endif
{NULL, NULL, NULL}
ZEND_MOD_END
};
#endif
/* }}} */

View File

@ -41,7 +41,7 @@ const zend_function_entry pdo_oci_functions[] = {
#if ZEND_MODULE_API_NO >= 20050922
static const zend_module_dep pdo_oci_deps[] = {
ZEND_MOD_REQUIRED("pdo")
{NULL, NULL, NULL}
ZEND_MOD_END
};
#endif

View File

@ -40,7 +40,7 @@ const zend_function_entry pdo_odbc_functions[] = {
#if ZEND_MODULE_API_NO >= 20050922
static const zend_module_dep pdo_odbc_deps[] = {
ZEND_MOD_REQUIRED("pdo")
{NULL, NULL, NULL}
ZEND_MOD_END
};
#endif
/* }}} */

View File

@ -50,7 +50,7 @@ const zend_function_entry pdo_pgsql_functions[] = {
#if ZEND_MODULE_API_NO >= 20050922
static const zend_module_dep pdo_pgsql_deps[] = {
ZEND_MOD_REQUIRED("pdo")
{NULL, NULL, NULL}
ZEND_MOD_END
};
#endif
/* }}} */

View File

@ -44,7 +44,7 @@ const zend_function_entry pdo_sqlite_functions[] = {
#if ZEND_MODULE_API_NO >= 20050922
static const zend_module_dep pdo_sqlite_deps[] = {
ZEND_MOD_REQUIRED("pdo")
{NULL, NULL, NULL}
ZEND_MOD_END
};
#endif
/* }}} */

View File

@ -3719,7 +3719,7 @@ static const zend_module_dep phar_deps[] = {
#if HAVE_SPL
ZEND_MOD_REQUIRED("spl")
#endif
{NULL, NULL, NULL}
ZEND_MOD_END
};
zend_module_entry phar_module_entry = {

View File

@ -2075,7 +2075,7 @@ static PHP_MINFO_FUNCTION(session) /* {{{ */
static const zend_module_dep session_deps[] = { /* {{{ */
ZEND_MOD_OPTIONAL("hash")
ZEND_MOD_REQUIRED("spl")
{NULL, NULL, NULL}
ZEND_MOD_END
};
/* }}} */

View File

@ -2553,7 +2553,7 @@ const zend_function_entry simplexml_functions[] = { /* {{{ */
static const zend_module_dep simplexml_deps[] = { /* {{{ */
ZEND_MOD_REQUIRED("libxml")
ZEND_MOD_REQUIRED("spl")
{NULL, NULL, NULL}
ZEND_MOD_END
};
/* }}} */

View File

@ -3383,7 +3383,7 @@ const zend_function_entry basic_functions[] = { /* {{{ */
static const zend_module_dep standard_deps[] = { /* {{{ */
ZEND_MOD_OPTIONAL("session")
{NULL, NULL, NULL}
ZEND_MOD_END
};
/* }}} */

View File

@ -244,7 +244,7 @@ const zend_function_entry xml_functions[] = {
#ifdef LIBXML_EXPAT_COMPAT
static const zend_module_dep xml_deps[] = {
ZEND_MOD_REQUIRED("libxml")
{NULL, NULL, NULL}
ZEND_MOD_END
};
#endif

View File

@ -321,7 +321,7 @@ static xmlRelaxNGPtr _xmlreader_get_relaxNG(char *source, int source_len, int ty
static const zend_module_dep xmlreader_deps[] = {
ZEND_MOD_REQUIRED("libxml")
{NULL, NULL, NULL}
ZEND_MOD_END
};
/* {{{ xmlreader_module_entry

View File

@ -41,7 +41,7 @@ const zend_function_entry xsl_functions[] = {
static const zend_module_dep xsl_deps[] = {
ZEND_MOD_REQUIRED("libxml")
{NULL, NULL, NULL}
ZEND_MOD_END
};
/* {{{ xsl_module_entry