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 make.c and suff.c
details: https://anonhg.NetBSD.org/src/rev/cb33ca7c2c5a
branches: trunk
changeset: 946119:cb33ca7c2c5a
user: rillig <rillig%NetBSD.org@localhost>
date: Mon Nov 16 22:31:42 2020 +0000
description:
make(1): clean up code style in make.c and suff.c
diffstat:
usr.bin/make/make.c | 8 ++++----
usr.bin/make/suff.c | 6 +++---
2 files changed, 7 insertions(+), 7 deletions(-)
diffs (63 lines):
diff -r 2ee34b50e899 -r cb33ca7c2c5a usr.bin/make/make.c
--- a/usr.bin/make/make.c Mon Nov 16 22:28:44 2020 +0000
+++ b/usr.bin/make/make.c Mon Nov 16 22:31:42 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: make.c,v 1.208 2020/11/16 21:39:22 rillig Exp $ */
+/* $NetBSD: make.c,v 1.209 2020/11/16 22:31:42 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -102,7 +102,7 @@
#include "job.h"
/* "@(#)make.c 8.1 (Berkeley) 6/6/93" */
-MAKE_RCSID("$NetBSD: make.c,v 1.208 2020/11/16 21:39:22 rillig Exp $");
+MAKE_RCSID("$NetBSD: make.c,v 1.209 2020/11/16 22:31:42 rillig Exp $");
/* Sequence # to detect recursion. */
static unsigned int checked_seqno = 1;
@@ -279,7 +279,7 @@
*/
DEBUG0(MAKE, ".JOIN node...");
DEBUG1(MAKE, "source %smade...", gn->flags & CHILDMADE ? "" : "not ");
- oodate = (gn->flags & CHILDMADE) ? TRUE : FALSE;
+ oodate = (gn->flags & CHILDMADE) != 0;
} else if (gn->type & (OP_FORCE|OP_EXEC|OP_PHONY)) {
/*
* A node which is the object of the force (!) operator or which has
@@ -309,7 +309,7 @@
if (gn->flags & FORCE)
debug_printf("non existing child...");
}
- oodate = (gn->flags & FORCE) ? TRUE : FALSE;
+ oodate = (gn->flags & FORCE) != 0;
}
#ifdef USE_META
diff -r 2ee34b50e899 -r cb33ca7c2c5a usr.bin/make/suff.c
--- a/usr.bin/make/suff.c Mon Nov 16 22:28:44 2020 +0000
+++ b/usr.bin/make/suff.c Mon Nov 16 22:31:42 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: suff.c,v 1.244 2020/11/16 21:39:22 rillig Exp $ */
+/* $NetBSD: suff.c,v 1.245 2020/11/16 22:31:42 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -114,7 +114,7 @@
#include "dir.h"
/* "@(#)suff.c 8.4 (Berkeley) 3/21/94" */
-MAKE_RCSID("$NetBSD: suff.c,v 1.244 2020/11/16 21:39:22 rillig Exp $");
+MAKE_RCSID("$NetBSD: suff.c,v 1.245 2020/11/16 22:31:42 rillig Exp $");
#define SUFF_DEBUG0(text) DEBUG0(SUFF, text)
#define SUFF_DEBUG1(fmt, arg1) DEBUG1(SUFF, fmt, arg1)
@@ -1116,7 +1116,7 @@
/*
* Break the result into a vector of strings whose nodes
* we can find, then add those nodes to the members list.
- * Unfortunately, we can't use brk_string because it
+ * Unfortunately, we can't use Str_Words because it
* doesn't understand about variable specifications with
* spaces in them...
*/
Home |
Main Index |
Thread Index |
Old Index