summaryrefslogtreecommitdiff
path: root/Zend/zend_llist.h
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2000-06-13 09:18:06 +0000
committerSascha Schumann <sas@php.net>2000-06-13 09:18:06 +0000
commit13692ff3134f40c4125add8f27084f59b936aa01 (patch)
treea3a11299d8dfbfca9994783a7274db893c66279e /Zend/zend_llist.h
parent6caf633cf702d2708ebf7a4beacc70f8d93bbd78 (diff)
downloadphp-git-13692ff3134f40c4125add8f27084f59b936aa01.tar.gz
Add llist_apply_func_t and make prototypes use the typedefs.
Diffstat (limited to 'Zend/zend_llist.h')
-rw-r--r--Zend/zend_llist.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Zend/zend_llist.h b/Zend/zend_llist.h
index 0ca19b7abe..476708d69c 100644
--- a/Zend/zend_llist.h
+++ b/Zend/zend_llist.h
@@ -41,6 +41,7 @@ typedef struct _zend_llist {
typedef int (*llist_compare_func_t)(const zend_llist_element *, const zend_llist_element *);
typedef void(*llist_apply_with_arg_func_t)(void *data, void *arg);
typedef void(*llist_apply_with_args_func_t)(void *data, int num_args, va_list args);
+typedef void (*llist_apply_func_t)(void *);
typedef zend_llist_element* zend_llist_position;
@@ -53,8 +54,8 @@ ZEND_API void zend_llist_destroy(zend_llist *l);
ZEND_API void zend_llist_clean(zend_llist *l);
ZEND_API void zend_llist_remove_tail(zend_llist *l);
ZEND_API void zend_llist_copy(zend_llist *dst, zend_llist *src);
-ZEND_API void zend_llist_apply(zend_llist *l, void (*func)(void *data));
-ZEND_API void zend_llist_apply_with_argument(zend_llist *l, void (*func)(void *data, void *arg), void *arg);
+ZEND_API void zend_llist_apply(zend_llist *l, llist_apply_func_t);
+ZEND_API void zend_llist_apply_with_argument(zend_llist *l, llist_apply_with_arg_func_t, void *arg);
ZEND_API void zend_llist_apply_with_arguments(zend_llist *l, llist_apply_with_args_func_t func, int num_args, ...);
ZEND_API int zend_llist_count(zend_llist *l);
ZEND_API void zend_llist_sort(zend_llist *l, llist_compare_func_t comp_func);