diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-12-10 20:24:18 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-12-10 20:24:18 +0000 |
commit | f0f00b2ba05426cfa441008648bc5374fee06db2 (patch) | |
tree | 35566ea30b67a8e343c619dc9638465deb1258fe /usr.bin/m4/extern.h | |
parent | 01e46805c01c1545582d5b85ddad98e411f300ce (diff) |
cgd: add a typedef which describes elements in the push-back buffer. Make
that typedef 'short'. 'char' (which was previously used) because char
may be unsigned and ((char)EOF) != EOF if that is the case. That was
causing the (char)EOF (0xff) pushed back in main to be interepreted as
a character, and, in some cases, to be written to the output. 'short'
was used rather than 'signed char' because if the latter is used,
0xff characters in the input would confuse m4. (No point in introducing
(more?) 8-bit lossage.)
Diffstat (limited to 'usr.bin/m4/extern.h')
-rw-r--r-- | usr.bin/m4/extern.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/m4/extern.h b/usr.bin/m4/extern.h index e4f7e7de37e..3fa5d195e60 100644 --- a/usr.bin/m4/extern.h +++ b/usr.bin/m4/extern.h @@ -1,4 +1,4 @@ -/* $OpenBSD: extern.h,v 1.3 1996/06/26 05:36:12 deraadt Exp $ */ +/* $OpenBSD: extern.h,v 1.4 1997/12/10 20:24:12 deraadt Exp $ */ /* $NetBSD: extern.h,v 1.3 1996/01/13 23:25:24 pk Exp $ */ /*- @@ -82,13 +82,13 @@ extern int fp; /* m4 call frame pointer */ extern int ilevel; /* input file stack pointer */ extern int oindex; /* diversion index. */ extern int sp; /* current m4 stack pointer */ -extern char *bp; /* first available character */ -extern char buf[]; /* push-back buffer */ -extern char *bufbase; /* buffer base for this ilevel */ -extern char *bbase[]; /* buffer base per ilevel */ +extern pbent *bp; /* first available character */ +extern pbent buf[]; /* push-back buffer */ +extern pbent *bufbase; /* buffer base for this ilevel */ +extern pbent *bbase[]; /* buffer base per ilevel */ extern char ecommt[]; /* end character for comment */ extern char *endest; /* end of string space */ -extern char *endpbb; /* end of push-back buffer */ +extern pbent *endpbb; /* end of push-back buffer */ extern char *ep; /* first free char in strspace */ extern char lquote[]; /* left quote character (`) */ extern char *m4temp; /* filename for diversions */ |