Lines Matching refs:elem
92 static void spl_ptr_heap_zval_dtor(zval *elem) { /* {{{ */ in spl_ptr_heap_zval_dtor() argument
93 if (!Z_ISUNDEF_P(elem)) { in spl_ptr_heap_zval_dtor()
94 zval_ptr_dtor(elem); in spl_ptr_heap_zval_dtor()
99 static void spl_ptr_heap_zval_ctor(zval *elem) { /* {{{ */ in spl_ptr_heap_zval_ctor() argument
100 if (Z_REFCOUNTED_P(elem)) { in spl_ptr_heap_zval_ctor()
101 Z_ADDREF_P(elem); in spl_ptr_heap_zval_ctor()
239 static void spl_ptr_heap_insert(spl_ptr_heap *heap, zval *elem, void *cmp_userdata) { /* {{{ */ in spl_ptr_heap_insert() argument
250 …for (i = heap->count; i > 0 && heap->cmp(&heap->elements[(i-1)/2], elem, cmp_userdata) < 0; i = (i… in spl_ptr_heap_insert()
260 ZVAL_COPY_VALUE(&heap->elements[i], elem); in spl_ptr_heap_insert()
273 static void spl_ptr_heap_delete_top(spl_ptr_heap *heap, zval *elem, void *cmp_userdata) { /* {{{ */ in spl_ptr_heap_delete_top() argument
279 ZVAL_UNDEF(elem); in spl_ptr_heap_delete_top()
283 ZVAL_COPY_VALUE(elem, &heap->elements[0]); in spl_ptr_heap_delete_top()
631 zval *data, *priority, elem; in SPL_METHOD() local
648 array_init(&elem); in SPL_METHOD()
649 add_assoc_zval_ex(&elem, "data", sizeof("data") - 1, data); in SPL_METHOD()
650 add_assoc_zval_ex(&elem, "priority", sizeof("priority") - 1, priority); in SPL_METHOD()
652 spl_ptr_heap_insert(intern->heap, &elem, getThis()); in SPL_METHOD()
948 zval elem; in spl_heap_it_move_forward() local
955 spl_ptr_heap_delete_top(object->heap, &elem, &iter->data); in spl_heap_it_move_forward()
957 zval_ptr_dtor(&elem); in spl_heap_it_move_forward()
982 zval elem; in SPL_METHOD() local
983 spl_ptr_heap_delete_top(intern->heap, &elem, getThis()); in SPL_METHOD()
989 zval_ptr_dtor(&elem); in SPL_METHOD()