freebsd-dev/usr.bin/m4
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
..
TEST Import OpenBSD m4 as of today. 1996-06-26 05:36:21 +00:00
eval.c Crank WARNS. 2002-04-20 01:49:10 +00:00
expr.c Crank WARNS. 2002-04-20 01:49:10 +00:00
extern.h Crank WARNS. 2002-04-20 01:49:10 +00:00
gnum4.c Crank WARNS. 2002-04-20 01:49:10 +00:00
look.c Bring OpenBSD m4(1) off of the OPENBSD vendor branch, and add the -s option, 2002-04-19 17:26:21 +00:00
m4.1 Bring OpenBSD m4(1) off of the OPENBSD vendor branch, and add the -s option, 2002-04-19 17:26:21 +00:00
main.c Crank WARNS. 2002-04-20 01:49:10 +00:00
Makefile Crank WARNS. 2002-04-20 01:49:10 +00:00
mdef.h Crank WARNS. 2002-04-20 01:49:10 +00:00
misc.c Crank WARNS. 2002-04-20 01:49:10 +00:00
NOTES BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
pathnames.h Bring OpenBSD m4(1) off of the OPENBSD vendor branch, and add the -s option, 2002-04-19 17:26:21 +00:00
stdd.h Bring OpenBSD m4(1) off of the OPENBSD vendor branch, and add the -s option, 2002-04-19 17:26:21 +00:00
trace.c Crank WARNS. 2002-04-20 01:49:10 +00:00