Lines Matching refs:item
65 pitem *item;
70 item = pitem_new(3, NULL);
71 pqueue_insert(pq, item);
73 item = pitem_new(1, NULL);
74 pqueue_insert(pq, item);
76 item = pitem_new(2, NULL);
77 pqueue_insert(pq, item);
79 item = pqueue_find(pq, 1);
80 fprintf(stderr, "found %ld\n", item->priority);
82 item = pqueue_find(pq, 2);
83 fprintf(stderr, "found %ld\n", item->priority);
85 item = pqueue_find(pq, 3);
86 fprintf(stderr, "found %ld\n", item ? item->priority: 0);
90 for(item = pqueue_pop(pq); item != NULL; item = pqueue_pop(pq))
91 pitem_free(item);