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): migrate Make_ProcessWait from Lst_ForE...



details:   https://anonhg.NetBSD.org/src/rev/ddfaaf7e12e5
branches:  trunk
changeset: 1014686:ddfaaf7e12e5
user:      rillig <rillig%NetBSD.org@localhost>
date:      Mon Sep 28 23:02:02 2020 +0000

description:
make(1): migrate Make_ProcessWait from Lst_ForEachUntil to Lst_ForEach

diffstat:

 usr.bin/make/make.c |  9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diffs (44 lines):

diff -r d529c12f532e -r ddfaaf7e12e5 usr.bin/make/make.c
--- a/usr.bin/make/make.c       Mon Sep 28 22:38:32 2020 +0000
+++ b/usr.bin/make/make.c       Mon Sep 28 23:02:02 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: make.c,v 1.154 2020/09/28 22:38:32 rillig Exp $        */
+/*     $NetBSD: make.c,v 1.155 2020/09/28 23:02:02 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.154 2020/09/28 22:38:32 rillig Exp $");
+MAKE_RCSID("$NetBSD: make.c,v 1.155 2020/09/28 23:02:02 rillig Exp $");
 
 /* Sequence # to detect recursion. */
 static unsigned int checked = 1;
@@ -1175,7 +1175,7 @@
     Lst_Free(examine);
 }
 
-static int
+static void
 link_parent(void *cnp, void *pnp)
 {
     GNode *cn = cnp;
@@ -1184,7 +1184,6 @@
     Lst_Append(pn->children, cn);
     Lst_Append(cn->parents, pn);
     pn->unmade++;
-    return 0;
 }
 
 /* Make the .WAIT node depend on the previous children */
@@ -1227,7 +1226,7 @@
     /* Get it displayed in the diag dumps */
     Lst_Prepend(Targ_List(), pgn);
 
-    Lst_ForEachUntil(targs, link_parent, pgn);
+    Lst_ForEach(targs, link_parent, pgn);
 
     /* Start building with the 'dummy' .MAIN' node */
     MakeBuildChild(pgn, NULL);



Home | Main Index | Thread Index | Old Index