From: Andi Gutmans Date: Mon, 19 Apr 1999 18:57:14 +0000 (+0000) Subject: Add a couple of ZEND_API's X-Git-Tag: BEFORE_PHP4_APACHE_MODULE_CHANGE~274 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9deab4118d467149ac56d6b57a2b973aeb4c94a8;p=php Add a couple of ZEND_API's --- diff --git a/Zend/zend_API.c b/Zend/zend_API.c index f456c8b04f..f16fd71651 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -31,7 +31,7 @@ static int module_count=0; HashTable list_destructors, module_registry; /* this function doesn't check for too many parameters */ -int getParameters(int ht, int param_count,...) +ZEND_API int getParameters(int ht, int param_count,...) { void **p = EG(argument_stack).top_element-1; int arg_count = (ulong) *p; @@ -69,7 +69,7 @@ int getParameters(int ht, int param_count,...) } -int getParametersArray(int ht, int param_count, zval **argument_array) +ZEND_API int getParametersArray(int ht, int param_count, zval **argument_array) { void **p = EG(argument_stack).top_element-1; int arg_count = (ulong) *p; @@ -107,7 +107,7 @@ int getParametersArray(int ht, int param_count, zval **argument_array) /* Zend-optimized Extended functions */ /* this function doesn't check for too many parameters */ -int getParametersEx(int param_count,...) +ZEND_API int getParametersEx(int param_count,...) { void **p = EG(argument_stack).top_element-1; int arg_count = (ulong) *p; @@ -130,7 +130,7 @@ int getParametersEx(int param_count,...) } -int getParametersArrayEx(int param_count, zval ***argument_array) +ZEND_API int getParametersArrayEx(int param_count, zval ***argument_array) { void **p = EG(argument_stack).top_element-1; int arg_count = (ulong) *p; @@ -148,7 +148,7 @@ int getParametersArrayEx(int param_count, zval ***argument_array) } -int getThis(zval **this) +ZEND_API int getThis(zval **this) { /* NEEDS TO BE IMPLEMENTED FOR ZEND */ /* @@ -163,7 +163,8 @@ int getThis(zval **this) return SUCCESS; } -int ParameterPassedByReference(int ht, uint n) + +ZEND_API int ParameterPassedByReference(int ht, uint n) { void **p = EG(argument_stack).elements+EG(argument_stack).top-1; ulong arg_count = (ulong) *p; @@ -653,7 +654,7 @@ void unregister_functions(zend_function_entry *functions,int count) } -int register_module(zend_module_entry *module) +ZEND_API int register_module(zend_module_entry *module) { #if 0 zend_printf("%s: Registering module %d\n",module->name, module->module_number); diff --git a/Zend/zend_API.h b/Zend/zend_API.h index 100b5750ba..ffed84be10 100644 --- a/Zend/zend_API.h +++ b/Zend/zend_API.h @@ -30,18 +30,17 @@ int zend_next_free_module(void); -int getParameters(int ht, int param_count,...); -int getParametersArray(int ht, int param_count, zval **argument_array); -int getParametersEx(int param_count,...); -int getParametersArrayEx(int param_count, zval ***argument_array); +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); -int getThis(zval **this); +ZEND_API int getThis(zval **this); +ZEND_API int ParameterPassedByReference(int ht, uint n); - -int ParameterPassedByReference(int ht, uint n); int register_functions(zend_function_entry *functions); void unregister_functions(zend_function_entry *functions, int count); -int register_module(zend_module_entry *module_entry); +ZEND_API int register_module(zend_module_entry *module_entry); zend_class_entry *register_internal_class(zend_class_entry *class_entry); ZEND_API void wrong_param_count(void);