Lines Matching refs:tbuf
60 struct tbuf { struct
69 } *tbuf; argument
101 static void update(struct tbuf *);
104 static int tcmp(struct tbuf *, struct tbuf *);
135 if ((tbuf = (struct tbuf *)calloc(a_tsize, in main()
136 sizeof (struct tbuf))) == NULL) { in main()
219 struct tbuf *tp; in loop()
231 for (tp = tbuf; tp <= &tbuf[tsize]; tp++) in loop()
249 update(&tbuf[iline()]); in loop()
296 if (EQN(wb.ut_line, tbuf[i].tline)) in iline()
300 if ((tbuf = (struct tbuf *)realloc(tbuf, a_tsize * in iline()
301 sizeof (struct tbuf))) == NULL) { in iline()
307 CPYN(tbuf[tsize].tline, wb.ut_line); in iline()
308 tbuf[tsize].tdev = lintodev(wb.ut_line); in iline()
315 struct tbuf *tp; in upall()
318 for (tp = tbuf; tp <= &tbuf[tsize]; tp++) in upall()
326 update(struct tbuf *tp) in update()
414 struct tbuf *tp; in printlin()
424 qsort((char *)tbuf, tsize + 1, sizeof (tbuf[0]), in printlin()
426 for (tp = tbuf; tp <= &tbuf[tsize]; tp++) { in printlin()
447 tcmp(struct tbuf *t1, struct tbuf *t2) in tcmp()