]> granicus.if.org Git - php/commitdiff
inline functions cannot accept varargs
authorZeev Suraski <zeev@php.net>
Sat, 25 Dec 1999 23:52:00 +0000 (23:52 +0000)
committerZeev Suraski <zeev@php.net>
Sat, 25 Dec 1999 23:52:00 +0000 (23:52 +0000)
Zend/zend_ptr_stack.c
Zend/zend_ptr_stack.h

index 17ed0a4b1f0e566e24023da89e5eb0dbe3f13a7c..6c0e7481b36347dbfda77b6470bc54770a5f71a3 100644 (file)
@@ -42,7 +42,7 @@ ZEND_API inline void zend_ptr_stack_push(zend_ptr_stack *stack, void *ptr)
        *(stack->top_element++) = ptr;
 }
 
-ZEND_API inline void zend_ptr_stack_n_push(zend_ptr_stack *stack, int count,...)
+ZEND_API void zend_ptr_stack_n_push(zend_ptr_stack *stack, int count, ...)
 {
        va_list ptr;
        void *elem;
@@ -64,7 +64,7 @@ ZEND_API inline void zend_ptr_stack_n_push(zend_ptr_stack *stack, int count,...)
 }
 
 
-ZEND_API inline void zend_ptr_stack_n_pop(zend_ptr_stack *stack, int count,...)
+ZEND_API void zend_ptr_stack_n_pop(zend_ptr_stack *stack, int count, ...)
 {
        va_list ptr;
        void **elem;
index fd0770c647774bc5182cdeb3abf71248d6ada816..4b4c417753ac722cc0941aa3ab1bf8336e6d928b 100644 (file)
@@ -32,9 +32,9 @@ typedef struct _zend_ptr_stack {
 
 ZEND_API void zend_ptr_stack_init(zend_ptr_stack *stack);
 ZEND_API void zend_ptr_stack_push(zend_ptr_stack *stack, void *ptr);
-ZEND_API void zend_ptr_stack_n_push(zend_ptr_stack *stack, int count,...);
+ZEND_API void zend_ptr_stack_n_push(zend_ptr_stack *stack, int count, ...);
 ZEND_API void *zend_ptr_stack_pop(zend_ptr_stack *stack);
-ZEND_API void zend_ptr_stack_n_pop(zend_ptr_stack *stack, int count,...);
+ZEND_API void zend_ptr_stack_n_pop(zend_ptr_stack *stack, int count, ...);
 ZEND_API void zend_ptr_stack_destroy(zend_ptr_stack *stack);
 ZEND_API void zend_ptr_stack_apply(zend_ptr_stack *stack, void (*func)(void *));
 ZEND_API void zend_ptr_stack_clean(zend_ptr_stack *stack, void (*func)(void *));