Lines Matching refs:zval

51 typedef void (*spl_ptr_heap_dtor_func)(zval *);
52 typedef void (*spl_ptr_heap_ctor_func)(zval *);
53 typedef int (*spl_ptr_heap_cmp_func)(zval *, zval *, zval *);
56 zval *elements;
90 static void spl_ptr_heap_zval_dtor(zval *elem) { /* {{{ */ in spl_ptr_heap_zval_dtor()
97 static void spl_ptr_heap_zval_ctor(zval *elem) { /* {{{ */ in spl_ptr_heap_zval_ctor()
102 static int spl_ptr_heap_cmp_cb_helper(zval *object, spl_heap_object *heap_object, zval *a, zval *b,… in spl_ptr_heap_cmp_cb_helper()
103 zval zresult; in spl_ptr_heap_cmp_cb_helper()
118 static zval *spl_pqueue_extract_helper(zval *value, int flags) /* {{{ */ in spl_pqueue_extract_helper()
124 zval *data; in spl_pqueue_extract_helper()
129 zval *priority; in spl_pqueue_extract_helper()
140 static int spl_ptr_heap_zval_max_cmp(zval *a, zval *b, zval *object) { /* {{{ */ in spl_ptr_heap_zval_max_cmp()
141 zval result; in spl_ptr_heap_zval_max_cmp()
164 static int spl_ptr_heap_zval_min_cmp(zval *a, zval *b, zval *object) { /* {{{ */ in spl_ptr_heap_zval_min_cmp()
165 zval result; in spl_ptr_heap_zval_min_cmp()
188 static int spl_ptr_pqueue_zval_cmp(zval *a, zval *b, zval *object) { /* {{{ */ in spl_ptr_pqueue_zval_cmp()
189 zval result; in spl_ptr_pqueue_zval_cmp()
190 zval *a_priority_p = spl_pqueue_extract_helper(a, SPL_PQUEUE_EXTR_PRIORITY); in spl_ptr_pqueue_zval_cmp()
191 zval *b_priority_p = spl_pqueue_extract_helper(b, SPL_PQUEUE_EXTR_PRIORITY); in spl_ptr_pqueue_zval_cmp()
206 …if (spl_ptr_heap_cmp_cb_helper((zval *)object, heap_object, a_priority_p, b_priority_p, &lval) == … in spl_ptr_pqueue_zval_cmp()
226 heap->elements = ecalloc(PTR_HEAP_BLOCK_SIZE, sizeof(zval)); in spl_ptr_heap_init()
235 static void spl_ptr_heap_insert(spl_ptr_heap *heap, zval *elem, void *cmp_userdata) { /* {{{ */ in spl_ptr_heap_insert()
240 heap->elements = erealloc(heap->elements, heap->max_size * 2 * sizeof(zval)); in spl_ptr_heap_insert()
241 memset(heap->elements + heap->max_size, 0, heap->max_size * sizeof(zval)); in spl_ptr_heap_insert()
260 static zval *spl_ptr_heap_top(spl_ptr_heap *heap) { /* {{{ */ in spl_ptr_heap_top()
269 static void spl_ptr_heap_delete_top(spl_ptr_heap *heap, zval *elem, void *cmp_userdata) { /* {{{ */ in spl_ptr_heap_delete_top()
272 zval *bottom; in spl_ptr_heap_delete_top()
318 heap->elements = safe_emalloc(sizeof(zval), from->max_size, 0); in spl_ptr_heap_clone()
319 memcpy(heap->elements, from->elements, sizeof(zval)*from->max_size); in spl_ptr_heap_clone()
346 zend_object_iterator *spl_heap_get_iterator(zend_class_entry *ce, zval *object, int by_ref);
358 static zend_object *spl_heap_object_new_ex(zend_class_entry *class_type, zval *orig, int clone_orig… in spl_heap_object_new_ex()
440 static zend_object *spl_heap_object_clone(zval *zobject) /* {{{ */ in spl_heap_object_clone()
454 static int spl_heap_object_count_elements(zval *object, zend_long *count) /* {{{ */ in spl_heap_object_count_elements()
459 zval rv; in spl_heap_object_count_elements()
476 static HashTable* spl_heap_object_get_debug_info_helper(zend_class_entry *ce, zval *obj, int *is_te… in spl_heap_object_get_debug_info_helper()
478 zval tmp, heap_array; in spl_heap_object_get_debug_info_helper()
519 static HashTable *spl_heap_object_get_gc(zval *obj, zval **gc_data, int *gc_data_count) /* {{{ */ in spl_heap_object_get_gc()
529 static HashTable* spl_heap_object_get_debug_info(zval *obj, int *is_temp) /* {{{ */ in spl_heap_object_get_debug_info()
535 static HashTable* spl_pqueue_object_get_debug_info(zval *obj, int *is_temp) /* {{{ */ in spl_pqueue_object_get_debug_info()
575 zval *value; in SPL_METHOD()
626 zval *data, *priority, elem; in SPL_METHOD()
657 zval value, *value_out; in SPL_METHOD()
695 zval *value, *value_out; in SPL_METHOD()
801 zval *a, *b; in SPL_METHOD()
815 zval *value; in SPL_METHOD()
844 zval *a, *b; in SPL_METHOD()
858 zval *a, *b; in SPL_METHOD()
889 static zval *spl_heap_it_get_current_data(zend_object_iterator *iter) /* {{{ */ in spl_heap_it_get_current_data()
892 zval *element = &object->heap->elements[0]; in spl_heap_it_get_current_data()
907 static zval *spl_pqueue_it_get_current_data(zend_object_iterator *iter) /* {{{ */ in spl_pqueue_it_get_current_data()
910 zval *element = &object->heap->elements[0]; in spl_pqueue_it_get_current_data()
920 zval *data = spl_pqueue_extract_helper(element, object->flags); in spl_pqueue_it_get_current_data()
929 static void spl_heap_it_get_current_key(zend_object_iterator *iter, zval *key) /* {{{ */ in spl_heap_it_get_current_key()
940 zval elem; in spl_heap_it_move_forward()
974 zval elem; in SPL_METHOD()
1015 zval *element = &intern->heap->elements[0]; in SPL_METHOD()
1034 zval *element = &intern->heap->elements[0]; in SPL_METHOD()
1043 zval *data = spl_pqueue_extract_helper(element, intern->flags); in SPL_METHOD()
1076 zend_object_iterator *spl_heap_get_iterator(zend_class_entry *ce, zval *object, int by_ref) /* {{{ … in spl_heap_get_iterator()
1100 zend_object_iterator *spl_pqueue_get_iterator(zend_class_entry *ce, zval *object, int by_ref) /* {{… in spl_pqueue_get_iterator()