summaryrefslogtreecommitdiffstats
path: root/usr.bin/m4
diff options
context:
space:
mode:
authorjlemon <jlemon@FreeBSD.org>1997-08-18 21:01:45 +0000
committerjlemon <jlemon@FreeBSD.org>1997-08-18 21:01:45 +0000
commit3d3878a0ed9ddeffdd28d8dcfa7932f023ae328e (patch)
tree65b3f3b150a7e8528e9a7f0ad13d7fac695750f4 /usr.bin/m4
parent667917cb165b00a17aecdda0a1a4417dbaedc55b (diff)
downloadFreeBSD-src-3d3878a0ed9ddeffdd28d8dcfa7932f023ae328e.zip
FreeBSD-src-3d3878a0ed9ddeffdd28d8dcfa7932f023ae328e.tar.gz
divnum is no longer silently restricted to the range 0..9. (cf: 4098)
changequote(,) is now a synonym for changequote(). (cf: 803) buffer size for translit() enlarged to handle a full string PR: 803, 4098
Diffstat (limited to 'usr.bin/m4')
-rw-r--r--usr.bin/m4/eval.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/usr.bin/m4/eval.c b/usr.bin/m4/eval.c
index 6d7df57..4997da5 100644
--- a/usr.bin/m4/eval.c
+++ b/usr.bin/m4/eval.c
@@ -39,7 +39,7 @@
static char sccsid[] = "@(#)eval.c 8.1 (Berkeley) 6/6/93";
#endif
static const char rcsid[] =
- "$Id$";
+ "$Id: eval.c,v 1.7 1997/07/23 06:50:04 charnier Exp $";
#endif /* not lint */
/*
@@ -307,7 +307,7 @@ register int td;
* characters in the "to" string.
*/
if (argc > 3) {
- char temp[MAXTOK];
+ char temp[STRSPMAX+1];
if (argc > 4)
map(temp, argv[2], argv[3], argv[4]);
else
@@ -617,9 +617,13 @@ register int argc;
if (argc > 2) {
if (*argv[2])
lquote = *argv[2];
+ else
+ lquote = LQUOTE;
if (argc > 3) {
if (*argv[3])
rquote = *argv[3];
+ else
+ rquote = RQUOTE;
}
else
rquote = lquote;
@@ -661,6 +665,7 @@ void
dodiv(n)
register int n;
{
+ oindex = n;
if (n < 0 || n >= MAXOUT)
n = 0; /* bitbucket */
if (outfile[n] == NULL) {
@@ -668,7 +673,6 @@ register int n;
if ((outfile[n] = fopen(m4temp, "w")) == NULL)
errx(1, "%s: cannot divert", m4temp);
}
- oindex = n;
active = outfile[n];
}
OpenPOWER on IntegriCloud