summaryrefslogtreecommitdiffstats
path: root/usr.bin/make/for.c
diff options
context:
space:
mode:
authorjmallett <jmallett@FreeBSD.org>2002-09-18 16:13:03 +0000
committerjmallett <jmallett@FreeBSD.org>2002-09-18 16:13:03 +0000
commitb1a7ec95a8c436a372ffbd98f7bc0dd1ac347451 (patch)
treea7eadfee50e5871652c0862c86c068d7542d59b1 /usr.bin/make/for.c
parent9d78d39578a32950b1e4b145c514518052390c70 (diff)
downloadFreeBSD-src-b1a7ec95a8c436a372ffbd98f7bc0dd1ac347451.zip
FreeBSD-src-b1a7ec95a8c436a372ffbd98f7bc0dd1ac347451.tar.gz
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.
Diffstat (limited to 'usr.bin/make/for.c')
-rw-r--r--usr.bin/make/for.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/make/for.c b/usr.bin/make/for.c
index d5aa54d..c152008 100644
--- a/usr.bin/make/for.c
+++ b/usr.bin/make/for.c
@@ -192,7 +192,7 @@ For_Eval (line)
ptr++;
wrd = ptr--;
}
- DEBUGF(FOR, "For: Iterator %s List %s\n", forVar, sub);
+ DEBUGF(FOR, ("For: Iterator %s List %s\n", forVar, sub));
if (ptr - wrd > 0)
ADDWORD();
else
@@ -210,7 +210,7 @@ For_Eval (line)
if (strncmp(ptr, "endfor", 6) == 0 &&
(isspace((unsigned char) ptr[6]) || !ptr[6])) {
- DEBUGF(FOR, "For: end for %d\n", forLevel);
+ DEBUGF(FOR, ("For: end for %d\n", forLevel));
if (--forLevel < 0) {
Parse_Error (level, "for-less endfor");
return 0;
@@ -219,7 +219,7 @@ For_Eval (line)
else if (strncmp(ptr, "for", 3) == 0 &&
isspace((unsigned char) ptr[3])) {
forLevel++;
- DEBUGF(FOR, "For: new loop %d\n", forLevel);
+ DEBUGF(FOR, ("For: new loop %d\n", forLevel));
}
}
@@ -255,7 +255,7 @@ ForExec(namep, argp)
For *arg = (For *) argp;
int len;
Var_Set(arg->var, name, VAR_GLOBAL);
- DEBUGF(FOR, "--- %s = %s\n", arg->var, name);
+ DEBUGF(FOR, ("--- %s = %s\n", arg->var, name));
Parse_FromString(Var_Subst(arg->var, (char *) Buf_GetAll(arg->buf, &len),
VAR_GLOBAL, FALSE));
Var_Delete(arg->var, VAR_GLOBAL);
OpenPOWER on IntegriCloud