diff options
| author | Zeev Suraski <zeev@php.net> | 2000-04-29 10:20:40 +0000 |
|---|---|---|
| committer | Zeev Suraski <zeev@php.net> | 2000-04-29 10:20:40 +0000 |
| commit | 8aac6e7d3d94b2a180de0c13ea4fa6aee1a02605 (patch) | |
| tree | 4480c65a36f915e79f77b537e64796ae3eda0656 /Zend/zend_llist.c | |
| parent | 0118f62195a1a5a4c0c4ce0313e9deb201dfaa15 (diff) | |
| download | php-git-8aac6e7d3d94b2a180de0c13ea4fa6aee1a02605.tar.gz | |
- Add zend_llist_apply_with_arguments()
- Add a message handler to the extensions
Diffstat (limited to 'Zend/zend_llist.c')
| -rw-r--r-- | Zend/zend_llist.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Zend/zend_llist.c b/Zend/zend_llist.c index 0a7755f25b..5c10eee433 100644 --- a/Zend/zend_llist.c +++ b/Zend/zend_llist.c @@ -196,6 +196,19 @@ ZEND_API void zend_llist_apply_with_argument(zend_llist *l, void (*func)(void *d } +ZEND_API void zend_llist_apply_with_arguments(zend_llist *l, llist_apply_with_args_func_t func, int num_args, ...) +{ + zend_llist_element *element; + va_list args; + + va_start(args, num_args); + for (element=l->head; element; element=element->next) { + func(element->data, num_args, args); + } + va_end(args); +} + + ZEND_API int zend_llist_count(zend_llist *l) { zend_llist_element *element; |
