Lines Matching defs:tp
222 TEXT *tp;
231 if ((tp = text_init(sp, NULL, 0, len)) == NULL)
241 MEMCPY(tp->lb, p + fcno, clen);
242 tp->len = clen;
246 TAILQ_INSERT_TAIL(cbp->textq, tp, q);
247 cbp->len += tp->len;
286 TEXT *tp;
288 CALLOC(sp, tp, 1, sizeof(TEXT));
289 if (tp == NULL)
292 if ((tp->lb_len = total_len * sizeof(CHAR_T)) != 0) {
293 MALLOC(sp, tp->lb, tp->lb_len);
294 if (tp->lb == NULL) {
295 free(tp);
299 MEMCPY(tp->lb, p, len);
301 tp->len = len;
302 return (tp);
314 TEXT *tp;
316 while ((tp = TAILQ_FIRST(headp)) != NULL) {
317 TAILQ_REMOVE(headp, tp, q);
318 text_free(tp);
329 text_free(TEXT *tp)
331 free(tp->lb);
332 free(tp);