diff options
| author | rillig <rillig@NetBSD.org> | 2020-11-27 08:07:26 +0000 |
|---|---|---|
| committer | rillig <rillig@NetBSD.org> | 2020-11-27 08:07:26 +0000 |
| commit | a608d1ec766b4c446ededcd40557e2c8db4597f0 (patch) | |
| tree | 47994656d328459578085fa9250a8299652acd11 /usr.bin/make/make.c | |
| parent | db8b79cc63d3031e793d656bb359fad03d031db4 (diff) | |
make(1): inline Lst_ForEachUntil in meta mode
This means no more unnecessary void pointers in function signatures and
no more abstraction level at checking a single element of a list. In
most cases it is more appropriate to define a function that operates on
the list as a whole, thereby hiding implementation details like the
ListNode from the caller.
Diffstat (limited to 'usr.bin/make/make.c')
| -rw-r--r-- | usr.bin/make/make.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/make/make.c b/usr.bin/make/make.c index 52f60d8f467..3d0f12eaef7 100644 --- a/usr.bin/make/make.c +++ b/usr.bin/make/make.c @@ -1,4 +1,4 @@ -/* $NetBSD: make.c,v 1.217 2020/11/24 23:13:09 rillig Exp $ */ +/* $NetBSD: make.c,v 1.218 2020/11/27 08:07:26 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.217 2020/11/24 23:13:09 rillig Exp $"); +MAKE_RCSID("$NetBSD: make.c,v 1.218 2020/11/27 08:07:26 rillig Exp $"); /* Sequence # to detect recursion. */ static unsigned int checked_seqno = 1; @@ -1032,9 +1032,9 @@ MakePrintStatusOrder(GNode *gn) static void MakePrintStatusList(GNodeList *, int *); -/* Print the status of a top-level node, viz. it being up-to-date already +/* + * Print the status of a top-level node, viz. it being up-to-date already * or not created due to an error in a lower level. - * Callback function for Make_Run via Lst_ForEachUntil. */ static Boolean MakePrintStatus(GNode *gn, int *errors) |
