diff options
author | Marc Espie <espie@cvs.openbsd.org> | 1999-09-06 13:29:33 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 1999-09-06 13:29:33 +0000 |
commit | 15b823abfcdf66f4094be75d4323e178f83e2f7b (patch) | |
tree | ce85f1455ac25f179169b8f8b7014f1ff7134c09 /usr.bin/m4/mdef.h | |
parent | cd410cfd0a085cc78c2b7b30e65640c2cf463dc4 (diff) |
Remove STRSPACE limitations.
A bit wasteful, but not too intrusive.
Also remove pushback buffer limitations, as this would be mostly useless
otherwise.
Incidentally, pushback buffer overflow detection in pbstr was wrong.
Diffstat (limited to 'usr.bin/m4/mdef.h')
-rw-r--r-- | usr.bin/m4/mdef.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/usr.bin/m4/mdef.h b/usr.bin/m4/mdef.h index f4498c057ba..ed5baaa61c2 100644 --- a/usr.bin/m4/mdef.h +++ b/usr.bin/m4/mdef.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mdef.h,v 1.5 1999/09/06 13:10:48 espie Exp $ */ +/* $OpenBSD: mdef.h,v 1.6 1999/09/06 13:29:32 espie Exp $ */ /* $NetBSD: mdef.h,v 1.7 1996/01/13 23:25:27 pk Exp $ */ /* @@ -97,15 +97,15 @@ */ #define EOS '\0' -#define MAXINP 10 /* maximum include files */ -#define MAXOUT 10 /* maximum # of diversions */ -#define MAXSTR 512 /* maximum size of string */ -#define BUFSIZE 4096 /* size of pushback buffer */ -#define STACKMAX 1024 /* size of call stack */ -#define STRSPMAX 4096 /* size of string space */ -#define MAXTOK MAXSTR /* maximum chars in a tokn */ -#define HASHSIZE 199 /* maximum size of hashtab */ -#define MAXCCHARS 5 /* max size of comment/quote delim */ +#define MAXINP 10 /* maximum include files */ +#define MAXOUT 10 /* maximum # of diversions */ +#define MAXSTR 512 /* maximum size of string */ +#define BUFSIZE 4096 /* starting size of pushback buffer */ +#define STACKMAX 1024 /* size of call stack */ +#define STRSPMAX 4096 /* starting size of string space */ +#define MAXTOK MAXSTR /* maximum chars in a tokn */ +#define HASHSIZE 199 /* maximum size of hashtab */ +#define MAXCCHARS 5 /* max size of comment/quote delim */ #define ALL 1 #define TOP 0 @@ -177,6 +177,6 @@ typedef short pbent; /* pushback entry; needs to hold chars + EOF */ */ #define PARLEV (mstack[fp].sfra) #define CALTYP (mstack[fp-1].sfra) -#define PREVEP (mstack[fp+3].sstr) +#define PREVEP compute_prevep() #define PREVSP (fp-3) #define PREVFP (mstack[fp-2].sfra) |