1: /* bk.h 2.5 6/6/80 */ 2: 3: #define BK_BUFSIZE 128 /* buffer size per line */ 4: 5: /* 6: * Macro definition of bk.c/bkinput(). 7: * This is used to replace a call to 8: * (*linesw[tp->t_line].l_input)(c,tp); 9: * with 10: * 11: * if (tp->t_line == NETLDISC) 12: * BKINPUT(c, tp); 13: * else 14: * (*linesw[tp->t_line].l_input)(c,tp); 15: */ 16: #define BKINPUT(c, tp) { \ 17: if ((tp)->t_rec == 0) { \ 18: *(tp)->t_cp++ = c; \ 19: if (++(tp)->t_inbuf == BK_BUFSIZE || (c) == '\n') { \ 20: (tp)->t_rec = 1; \ 21: wakeup((caddr_t)&(tp)->t_rawq); \ 22: } \ 23: } \ 24: }