diff options
author | Zeev Suraski <zeev@php.net> | 2001-08-10 12:48:06 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2001-08-10 12:48:06 +0000 |
commit | f7b2b02032b0600fbbebc9f95030cfd51d8e87ca (patch) | |
tree | 8c224e839aff149b857a6c914b61834f0100c27b /main/php3_compat.h | |
parent | c28a26b119f7b2677c990843fdbe0667d5064146 (diff) | |
download | php-git-f7b2b02032b0600fbbebc9f95030cfd51d8e87ca.tar.gz |
Centralize macros
Diffstat (limited to 'main/php3_compat.h')
-rw-r--r-- | main/php3_compat.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/main/php3_compat.h b/main/php3_compat.h index 4093a79a90..017864b2ca 100644 --- a/main/php3_compat.h +++ b/main/php3_compat.h @@ -99,4 +99,26 @@ typedef zval pval; #define list_entry zend_rsrc_list_entry +/* Compatibility macros */ +#define PHP_FN(name) ZEND_FN(name) +#define PHP_NAMED_FUNCTION(name) ZEND_NAMED_FUNCTION(name) +#define PHP_FUNCTION(name) ZEND_FUNCTION(name) + +#define PHP_NAMED_FE(php_name, name, arg_types) ZEND_NAMED_FE(php_name, name, arg_types) +#define PHP_FE(name, arg_types) ZEND_FE(name, arg_types) +#define PHP_FALIAS(name, alias, arg_types) ZEND_FALIAS(name, alias, arg_types) +#define PHP_STATIC_FE(php_name, func_name, arg_types) ZEND_STATIC_FE(php_name, func_name, arg_types) + +#define PHP_MINIT(module) ZEND_MINIT(module) +#define PHP_MSHUTDOWN(module) ZEND_MSHUTDOWN(module) +#define PHP_RINIT(module) ZEND_RINIT(module) +#define PHP_RSHUTDOWN(module) ZEND_RSHUTDOWN(module) +#define PHP_MINFO(module) ZEND_MINFO(module) + +#define PHP_MINIT_FUNCTION(module) ZEND_MINIT_FUNCTION(module) +#define PHP_MSHUTDOWN_FUNCTION(module) ZEND_MSHUTDOWN_FUNCTION(module) +#define PHP_RINIT_FUNCTION(module) ZEND_RINIT_FUNCTION(module) +#define PHP_RSHUTDOWN_FUNCTION(module) ZEND_RSHUTDOWN_FUNCTION(module) +#define PHP_MINFO_FUNCTION(module) ZEND_MINFO_FUNCTION(module) + #endif /* PHP3_COMPAT_H */ |