Module Name: src Committed By: rillig Date: Mon Oct 19 19:48:09 UTC 2020
Modified Files: src/usr.bin/make: make.c Log Message: make(1): inline MakeTimeStamp in Make_OODate To generate a diff of this commit: cvs rdiff -u -r1.162 -r1.163 src/usr.bin/make/make.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/make/make.c diff -u src/usr.bin/make/make.c:1.162 src/usr.bin/make/make.c:1.163 --- src/usr.bin/make/make.c:1.162 Mon Oct 19 19:45:50 2020 +++ src/usr.bin/make/make.c Mon Oct 19 19:48:09 2020 @@ -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 @@ Make_TimeStamp(GNode *pgn, GNode *cgn) } } -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 @@ Make_OODate(GNode *gn) * 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;