Skip to content

Commit 9deab41

Browse files
author
Andi Gutmans
committed
Add a couple of ZEND_API's
1 parent a2d8219 commit 9deab41

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

Zend/zend_API.c

+8-7
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ static int module_count=0;
3131
HashTable list_destructors, module_registry;
3232

3333
/* this function doesn't check for too many parameters */
34-
int getParameters(int ht, int param_count,...)
34+
ZEND_API int getParameters(int ht, int param_count,...)
3535
{
3636
void **p = EG(argument_stack).top_element-1;
3737
int arg_count = (ulong) *p;
@@ -69,7 +69,7 @@ int getParameters(int ht, int param_count,...)
6969
}
7070

7171

72-
int getParametersArray(int ht, int param_count, zval **argument_array)
72+
ZEND_API int getParametersArray(int ht, int param_count, zval **argument_array)
7373
{
7474
void **p = EG(argument_stack).top_element-1;
7575
int arg_count = (ulong) *p;
@@ -107,7 +107,7 @@ int getParametersArray(int ht, int param_count, zval **argument_array)
107107

108108
/* Zend-optimized Extended functions */
109109
/* this function doesn't check for too many parameters */
110-
int getParametersEx(int param_count,...)
110+
ZEND_API int getParametersEx(int param_count,...)
111111
{
112112
void **p = EG(argument_stack).top_element-1;
113113
int arg_count = (ulong) *p;
@@ -130,7 +130,7 @@ int getParametersEx(int param_count,...)
130130
}
131131

132132

133-
int getParametersArrayEx(int param_count, zval ***argument_array)
133+
ZEND_API int getParametersArrayEx(int param_count, zval ***argument_array)
134134
{
135135
void **p = EG(argument_stack).top_element-1;
136136
int arg_count = (ulong) *p;
@@ -148,7 +148,7 @@ int getParametersArrayEx(int param_count, zval ***argument_array)
148148
}
149149

150150

151-
int getThis(zval **this)
151+
ZEND_API int getThis(zval **this)
152152
{
153153
/* NEEDS TO BE IMPLEMENTED FOR ZEND */
154154
/*
@@ -163,7 +163,8 @@ int getThis(zval **this)
163163
return SUCCESS;
164164
}
165165

166-
int ParameterPassedByReference(int ht, uint n)
166+
167+
ZEND_API int ParameterPassedByReference(int ht, uint n)
167168
{
168169
void **p = EG(argument_stack).elements+EG(argument_stack).top-1;
169170
ulong arg_count = (ulong) *p;
@@ -653,7 +654,7 @@ void unregister_functions(zend_function_entry *functions,int count)
653654
}
654655

655656

656-
int register_module(zend_module_entry *module)
657+
ZEND_API int register_module(zend_module_entry *module)
657658
{
658659
#if 0
659660
zend_printf("%s: Registering module %d\n",module->name, module->module_number);

Zend/zend_API.h

+7-8
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,17 @@
3030

3131
int zend_next_free_module(void);
3232

33-
int getParameters(int ht, int param_count,...);
34-
int getParametersArray(int ht, int param_count, zval **argument_array);
35-
int getParametersEx(int param_count,...);
36-
int getParametersArrayEx(int param_count, zval ***argument_array);
33+
ZEND_API int getParameters(int ht, int param_count,...);
34+
ZEND_API int getParametersArray(int ht, int param_count, zval **argument_array);
35+
ZEND_API int getParametersEx(int param_count,...);
36+
ZEND_API int getParametersArrayEx(int param_count, zval ***argument_array);
3737

38-
int getThis(zval **this);
38+
ZEND_API int getThis(zval **this);
39+
ZEND_API int ParameterPassedByReference(int ht, uint n);
3940

40-
41-
int ParameterPassedByReference(int ht, uint n);
4241
int register_functions(zend_function_entry *functions);
4342
void unregister_functions(zend_function_entry *functions, int count);
44-
int register_module(zend_module_entry *module_entry);
43+
ZEND_API int register_module(zend_module_entry *module_entry);
4544
zend_class_entry *register_internal_class(zend_class_entry *class_entry);
4645

4746
ZEND_API void wrong_param_count(void);

0 commit comments

Comments
 (0)