Make the DEBUGF() macro portable by (ugh) adding a Debug() function, which
authorMatthew Dillon <dillon@dragonflybsd.org>
Fri, 12 Nov 2004 22:42:36 +0000 (22:42 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Fri, 12 Nov 2004 22:42:36 +0000 (22:42 +0000)
commit913800f5bc9d2eed8ec5eec5b05ae85c77df5e3a
tree906696ef2dbf37ee5802fc91bfb31df64e1388f7
parent15c05cb02d086771a3e2beb024a1a99626f497f8
Make the DEBUGF() macro portable by (ugh) adding a Debug() function, which
is merely printf() but to stderr.  This takes care of the caveat which lead
to the use of a vararg macro -- getting everything to stderr.

Move common use of if (DEBUG(FOO)) printf... to DEBUGF(FOO, ...), using
variable length arguments to a macro.  Bump version as this makes DEBUG
statements *always* go to stderr rather than sometimes stdout.  There are
a few stragglers, which I will take care of as soon as I can.  Mostly these
relate to the need-for-death-of some of the remote job code.

Taken-From: FreeBSD/jmallett
23 files changed:
usr.bin/make/arch.c
usr.bin/make/buf.c
usr.bin/make/buf.h
usr.bin/make/compat.c
usr.bin/make/cond.c
usr.bin/make/config.h
usr.bin/make/dir.c
usr.bin/make/for.c
usr.bin/make/hash.c
usr.bin/make/hash.h
usr.bin/make/job.c
usr.bin/make/job.h
usr.bin/make/list.h
usr.bin/make/lst.h
usr.bin/make/main.c
usr.bin/make/make.c
usr.bin/make/make.h
usr.bin/make/nonints.h
usr.bin/make/parse.c
usr.bin/make/sprite.h
usr.bin/make/suff.c
usr.bin/make/targ.c
usr.bin/make/var.c