Module Name: src
Committed By: rillig
Date: Sat Jan 22 16:24:45 UTC 2022
Modified Files:
src/usr.bin/make: main.c parse.c
Log Message:
make: clean up comments
To generate a diff of this commit:
cvs rdiff -u -r1.573 -r1.574 src/usr.bin/make/main.c
cvs rdiff -u -r1.653 -r1.654 src/usr.bin/make/parse.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/main.c
diff -u src/usr.bin/make/main.c:1.573 src/usr.bin/make/main.c:1.574
--- src/usr.bin/make/main.c:1.573 Sat Jan 15 22:18:04 2022
+++ src/usr.bin/make/main.c Sat Jan 22 16:24:45 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.573 2022/01/15 22:18:04 rillig Exp $ */
+/* $NetBSD: main.c,v 1.574 2022/01/22 16:24:45 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -111,7 +111,7 @@
#include "trace.h"
/* "@(#)main.c 8.3 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: main.c,v 1.573 2022/01/15 22:18:04 rillig Exp $");
+MAKE_RCSID("$NetBSD: main.c,v 1.574 2022/01/22 16:24:45 rillig Exp $");
#if defined(MAKE_NATIVE) && !defined(lint)
__COPYRIGHT("@(#) Copyright (c) 1988, 1989, 1990, 1993 "
"The Regents of the University of California. "
@@ -920,9 +920,9 @@ runTargets(void)
}
/*
- * Set up the .TARGETS variable to contain the list of targets to be
- * created. If none specified, make the variable empty -- the parser
- * will fill the thing in with the default or .MAIN target.
+ * Set up the .TARGETS variable to contain the list of targets to be created.
+ * If none specified, make the variable empty for now, the parser will fill
+ * in the default or .MAIN target later.
*/
static void
InitVarTargets(void)
Index: src/usr.bin/make/parse.c
diff -u src/usr.bin/make/parse.c:1.653 src/usr.bin/make/parse.c:1.654
--- src/usr.bin/make/parse.c:1.653 Thu Jan 20 19:24:53 2022
+++ src/usr.bin/make/parse.c Sat Jan 22 16:24:45 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: parse.c,v 1.653 2022/01/20 19:24:53 rillig Exp $ */
+/* $NetBSD: parse.c,v 1.654 2022/01/22 16:24:45 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -106,7 +106,7 @@
#include "pathnames.h"
/* "@(#)parse.c 8.3 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: parse.c,v 1.653 2022/01/20 19:24:53 rillig Exp $");
+MAKE_RCSID("$NetBSD: parse.c,v 1.654 2022/01/22 16:24:45 rillig Exp $");
/*
* A file being read.
@@ -2698,7 +2698,7 @@ FindSemicolon(char *p)
}
/*
- * dependency -> target... op [source...] [';' command]
+ * dependency -> [target...] op [source...] [';' command]
* op -> ':' | '::' | '!'
*/
static void
@@ -2711,7 +2711,7 @@ ParseDependencyLine(char *line)
/*
* For some reason - probably to make the parser impossible -
* a ';' can be used to separate commands from dependencies.
- * Attempt to avoid ';' inside substitution patterns.
+ * Attempt to skip over ';' inside substitution patterns.
*/
{
char *semicolon = FindSemicolon(line);