From: Zeev Suraski Date: Sat, 25 Dec 1999 23:52:00 +0000 (+0000) Subject: inline functions cannot accept varargs X-Git-Tag: PRE_ISSET_TYPE~57 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7f27821c5f3b134dbe2ec40a38b33db70cce8be3;p=php inline functions cannot accept varargs --- diff --git a/Zend/zend_ptr_stack.c b/Zend/zend_ptr_stack.c index 17ed0a4b1f..6c0e7481b3 100644 --- a/Zend/zend_ptr_stack.c +++ b/Zend/zend_ptr_stack.c @@ -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; diff --git a/Zend/zend_ptr_stack.h b/Zend/zend_ptr_stack.h index fd0770c647..4b4c417753 100644 --- a/Zend/zend_ptr_stack.h +++ b/Zend/zend_ptr_stack.h @@ -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 *));