diff options
Diffstat (limited to 'Zend/zend_stack.h')
-rw-r--r-- | Zend/zend_stack.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Zend/zend_stack.h b/Zend/zend_stack.h index 520f010924..5e084fd74f 100644 --- a/Zend/zend_stack.h +++ b/Zend/zend_stack.h @@ -38,6 +38,10 @@ ZEND_API int zend_stack_is_empty(zend_stack *stack); ZEND_API int zend_stack_destroy(zend_stack *stack); ZEND_API void **zend_stack_base(zend_stack *stack); ZEND_API int zend_stack_count(zend_stack *stack); +ZEND_API void zend_stack_apply(zend_stack *stack, void (*apply_function)(void *element), int type); +ZEND_API void zend_stack_apply_with_argument(zend_stack *stack, void (*apply_function)(void *element, void *arg), int type, void *arg); +#define ZEND_STACK_APPLY_TOPDOWN 1 +#define ZEND_STACK_APPLY_BOTTOMUP 2 #endif /* _ZEND_STACK_H */ |