Lines Matching refs:item
62 struct qentry *item;
64 item = grep_malloc(sizeof(struct qentry));
65 item->data.dat = grep_malloc(sizeof(char) * x->len);
66 item->data.len = x->len;
67 item->data.line_no = x->line_no;
68 item->data.off = x->off;
69 memcpy(item->data.dat, x->dat, x->len);
70 item->data.file = x->file;
72 STAILQ_INSERT_TAIL(&queue, item, list);
75 item = dequeue();
76 free(item->data.dat);
77 free(item);
84 struct qentry *item;
86 item = STAILQ_FIRST(&queue);
87 if (item == NULL)
92 return (item);
98 struct qentry *item;
100 while ((item = dequeue()) != NULL) {
101 printline(&item->data, '-', NULL, 0);
102 free(item->data.dat);
103 free(item);
110 struct qentry *item;
112 while ((item = dequeue()) != NULL) {
113 free(item->data.dat);
114 free(item);