]> granicus.if.org Git - php/commitdiff
Practice what you preach, I guess.
authorAndrey Hristov <andrey@php.net>
Fri, 3 Sep 1999 19:01:19 +0000 (19:01 +0000)
committerAndrey Hristov <andrey@php.net>
Fri, 3 Sep 1999 19:01:19 +0000 (19:01 +0000)
ext/pcre/php_pcre.c
ext/pcre/php_pcre.h

index 0591d6a3e071a4b0b7881f668c715f0de7d00efa..43529a57423923430e8390782dcc43dcf4895a8c 100644 (file)
@@ -46,9 +46,9 @@ function_entry pcre_functions[] = {
 };
 
 zend_module_entry pcre_module_entry = {
-   "PCRE", pcre_functions, php_minit_pcre, php_mshutdown_pcre,
-                  php_rinit_pcre, NULL,
-                  php_info_pcre, STANDARD_MODULE_PROPERTIES
+   "PCRE", pcre_functions, PHP_MINIT(pcre), PHP_MSHUTDOWN(pcre),
+                  PHP_RINIT(pcre), NULL,
+                  PHP_MINFO(pcre), STANDARD_MODULE_PROPERTIES
 };
 
 /* }}} */
@@ -98,8 +98,8 @@ static void _php_pcre_shutdown_globals(php_pcre_globals *pcre_globals)
 #endif
 
 
-/* {{{ void php_info_pcre(ZEND_MODULE_INFO_FUNC_ARGS) */
-void php_info_pcre(ZEND_MODULE_INFO_FUNC_ARGS)
+/* {{{ PHP_MINFO_FUNCTION(pcre) */
+PHP_MINFO_FUNCTION(pcre)
 {
        php_printf("Perl Compatible Regular Expressions");
        php_printf("<table cellpadding=5>"
@@ -110,8 +110,8 @@ void php_info_pcre(ZEND_MODULE_INFO_FUNC_ARGS)
 /* }}} */
 
 
-/* {{{ int php_minit_pcre(INIT_FUNC_ARGS) */
-int php_minit_pcre(INIT_FUNC_ARGS)
+/* {{{ PHP_MINIT_FUNCTION(pcre) */
+PHP_MINIT_FUNCTION(pcre)
 {
        ELS_FETCH();
 
@@ -131,8 +131,8 @@ int php_minit_pcre(INIT_FUNC_ARGS)
 /* }}} */
 
 
-/* {{{ int php_mshutdown_pcre(void) */
-int php_mshutdown_pcre(SHUTDOWN_FUNC_ARGS)
+/* {{{ PHP_MSHUTDOWN_FUNCTION(pcre) */
+PHP_MSHUTDOWN_FUNCTION(pcre)
 {
 #ifndef ZTS
        zend_hash_destroy(&PCRE_G(pcre_cache));
@@ -144,8 +144,8 @@ int php_mshutdown_pcre(SHUTDOWN_FUNC_ARGS)
 /* }}} */
 
 
-/* {{{ int php_rinit_pcre(INIT_FUNC_ARGS) */
-int php_rinit_pcre(INIT_FUNC_ARGS)
+/* {{{ PHP_RINIT_FUNCTION(pcre) */
+PHP_RINIT_FUNCTION(pcre)
 {
        pcre_malloc = php_pcre_malloc;
        pcre_free = php_pcre_free;
index c7f9043b05c6f8835caa6fc7a95034dbb7fd800b..e4df8f07e070e3089b727fca22de5e0c21706da0 100644 (file)
 #include <locale.h>
 #endif
 
-extern void php_info_pcre(ZEND_MODULE_INFO_FUNC_ARGS);
-extern int php_minit_pcre(INIT_FUNC_ARGS);
-extern int php_mshutdown_pcre(SHUTDOWN_FUNC_ARGS);
-extern int php_rinit_pcre(INIT_FUNC_ARGS);
+PHP_MINFO_FUNCTION(pcre);
+PHP_MINIT_FUNCTION(pcre);
+PHP_MSHUTDOWN_FUNCTION(pcre);
+PHP_RINIT_FUNCTION(pcre);
 
 PHP_FUNCTION(preg_match);
 PHP_FUNCTION(preg_match_all);