Lines Matching refs:item
73 pitem *item = (pitem *) OPENSSL_malloc(sizeof(pitem));
74 if (item == NULL) return NULL;
76 pq_64bit_init(&(item->priority));
77 pq_64bit_assign(&item->priority, &priority);
79 item->data = data;
80 item->next = NULL;
82 return item;
86 pitem_free(pitem *item)
88 if (item == NULL) return;
90 pq_64bit_free(&(item->priority));
91 OPENSSL_free(item);
113 pqueue_insert(pqueue_s *pq, pitem *item)
119 pq->items = item;
120 return item;
127 if (pq_64bit_gt(&(next->priority), &(item->priority)))
129 item->next = next;
132 pq->items = item;
134 curr->next = item;
136 return item;
139 if (pq_64bit_eq(&(item->priority), &(next->priority)))
143 item->next = NULL;
144 curr->next = item;
146 return item;
158 pitem *item = pq->items;
163 return item;
206 pitem *item = pq->items;
208 while(item != NULL)
210 printf("item\t" PQ_64BIT_PRINT "\n", item->priority);
211 item = item->next;
223 pqueue_next(pitem **item)
227 if ( item == NULL || *item == NULL)
231 /* *item != NULL */
232 ret = *item;
233 *item = (*item)->next;