Module Name:    src
Committed By:   rillig
Date:           Wed Dec  7 10:28:48 UTC 2022

Modified Files:
        src/usr.bin/make: arch.c compat.c str.c

Log Message:
make: clean up comments


To generate a diff of this commit:
cvs rdiff -u -r1.211 -r1.212 src/usr.bin/make/arch.c
cvs rdiff -u -r1.242 -r1.243 src/usr.bin/make/compat.c
cvs rdiff -u -r1.93 -r1.94 src/usr.bin/make/str.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/arch.c
diff -u src/usr.bin/make/arch.c:1.211 src/usr.bin/make/arch.c:1.212
--- src/usr.bin/make/arch.c:1.211	Tue Sep 27 17:46:58 2022
+++ src/usr.bin/make/arch.c	Wed Dec  7 10:28:48 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: arch.c,v 1.211 2022/09/27 17:46:58 rillig Exp $	*/
+/*	$NetBSD: arch.c,v 1.212 2022/12/07 10:28:48 rillig Exp $	*/
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -126,7 +126,7 @@
 #include "config.h"
 
 /*	"@(#)arch.c	8.2 (Berkeley) 1/2/94"	*/
-MAKE_RCSID("$NetBSD: arch.c,v 1.211 2022/09/27 17:46:58 rillig Exp $");
+MAKE_RCSID("$NetBSD: arch.c,v 1.212 2022/12/07 10:28:48 rillig Exp $");
 
 typedef struct List ArchList;
 typedef struct ListNode ArchListNode;
@@ -305,11 +305,10 @@ Arch_ParseArchive(char **pp, GNodeList *
 		 */
 		/*
 		 * If member contains variables, try and substitute for them.
-		 * This will slow down archive specs with dynamic sources, of
-		 * course, since we'll be (non-)substituting them three
-		 * times, but them's the breaks -- we need to do this since
-		 * SuffExpandChildren calls us, otherwise we could assume the
-		 * thing would be taken care of later.
+		 * This slows down archive specs with dynamic sources, since
+		 * they are (non-)substituted three times, but we need to do
+		 * this since SuffExpandChildren calls us, otherwise we could
+		 * assume the substitutions would be taken care of later.
 		 */
 		if (doSubst) {
 			char *fullName;

Index: src/usr.bin/make/compat.c
diff -u src/usr.bin/make/compat.c:1.242 src/usr.bin/make/compat.c:1.243
--- src/usr.bin/make/compat.c:1.242	Mon Oct 10 21:17:25 2022
+++ src/usr.bin/make/compat.c	Wed Dec  7 10:28:48 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: compat.c,v 1.242 2022/10/10 21:17:25 rillig Exp $	*/
+/*	$NetBSD: compat.c,v 1.243 2022/12/07 10:28:48 rillig Exp $	*/
 
 /*
  * Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -91,15 +91,15 @@
 #include "pathnames.h"
 
 /*	"@(#)compat.c	8.2 (Berkeley) 3/19/94"	*/
-MAKE_RCSID("$NetBSD: compat.c,v 1.242 2022/10/10 21:17:25 rillig Exp $");
+MAKE_RCSID("$NetBSD: compat.c,v 1.243 2022/12/07 10:28:48 rillig Exp $");
 
 static GNode *curTarg = NULL;
 static pid_t compatChild;
 static int compatSigno;
 
 /*
- * CompatDeleteTarget -- delete the file of a failed, interrupted, or
- * otherwise duffed target if not inhibited by .PRECIOUS.
+ * Delete the file of a failed, interrupted, or otherwise duffed target,
+ * unless inhibited by .PRECIOUS.
  */
 static void
 CompatDeleteTarget(GNode *gn)

Index: src/usr.bin/make/str.c
diff -u src/usr.bin/make/str.c:1.93 src/usr.bin/make/str.c:1.94
--- src/usr.bin/make/str.c:1.93	Sat Jun 11 09:24:07 2022
+++ src/usr.bin/make/str.c	Wed Dec  7 10:28:48 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: str.c,v 1.93 2022/06/11 09:24:07 rillig Exp $	*/
+/*	$NetBSD: str.c,v 1.94 2022/12/07 10:28:48 rillig Exp $	*/
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -71,7 +71,7 @@
 #include "make.h"
 
 /*	"@(#)str.c	5.8 (Berkeley) 6/1/90"	*/
-MAKE_RCSID("$NetBSD: str.c,v 1.93 2022/06/11 09:24:07 rillig Exp $");
+MAKE_RCSID("$NetBSD: str.c,v 1.94 2022/12/07 10:28:48 rillig Exp $");
 
 
 static HashTable interned_strings;
@@ -313,8 +313,8 @@ in_range(char e1, char c, char e2)
 }
 
 /*
- * Str_Match -- Test if a string matches a pattern like "*.[ch]".
- * The following special characters are known *?\[] (as in fnmatch(3)).
+ * Test if a string matches a pattern like "*.[ch]". The pattern matching
+ * characters are '*', '?' and '[]', as in fnmatch(3).
  *
  * XXX: this function does not detect or report malformed patterns.
  *

Reply via email to