Lines Matching defs:buf
97 struct buf *b, *bn;
109 static struct buf *
110 addbuf(PMPSTR mp, unsigned char *buf, int size)
112 struct buf *nbuf;
114 nbuf = (struct buf *) malloc(sizeof(struct buf));
125 memcpy(nbuf->pnt, buf, (size_t) size);
146 struct buf *buf = mp->tail;
148 mp->tail = buf->next;
155 free(buf->pnt);
156 free(buf);
250 struct buf *buf = mp->tail;
254 pos = buf->pos;
257 while (pos >= buf->size) {
258 buf = buf->next;
259 if (!buf)
261 pos = buf->pos;
267 while (pos >= buf->size) {
268 buf = buf->next;
269 if (!buf)
271 pos = buf->pos;
273 xing[i] = buf->pnt[pos];
309 struct buf *buf = mp->tail;
310 if (!buf)
313 pos = buf->pos;
320 while (pos >= buf->size) {
321 buf = buf->next;
322 if (!buf) {
326 pos = buf->pos;
328 b[3] = buf->pnt[pos];