Lines Matching refs:spl_ptr_heap_element

52 typedef void *spl_ptr_heap_element;  typedef
54 typedef void (*spl_ptr_heap_dtor_func)(spl_ptr_heap_element TSRMLS_DC);
55 typedef void (*spl_ptr_heap_ctor_func)(spl_ptr_heap_element TSRMLS_DC);
56 typedef int (*spl_ptr_heap_cmp_func)(spl_ptr_heap_element, spl_ptr_heap_element, void* TSRMLS_DC);
59 spl_ptr_heap_element *elements;
90 static void spl_ptr_heap_zval_dtor(spl_ptr_heap_element elem TSRMLS_DC) { /* {{{ */ in spl_ptr_heap_zval_dtor()
97 static void spl_ptr_heap_zval_ctor(spl_ptr_heap_element elem TSRMLS_DC) { /* {{{ */ in spl_ptr_heap_zval_ctor()
143 static int spl_ptr_heap_zval_max_cmp(spl_ptr_heap_element a, spl_ptr_heap_element b, void* object T… in spl_ptr_heap_zval_max_cmp()
168 static int spl_ptr_heap_zval_min_cmp(spl_ptr_heap_element a, spl_ptr_heap_element b, void* object T… in spl_ptr_heap_zval_min_cmp()
193 static int spl_ptr_pqueue_zval_cmp(spl_ptr_heap_element a, spl_ptr_heap_element b, void* object TSR… in spl_ptr_pqueue_zval_cmp()
231 heap->elements = safe_emalloc(sizeof(spl_ptr_heap_element), PTR_HEAP_BLOCK_SIZE, 0); in spl_ptr_heap_init()
240 static void spl_ptr_heap_insert(spl_ptr_heap *heap, spl_ptr_heap_element elem, void *cmp_userdata T… in spl_ptr_heap_insert()
245 … **) safe_erealloc(heap->elements, sizeof(spl_ptr_heap_element), (heap->max_size), (sizeof(spl_ptr… in spl_ptr_heap_insert()
267 static spl_ptr_heap_element spl_ptr_heap_top(spl_ptr_heap *heap) { /* {{{ */ in spl_ptr_heap_top()
276 static spl_ptr_heap_element spl_ptr_heap_delete_top(spl_ptr_heap *heap, void *cmp_userdata TSRMLS_D… in spl_ptr_heap_delete_top()
279 spl_ptr_heap_element top; in spl_ptr_heap_delete_top()
280 spl_ptr_heap_element bottom; in spl_ptr_heap_delete_top()
328 heap->elements = safe_emalloc(sizeof(spl_ptr_heap_element),from->max_size,0); in spl_ptr_heap_clone()
329 memcpy(heap->elements, from->elements, sizeof(spl_ptr_heap_element)*from->max_size); in spl_ptr_heap_clone()
965 spl_ptr_heap_element elem; in spl_heap_it_move_forward()
1001 spl_ptr_heap_element elem = spl_ptr_heap_delete_top(intern->heap, getThis() TSRMLS_CC); in SPL_METHOD()