diff options
| author | Hartmut Holzgraefe <hholzgra@php.net> | 2004-02-18 22:44:40 +0000 |
|---|---|---|
| committer | Hartmut Holzgraefe <hholzgra@php.net> | 2004-02-18 22:44:40 +0000 |
| commit | 3a3f95a3991283eb83b39d8803125b0ca954154a (patch) | |
| tree | 88e1f19a795c32598491717033a400951c34071f /Zend/zend_ptr_stack.h | |
| parent | 7deeb0f96ab8b0df6e8feee00005defe6ef9e72f (diff) | |
| download | php-git-3a3f95a3991283eb83b39d8803125b0ca954154a.tar.gz | |
wrap ZEND_API prototypes into BEGIN_EXTERN_C/END_EXTERN_C
for C++ extension support
Diffstat (limited to 'Zend/zend_ptr_stack.h')
| -rw-r--r-- | Zend/zend_ptr_stack.h | 2 |
1 files changed, 2 insertions, 0 deletions
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) { |
