Module Name: src
Committed By: rillig
Date: Fri Aug 28 17:27:21 UTC 2020
Modified Files:
src/usr.bin/make: suff.c
Log Message:
make(1): clean up suffix handling
To generate a diff of this commit:
cvs rdiff -u -r1.126 -r1.127 src/usr.bin/make/suff.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/suff.c
diff -u src/usr.bin/make/suff.c:1.126 src/usr.bin/make/suff.c:1.127
--- src/usr.bin/make/suff.c:1.126 Fri Aug 28 06:37:21 2020
+++ src/usr.bin/make/suff.c Fri Aug 28 17:27:21 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: suff.c,v 1.126 2020/08/28 06:37:21 rillig Exp $ */
+/* $NetBSD: suff.c,v 1.127 2020/08/28 17:27:21 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -69,14 +69,14 @@
*/
#ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: suff.c,v 1.126 2020/08/28 06:37:21 rillig Exp $";
+static char rcsid[] = "$NetBSD: suff.c,v 1.127 2020/08/28 17:27:21 rillig Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)suff.c 8.4 (Berkeley) 3/21/94";
#else
-__RCSID("$NetBSD: suff.c,v 1.126 2020/08/28 06:37:21 rillig Exp $");
+__RCSID("$NetBSD: suff.c,v 1.127 2020/08/28 17:27:21 rillig Exp $");
#endif
#endif /* not lint */
#endif
@@ -2432,22 +2432,13 @@ Suff_FindDeps(GNode *gn)
}
-/*
- * Input:
- * gn node we're dealing with
- *
- */
static void
SuffFindDeps(GNode *gn, Lst slst)
{
- if (gn->type & OP_DEPS_FOUND) {
- /*
- * If dependencies already found, no need to do it again...
- */
+ if (gn->type & OP_DEPS_FOUND)
return;
- } else {
- gn->type |= OP_DEPS_FOUND;
- }
+ gn->type |= OP_DEPS_FOUND;
+
/*
* Make sure we have these set, may get revised below.
*/
@@ -2502,16 +2493,12 @@ SuffFindDeps(GNode *gn, Lst slst)
* Input:
* name Name of null suffix
*
- * Results:
- * None.
- *
* Side Effects:
* 'suffNull' is altered.
*
* Notes:
* Need to handle the changing of the null suffix gracefully so the
* old transformation rules don't just go away.
- *
*-----------------------------------------------------------------------
*/
void
@@ -2537,18 +2524,7 @@ Suff_SetNull(char *name)
}
}
-/*-
- *-----------------------------------------------------------------------
- * Suff_Init --
- * Initialize suffixes module
- *
- * Results:
- * None
- *
- * Side Effects:
- * Many
- *-----------------------------------------------------------------------
- */
+/* Initialize the suffixes module. */
void
Suff_Init(void)
{
@@ -2568,19 +2544,7 @@ Suff_Init(void)
}
-/*-
- *----------------------------------------------------------------------
- * Suff_End --
- * Cleanup the this module
- *
- * Results:
- * None
- *
- * Side Effects:
- * The memory is free'd.
- *----------------------------------------------------------------------
- */
-
+/* Clean up the suffixes module. */
void
Suff_End(void)
{