diff options
author | Felipe Pena <felipe@php.net> | 2008-08-12 17:20:25 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2008-08-12 17:20:25 +0000 |
commit | cf7384aa4015de9dd21a958146933bbf1f13f0a9 (patch) | |
tree | efbb0fd4c63087999c35433354bcaee2d5cb35bd /Zend/zend_stack.h | |
parent | 05376077b31f6f884e3d6630124c21972a29687c (diff) | |
download | php-git-cf7384aa4015de9dd21a958146933bbf1f13f0a9.tar.gz |
- MFH: Constness (Added const qualifier to several function parameters)
Diffstat (limited to 'Zend/zend_stack.h')
-rw-r--r-- | Zend/zend_stack.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Zend/zend_stack.h b/Zend/zend_stack.h index 791025da08..28bb45bd58 100644 --- a/Zend/zend_stack.h +++ b/Zend/zend_stack.h @@ -32,14 +32,14 @@ typedef struct _zend_stack { BEGIN_EXTERN_C() ZEND_API int zend_stack_init(zend_stack *stack); -ZEND_API int zend_stack_push(zend_stack *stack, void *element, int size); -ZEND_API int zend_stack_top(zend_stack *stack, void **element); +ZEND_API int zend_stack_push(zend_stack *stack, const void *element, int size); +ZEND_API int zend_stack_top(const zend_stack *stack, void **element); ZEND_API int zend_stack_del_top(zend_stack *stack); -ZEND_API int zend_stack_int_top(zend_stack *stack); -ZEND_API int zend_stack_is_empty(zend_stack *stack); +ZEND_API int zend_stack_int_top(const zend_stack *stack); +ZEND_API int zend_stack_is_empty(const 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_base(const zend_stack *stack); +ZEND_API int zend_stack_count(const zend_stack *stack); 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); END_EXTERN_C() |