Lines Matching refs:tbuf
58 struct tbuf { struct
67 } *tbuf; argument
99 static void update(struct tbuf *);
102 static int tcmp(struct tbuf *, struct tbuf *);
133 if ((tbuf = (struct tbuf *)calloc(a_tsize, in main()
134 sizeof (struct tbuf))) == NULL) { in main()
217 struct tbuf *tp; in loop()
229 for (tp = tbuf; tp <= &tbuf[tsize]; tp++) in loop()
248 update(&tbuf[iline()]); in loop()
295 if (EQN(wb.ut_line, tbuf[i].tline)) in iline()
299 if ((tbuf = (struct tbuf *)realloc(tbuf, a_tsize * in iline()
300 sizeof (struct tbuf))) == NULL) { in iline()
306 CPYN(tbuf[tsize].tline, wb.ut_line); in iline()
307 tbuf[tsize].tdev = lintodev(wb.ut_line); in iline()
314 struct tbuf *tp; in upall()
317 for (tp = tbuf; tp <= &tbuf[tsize]; tp++) in upall()
325 update(struct tbuf *tp) in update()
413 struct tbuf *tp; in printlin()
423 qsort((char *)tbuf, tsize + 1, sizeof (tbuf[0]), in printlin()
425 for (tp = tbuf; tp <= &tbuf[tsize]; tp++) { in printlin()
446 tcmp(struct tbuf *t1, struct tbuf *t2) in tcmp()