From 3a3f95a3991283eb83b39d8803125b0ca954154a Mon Sep 17 00:00:00 2001 From: Hartmut Holzgraefe Date: Wed, 18 Feb 2004 22:44:40 +0000 Subject: wrap ZEND_API prototypes into BEGIN_EXTERN_C/END_EXTERN_C for C++ extension support --- Zend/zend_ptr_stack.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Zend/zend_ptr_stack.h') diff --git a/Zend/zend_ptr_stack.h b/Zend/zend_ptr_stack.h index b03b713b05..4a77b024eb 100644 --- a/Zend/zend_ptr_stack.h +++ b/Zend/zend_ptr_stack.h @@ -31,6 +31,7 @@ typedef struct _zend_ptr_stack { #define PTR_STACK_BLOCK_SIZE 64 +BEGIN_EXTERN_C() ZEND_API void zend_ptr_stack_init(zend_ptr_stack *stack); ZEND_API void zend_ptr_stack_n_push(zend_ptr_stack *stack, int count, ...); ZEND_API void zend_ptr_stack_n_pop(zend_ptr_stack *stack, int count, ...); @@ -38,6 +39,7 @@ 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 *), zend_bool free_elements); ZEND_API int zend_ptr_stack_num_elements(zend_ptr_stack *stack); +END_EXTERN_C() static inline void zend_ptr_stack_push(zend_ptr_stack *stack, void *ptr) { -- cgit v1.2.1