Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make make(1): clean up code style in targ.c
details: https://anonhg.NetBSD.org/src/rev/d7aaf8c81b48
branches: trunk
changeset: 957097:d7aaf8c81b48
user: rillig <rillig%NetBSD.org@localhost>
date: Mon Nov 16 22:28:44 2020 +0000
description:
make(1): clean up code style in targ.c
diffstat:
usr.bin/make/targ.c | 19 +++++++++++++------
1 files changed, 13 insertions(+), 6 deletions(-)
diffs (59 lines):
diff -r 415f11548046 -r d7aaf8c81b48 usr.bin/make/targ.c
--- a/usr.bin/make/targ.c Mon Nov 16 22:27:03 2020 +0000
+++ b/usr.bin/make/targ.c Mon Nov 16 22:28:44 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: targ.c,v 1.134 2020/11/16 22:27:03 rillig Exp $ */
+/* $NetBSD: targ.c,v 1.135 2020/11/16 22:28:44 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -119,7 +119,7 @@
#include "dir.h"
/* "@(#)targ.c 8.2 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: targ.c,v 1.134 2020/11/16 22:27:03 rillig Exp $");
+MAKE_RCSID("$NetBSD: targ.c,v 1.135 2020/11/16 22:28:44 rillig Exp $");
/* All target nodes found so far, but not the source nodes. */
static GNodeList *allTargets;
@@ -480,12 +480,12 @@
debug_printf("# *** MAIN TARGET ***\n");
}
if (pass >= 2) {
- if (gn->unmade) {
+ if (gn->unmade > 0) {
debug_printf("# %d unmade children\n", gn->unmade);
} else {
debug_printf("# No unmade children\n");
}
- if (! (gn->type & (OP_JOIN|OP_USE|OP_USEBEFORE|OP_EXEC))) {
+ if (!(gn->type & (OP_JOIN|OP_USE|OP_USEBEFORE|OP_EXEC))) {
if (gn->mtime != 0) {
debug_printf("# last modified %s: %s\n",
Targ_FmtTime(gn->mtime),
@@ -553,16 +553,23 @@
{
debug_printf("#*** Input graph:\n");
Targ_PrintNodes(allTargets, pass);
- debug_printf("\n\n");
- debug_printf("#\n# Files that are only sources:\n");
+ debug_printf("\n");
+ debug_printf("\n");
+
+ debug_printf("#\n");
+ debug_printf("# Files that are only sources:\n");
PrintOnlySources();
+
debug_printf("#*** Global Variables:\n");
Var_Dump(VAR_GLOBAL);
+
debug_printf("#*** Command-line Variables:\n");
Var_Dump(VAR_CMDLINE);
+
debug_printf("\n");
Dir_PrintDirectories();
debug_printf("\n");
+
Suff_PrintAll();
}
Home |
Main Index |
Thread Index |
Old Index