Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[.joined/src/trunk]: .joined/src/usr.bin/make make: remove redundant comments...
details: https://anonhg.NetBSD.org/.joined/src/rev/148ee792ab61
branches: trunk
changeset: 359383:148ee792ab61
user: rillig <rillig%NetBSD.org@localhost>
date: Sat Jan 01 19:44:05 2022 +0000
description:
make: remove redundant comments from ParseDependencySourceSpecial
diffstat:
usr.bin/make/parse.c | 32 +++++---------------------------
usr.bin/make/suff.c | 6 +++---
2 files changed, 8 insertions(+), 30 deletions(-)
diffs (80 lines):
diff -r 4ba57fb0f20d -r 148ee792ab61 usr.bin/make/parse.c
--- a/usr.bin/make/parse.c Sat Jan 01 15:10:53 2022 +0000
+++ b/usr.bin/make/parse.c Sat Jan 01 19:44:05 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: parse.c,v 1.609 2021/12/31 01:34:45 rillig Exp $ */
+/* $NetBSD: parse.c,v 1.610 2022/01/01 19:44:05 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -110,7 +110,7 @@
#include "pathnames.h"
/* "@(#)parse.c 8.3 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: parse.c,v 1.609 2021/12/31 01:34:45 rillig Exp $");
+MAKE_RCSID("$NetBSD: parse.c,v 1.610 2022/01/01 19:44:05 rillig Exp $");
/* types and constants */
@@ -1312,31 +1312,9 @@
}
/*
- * If the target was one that doesn't take files as its sources
- * but takes something like suffixes, we take each
- * space-separated word on the line as a something and deal
- * with it accordingly.
- *
- * If the target was .SUFFIXES, we take each source as a
- * suffix and add it to the list of suffixes maintained by the
- * Suff module.
- *
- * If the target was a .PATH, we add the source as a directory
- * to search on the search path.
- *
- * If it was .INCLUDES, the source is taken to be the suffix of
- * files which will be #included and whose search path should
- * be present in the .INCLUDES variable.
- *
- * If it was .LIBS, the source is taken to be the suffix of
- * files which are considered libraries and whose search path
- * should be present in the .LIBS variable.
- *
- * If it was .NULL, the source is the suffix to use when a file
- * has no valid suffix.
- *
- * If it was .OBJDIR, the source is a new definition for .OBJDIR,
- * and will cause make to do a new chdir to that path.
+ * If the target was one that doesn't take files as its sources but takes
+ * something like suffixes, we take each space-separated word on the line as
+ * a something and deal with it accordingly.
*/
static void
ParseDependencySourceSpecial(ParseSpecial special, char *word,
diff -r 4ba57fb0f20d -r 148ee792ab61 usr.bin/make/suff.c
--- a/usr.bin/make/suff.c Sat Jan 01 15:10:53 2022 +0000
+++ b/usr.bin/make/suff.c Sat Jan 01 19:44:05 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: suff.c,v 1.361 2021/12/28 14:06:42 rillig Exp $ */
+/* $NetBSD: suff.c,v 1.362 2022/01/01 19:44:05 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -115,7 +115,7 @@
#include "dir.h"
/* "@(#)suff.c 8.4 (Berkeley) 3/21/94" */
-MAKE_RCSID("$NetBSD: suff.c,v 1.361 2021/12/28 14:06:42 rillig Exp $");
+MAKE_RCSID("$NetBSD: suff.c,v 1.362 2022/01/01 19:44:05 rillig Exp $");
typedef List SuffixList;
typedef ListNode SuffixListNode;
@@ -246,7 +246,7 @@
/* TODO: Document the difference between nullSuff and emptySuff. */
-/* The NULL suffix for this run */
+/* The NULL suffix is used when a file has no known suffix */
static Suffix *nullSuff;
/* The empty suffix required for POSIX single-suffix transformation rules */
static Suffix *emptySuff;
Home |
Main Index |
Thread Index |
Old Index