summaryrefslogtreecommitdiff
path: root/Zend/zend_API.h
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>1999-12-18 22:23:23 +0000
committerZeev Suraski <zeev@php.net>1999-12-18 22:23:23 +0000
commitcd7d5546ae5ed188e78b2e3a4ed068d15676cffc (patch)
treed5a2d141ef8e5211882b9a4140ff31dc8765db5c /Zend/zend_API.h
parent21e53485dd9c98fb5c4a5fa144d9554b182150a2 (diff)
downloadphp-git-cd7d5546ae5ed188e78b2e3a4ed068d15676cffc.tar.gz
- Introduce ZEND_NUM_ARGS(), to replace ARG_COUNT(ht)
- Rename getParameters() and friends for consistency and namespace cleanliness
Diffstat (limited to 'Zend/zend_API.h')
-rw-r--r--Zend/zend_API.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/Zend/zend_API.h b/Zend/zend_API.h
index c5d7460600..e76e970b67 100644
--- a/Zend/zend_API.h
+++ b/Zend/zend_API.h
@@ -56,10 +56,10 @@
int zend_next_free_module(void);
-ZEND_API int getParameters(int ht, int param_count,...);
-ZEND_API int getParametersArray(int ht, int param_count, zval **argument_array);
-ZEND_API int getParametersEx(int param_count,...);
-ZEND_API int getParametersArrayEx(int param_count, zval ***argument_array);
+ZEND_API int zend_get_parameters(int ht, int param_count,...);
+ZEND_API int zend_get_parameters_array(int ht, int param_count, zval **argument_array);
+ZEND_API int zend_get_parameters_ex(int param_count,...);
+ZEND_API int zend_get_parameters_array_ex(int param_count, zval ***argument_array);
ZEND_API int ParameterPassedByReference(int ht, uint n);
@@ -75,7 +75,8 @@ ZEND_API void wrong_param_count(void);
#define WRONG_PARAM_COUNT { wrong_param_count(); return; }
#define WRONG_PARAM_COUNT_WITH_RETVAL(ret) { wrong_param_count(); return ret; }
-#define ARG_COUNT(ht) (ht)
+#define ARG_COUNT(dummy) (num_args)
+#define ZEND_NUM_ARGS() (num_args)
#define BYREF_NONE 0
#define BYREF_FORCE 1