1: # include <ingres.h>
2: # include "scanner.h"
3: # include <sccs.h>
4:
5: SCCSID(@(#)s_inout.c 8.1 12/31/84)
6:
7: /* TWO CHARACTER STACK FOR 'UNGETC' BACKUP */
8: char Pchar[2];
9: int Pctr;
10:
11:
12: /*
13: ** BACKUP
14: ** saves the character argument in the global stack 'Pchar'
15: **/
16: backup(chr)
17: char chr;
18: {
19: extern int yyline;
20:
21: if (Pctr == 2)
22: syserr("overflow in backup()");
23: Pchar[Pctr++] = chr;
24: if (chr == '\n')
25: yyline--;
26: }
Defined functions
Defined variables
Pchar
defined in line
8; used 1 times
Pctr
defined in line
9; used 2 times