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: }

Defined macros

BKINPUT defined in line 16; never used
BK_BUFSIZE defined in line 3; used 1 times
  • in line 19
Last modified: 1982-11-02
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 544
Valid CSS Valid XHTML 1.0 Strict