summaryrefslogtreecommitdiff
path: root/Zend/zend_stack.h
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>1999-09-09 14:15:17 +0000
committerAndi Gutmans <andi@php.net>1999-09-09 14:15:17 +0000
commit22f066e708e95debf48065563671d78619807651 (patch)
treed26c963f7c7f09488a1cc975620e05ec868d0f0b /Zend/zend_stack.h
parent7567b96c22734d27f12c9737deb91dcd2c4b41bd (diff)
downloadphp-git-22f066e708e95debf48065563671d78619807651.tar.gz
- Add foreach() freeing code.
- Fix switch() freeing code to only free current function's switch expressions. - I have a feeling break expr; in a switch where expr > 1 leaks because it won't free all of the expressions. Fix is probably not trivial.
Diffstat (limited to 'Zend/zend_stack.h')
-rw-r--r--Zend/zend_stack.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_stack.h b/Zend/zend_stack.h
index 5e084fd74f..053d44632d 100644
--- a/Zend/zend_stack.h
+++ b/Zend/zend_stack.h
@@ -38,8 +38,8 @@ 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);
+ZEND_API void zend_stack_apply(zend_stack *stack, int (*apply_function)(void *element), int type);
+ZEND_API void zend_stack_apply_with_argument(zend_stack *stack, int (*apply_function)(void *element, void *arg), int type, void *arg);
#define ZEND_STACK_APPLY_TOPDOWN 1
#define ZEND_STACK_APPLY_BOTTOMUP 2