summaryrefslogtreecommitdiff
path: root/Zend/zend_stack.h
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2000-03-29 22:28:04 +0000
committerZeev Suraski <zeev@php.net>2000-03-29 22:28:04 +0000
commitb7cd2bfa8e340f99f6f09215e310cc3b55d4b527 (patch)
treef4876ecdcaf4e0013efb9f9de0ce9096a57938ed /Zend/zend_stack.h
parentb543f9959c5672055f8ee87d6d9ab3ab45850b2e (diff)
downloadphp-git-b7cd2bfa8e340f99f6f09215e310cc3b55d4b527.tar.gz
- Make the argument order for the stack applies more consistent with other Zend
data structures - Fix a possible corruption problem due to switch() C-level optimization
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 09daeba615..9304f647d9 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, 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);
+ZEND_API void zend_stack_apply(zend_stack *stack, int type, int (*apply_function)(void *element));
+ZEND_API void zend_stack_apply_with_argument(zend_stack *stack, int type, int (*apply_function)(void *element, void *arg), void *arg);
#define ZEND_STACK_APPLY_TOPDOWN 1
#define ZEND_STACK_APPLY_BOTTOMUP 2