diff options
Diffstat (limited to 'Zend/zend_llist.c')
-rw-r--r-- | Zend/zend_llist.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Zend/zend_llist.c b/Zend/zend_llist.c index 0df7e702f1..9028e19dbf 100644 --- a/Zend/zend_llist.c +++ b/Zend/zend_llist.c @@ -177,16 +177,16 @@ ZEND_API void zend_llist_apply_with_del(zend_llist *l, int (*func)(void *data)) } -ZEND_API void zend_llist_apply(zend_llist *l, llist_apply_func_t func TSRMLS_DC) +ZEND_API void zend_llist_apply(zend_llist *l, llist_apply_func_t func) { zend_llist_element *element; for (element=l->head; element; element=element->next) { - func(element->data TSRMLS_CC); + func(element->data); } } -ZEND_API void zend_llist_sort(zend_llist *l, llist_compare_func_t comp_func TSRMLS_DC) +ZEND_API void zend_llist_sort(zend_llist *l, llist_compare_func_t comp_func) { size_t i; @@ -205,7 +205,7 @@ ZEND_API void zend_llist_sort(zend_llist *l, llist_compare_func_t comp_func TSRM *ptr++ = element; } - zend_qsort(elements, l->count, sizeof(zend_llist_element *), (compare_func_t) comp_func TSRMLS_CC); + zend_qsort(elements, l->count, sizeof(zend_llist_element *), (compare_func_t) comp_func); l->head = elements[0]; elements[0]->prev = NULL; @@ -220,24 +220,24 @@ ZEND_API void zend_llist_sort(zend_llist *l, llist_compare_func_t comp_func TSRM } -ZEND_API void zend_llist_apply_with_argument(zend_llist *l, llist_apply_with_arg_func_t func, void *arg TSRMLS_DC) +ZEND_API void zend_llist_apply_with_argument(zend_llist *l, llist_apply_with_arg_func_t func, void *arg) { zend_llist_element *element; for (element=l->head; element; element=element->next) { - func(element->data, arg TSRMLS_CC); + func(element->data, arg); } } -ZEND_API void zend_llist_apply_with_arguments(zend_llist *l, llist_apply_with_args_func_t func TSRMLS_DC, int num_args, ...) +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 TSRMLS_CC); + func(element->data, num_args, args); } va_end(args); } |