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): inline MakeTimeStamp in Make_OODate
details: https://anonhg.NetBSD.org/src/rev/26aa774de51c
branches: trunk
changeset: 945061:26aa774de51c
user: rillig <rillig%NetBSD.org@localhost>
date: Mon Oct 19 19:48:09 2020 +0000
description:
make(1): inline MakeTimeStamp in Make_OODate
diffstat:
usr.bin/make/make.c | 14 +++++---------
1 files changed, 5 insertions(+), 9 deletions(-)
diffs (42 lines):
diff -r 574072e5def1 -r 26aa774de51c usr.bin/make/make.c
--- a/usr.bin/make/make.c Mon Oct 19 19:45:50 2020 +0000
+++ b/usr.bin/make/make.c Mon Oct 19 19:48:09 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: make.c,v 1.162 2020/10/19 19:45:50 rillig Exp $ */
+/* $NetBSD: make.c,v 1.163 2020/10/19 19:48:09 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -107,7 +107,7 @@
#include "job.h"
/* "@(#)make.c 8.1 (Berkeley) 6/6/93" */
-MAKE_RCSID("$NetBSD: make.c,v 1.162 2020/10/19 19:45:50 rillig Exp $");
+MAKE_RCSID("$NetBSD: make.c,v 1.163 2020/10/19 19:48:09 rillig Exp $");
/* Sequence # to detect recursion. */
static unsigned int checked = 1;
@@ -192,12 +192,6 @@
}
}
-static void
-MakeTimeStamp(void *pgn, void *cgn)
-{
- Make_TimeStamp(pgn, cgn);
-}
-
/* See if the node is out of date with respect to its sources.
*
* Used by Make_Run when deciding which nodes to place on the
@@ -335,7 +329,9 @@
* thinking they're out-of-date.
*/
if (!oodate) {
- Lst_ForEach(gn->parents, MakeTimeStamp, gn);
+ GNodeListNode *ln;
+ for (ln = gn->parents->first; ln != NULL; ln = ln->next)
+ Make_TimeStamp(ln->datum, gn);
}
return oodate;
Home |
Main Index |
Thread Index |
Old Index