diff options
author | jmallett <jmallett@FreeBSD.org> | 2002-09-18 16:13:03 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2002-09-18 16:13:03 +0000 |
commit | b1a7ec95a8c436a372ffbd98f7bc0dd1ac347451 (patch) | |
tree | a7eadfee50e5871652c0862c86c068d7542d59b1 /usr.bin/make/for.c | |
parent | 9d78d39578a32950b1e4b145c514518052390c70 (diff) | |
download | FreeBSD-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.c | 8 |
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); |