Juli Mallett
a1269e01b8
Rename eqrelval' which was renamed from
eqrel' to quiet a shadow warning
...
to `op' as suggested by Bruce, as this is used to store the operator between
vl and vr.
Submitted by: bde
2002-05-03 20:46:10 +00:00
Juli Mallett
90432ef88d
Revert vendor identifiers, and #if 0 what is #if 0/#else for OpenBSD.
...
Add __FBSDID() properly.
Requested by: bde, mike
2002-05-03 14:48:21 +00:00
Juli Mallett
8f12fc049c
Remove redundant declarations of getopt(3) externals (since <unistd.h> does
...
take care of them), and add __FreeBSD__ to the defined() checks for the
_PATH_DIVNAME.
2002-05-02 05:25:23 +00:00
Juli Mallett
26849aba03
Add some spurious veritcal whitespace to reduce diffs to OpenBSD.
2002-05-01 21:45:22 +00:00
Juli Mallett
bd2bfb5846
Merge local changes again, against ANSIfied m4(1).
2002-05-01 21:37:29 +00:00
Juli Mallett
82130df48c
Use %zu to print a size_t, not %u and definitely not %d.
...
Remove WARNS?=2, as GCC will usually throw a fit right now, and I'm not going
to mix WARNS and NO_WERROR.
Submitted by: fenner
2002-04-20 21:37:26 +00:00
Juli Mallett
815bee2f7b
Print a size_t as %u not %d.
...
Pointed out by: mike, des's tinderbox
2002-04-20 21:13:00 +00:00
Philippe Charnier
e8937ba009
Use `The .Nm utility'
2002-04-20 12:18:28 +00:00
Andrey A. Chernov
a2f7d5dc07
Prevent sign extension (again)
2002-04-20 02:04:58 +00:00
Juli Mallett
ccc5b4e6f4
Crank WARNS.
...
Cast sizeof() to (int), as it's being compared against an int, not a size_t.
If i is changed to a size_t, it means the logic must be slightly changed later
in the flow, where --i is checked to be >= 0. I am not sure I want to make a
logic change to account for clearing up a warning, when an aesthetic one will
keep from modifying the logic.
Other harmless casts, that I think I've made in the right directions.
Make gpbc() an inline function, rather than an obfuscated macro, make its
scratch space local, rather than global. The previous macro used a dirty
hack (logical AND in place of a conditional) which would lead GCC to throw
a fit (rightly so) as the logical check, as well as the incrementation of
a variable, were not used for anything.
const'ify a few places where gcc3 yells. xstrdup() some global consts in
places where we xstrdup() when not using consts, but tried to assign them
to non-consts before.
Don't use execv(2) if we don't have the kind of arguments it wants.
Reviewed by: asmodai obrien tjr
Submitted by: tjr (a gcc3 build log)
2002-04-20 01:49:10 +00:00
Andrey A. Chernov
81153b6b63
Prevent sign extension on characters with 8bit set
2002-04-19 19:43:46 +00:00
Juli Mallett
56ca2b35a4
Add __FBSDID, this file was unmodified so it was missed in the initial sweep.
2002-04-19 17:33:12 +00:00
Juli Mallett
acc9d40838
Bring OpenBSD m4(1) off of the OPENBSD vendor branch, and add the -s option,
...
$FreeBSD$ identifiers, and fix initialisation to stderr to happen in a function
as stderr is not the same in CURRENT as in OpenBSD.
Reviewed by: obrien
2002-04-19 17:26:21 +00:00
Juli Mallett
29fc00b3fb
Merge differences and correct the manual page.
2002-04-19 17:16:23 +00:00
Juli Mallett
b1ea3d46b7
This adds support for -s to the m4(1) utility, which causes #line directives
...
to be emitted as per the C preprocessor. It updates the manual page in
regards to standards accordingly.
PR: standards/36075
Submitted by: tjr
Reviewed by: mike
MFC after: 1 week
2002-04-17 17:26:32 +00:00
Warner Losh
d3cb5ded92
remove __P
2002-03-22 01:33:25 +00:00
Juli Mallett
8a998f1ea1
This commit was generated by cvs2svn to compensate for changes in r90744,
...
which included commits to RCS files with non-trunk default branches.
2002-02-16 21:27:48 +00:00
Juli Mallett
e3d8671772
Import OpenBSD m4 as of today.
2002-02-16 21:27:48 +00:00
Juli Mallett
d1bbdb91ad
Import OpenBSD m4 as of today.
2001-11-16 23:50:40 +00:00
Juli Mallett
add74ed370
Import OpenBSD m4 as of today.
2001-09-27 11:40:33 +00:00
Juli Mallett
e98bffde50
Import OpenBSD m4 as of today.
2001-09-18 14:55:52 +00:00
David E. O'Brien
de9b3b9034
Remove the local basename in favor of the libc version.
...
Remove xmalloc and xstrdup and do the error checking at the place of use.
2001-07-24 14:09:47 +00:00
Dima Dorfman
f247324df7
Remove whitespace at EOL.
2001-07-15 08:06:20 +00:00
Gregory Neil Shapiro
1d3ebaf302
Make sure the len() builtin always returns an answer. Previously,
...
len(`') didn't return an answer. Now it returns 0.
PR: bin/12942
MFC after: 5 days
2001-05-29 03:32:38 +00:00
Gregory Neil Shapiro
4ba4d3873a
String operations could silently truncate long strings, leaving the output
...
corrupted. Mark's patch fixes this be removing the MAXTOK limitation on
substring operations and allowing the putback buffer size to be the limiting
factor. If the putback buffer size if reached, m4 gives an error instead of
silently truncating the string.
PR: bin/26619
Submitted by: Mark Peek <mark-ml@whistle.com>
MFC after: 5 days
2001-05-18 18:35:34 +00:00
Gregory Neil Shapiro
164c01f05b
Clean up temporary file(s) and directory when m4 exits without falling
...
through main() (e.g., signals or calls to errx()).
PR: conf/25715
2001-04-16 18:36:35 +00:00
John Hay
b88a90fd4c
The secure temporary directory is always created, so always remove it.
2001-02-28 19:21:44 +00:00
Kris Kennaway
50d793ebb0
Fix format string warnings.
...
Submitted by: nra
Obtained from: NetBSD
2000-11-27 04:26:39 +00:00
Kris Kennaway
4f377e65c4
Create temporary files in a secure directory, instead of using multiple
...
filenames based on a single invocation of mktemp() in /tmp, which is
easily predictable after the first one.
Audited by: markm
2000-11-22 11:09:30 +00:00
Ruslan Ermilov
8fe908ef0c
mdoc(7) police: use the new features of the Nm macro.
2000-11-20 19:21:22 +00:00
Warner Losh
62f882d620
getopt and friends are declared in <unistd.h>
...
getopt returns -1 not EOF.
2000-09-04 06:09:54 +00:00
Warner Losh
584b694b75
Remove unnecessary extern definition of strrchr. It is defined in
...
string.h, which already was included.
2000-08-16 16:39:42 +00:00
Kris Kennaway
a8b4fa4aaf
Typo
...
Obtained from: OpenBSD
1999-11-15 03:13:23 +00:00
Juli Mallett
9e430e8c8a
Import OpenBSD m4 as of today.
1999-11-09 18:16:18 +00:00
Peter Wemm
c3aac50f28
$Id$ -> $FreeBSD$
1999-08-28 01:08:13 +00:00
Mike Pritchard
a4cab7d390
Various man page cleanup:
...
- Sort xrefs
- Be consistent with section names as outlines in mdoc(7).
- Other misc mdoc cleanup.
PR: doc/13144
Submitted by: Alexey M. Zelkin <phantom@cris.net>
1999-08-15 08:25:34 +00:00
Steve Price
4f3a383e26
Change the wording to reflect that only the first character of the two
...
arguments to changequote are significant.
PR: 8282
1998-12-13 23:15:50 +00:00
Steve Price
bbfd144724
Make the builtin unix macro work as it should (well like Solaris's,
...
GNU's, and OSF1's).
1998-09-07 22:09:13 +00:00
Robert Nordier
d41e2bb8a1
Correct typo: loosing --> losing
1998-06-26 14:25:18 +00:00
Philippe Charnier
306005e78c
.Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq.
1998-03-23 07:48:45 +00:00
Jonathan Lemon
ef2cea8123
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
1997-08-18 21:01:45 +00:00
Philippe Charnier
9510535891
Use err(3) instead of local redefinition. Remove progname.
1997-07-23 06:50:06 +00:00
Peter Wemm
65b3003d2d
kill the undead
1997-07-13 14:26:00 +00:00
Bruce Evans
161c4ac479
The m4 doc sources aren't in Lite* or FreeBSD, and Lite2 removed this
...
unused Makefile.
1997-07-13 07:58:56 +00:00
Bruce Evans
aac7bd5670
This commit was generated by cvs2svn to compensate for changes in r27241,
...
which included commits to RCS files with non-trunk default branches.
1997-07-06 06:54:14 +00:00
Bruce Evans
c44252b6e8
Finish importing Lite2's src/usr.bin, except for ex, diff, grep, mail,
...
pascal and vmstat.sparc. All changed files on the vendor branch should
already have been imported.
1997-07-06 06:54:14 +00:00
Joerg Wunsch
232eaee62a
Make the $@ macro behave as described in the man page.
...
This patch has been submitted by Andreas Burmester (i think) on the
German Usenet long ago. Andreas told me that our m4 has quite more
subtle bugs, so we might consider using NGU m4 instead.
1997-04-13 17:51:32 +00:00
Juli Mallett
836b9b6243
Import OpenBSD m4 as of today.
1997-04-04 18:41:29 +00:00
Juli Mallett
8bb9171ccb
This commit was generated by cvs2svn to compensate for changes in r24628,
...
which included commits to RCS files with non-trunk default branches.
1997-04-04 18:41:29 +00:00
Warner Losh
1c8af87873
compare return value from getopt against -1 rather than EOF, per the final
...
posix standard on the topic.
1997-03-29 04:34:07 +00:00