Lines Matching refs:elem
90 static void spl_ptr_heap_zval_dtor(zval *elem) { /* {{{ */ in spl_ptr_heap_zval_dtor() argument
91 if (!Z_ISUNDEF_P(elem)) { in spl_ptr_heap_zval_dtor()
92 zval_ptr_dtor(elem); in spl_ptr_heap_zval_dtor()
97 static void spl_ptr_heap_zval_ctor(zval *elem) { /* {{{ */ in spl_ptr_heap_zval_ctor() argument
98 Z_TRY_ADDREF_P(elem); in spl_ptr_heap_zval_ctor()
235 static void spl_ptr_heap_insert(spl_ptr_heap *heap, zval *elem, void *cmp_userdata) { /* {{{ */ in spl_ptr_heap_insert() argument
246 …for (i = heap->count; i > 0 && heap->cmp(&heap->elements[(i-1)/2], elem, cmp_userdata) < 0; i = (i… in spl_ptr_heap_insert()
256 ZVAL_COPY_VALUE(&heap->elements[i], elem); in spl_ptr_heap_insert()
269 static void spl_ptr_heap_delete_top(spl_ptr_heap *heap, zval *elem, void *cmp_userdata) { /* {{{ */ in spl_ptr_heap_delete_top() argument
275 ZVAL_UNDEF(elem); in spl_ptr_heap_delete_top()
279 ZVAL_COPY_VALUE(elem, &heap->elements[0]); in spl_ptr_heap_delete_top()
626 zval *data, *priority, elem; in SPL_METHOD() local
643 array_init(&elem); in SPL_METHOD()
644 add_assoc_zval_ex(&elem, "data", sizeof("data") - 1, data); in SPL_METHOD()
645 add_assoc_zval_ex(&elem, "priority", sizeof("priority") - 1, priority); in SPL_METHOD()
647 spl_ptr_heap_insert(intern->heap, &elem, getThis()); in SPL_METHOD()
940 zval elem; in spl_heap_it_move_forward() local
947 spl_ptr_heap_delete_top(object->heap, &elem, &iter->data); in spl_heap_it_move_forward()
949 zval_ptr_dtor(&elem); in spl_heap_it_move_forward()
974 zval elem; in SPL_METHOD() local
975 spl_ptr_heap_delete_top(intern->heap, &elem, getThis()); in SPL_METHOD()
981 zval_ptr_dtor(&elem); in SPL_METHOD()