Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/make make: document where to find tests for the depe...



details:   https://anonhg.NetBSD.org/src/rev/6ba946e3bc14
branches:  trunk
changeset: 379832:6ba946e3bc14
user:      rillig <rillig%NetBSD.org@localhost>
date:      Mon Jun 21 10:33:11 2021 +0000

description:
make: document where to find tests for the dependency lines

diffstat:

 usr.bin/make/make.h  |   4 +++-
 usr.bin/make/parse.c |  16 ++++++++++++----
 2 files changed, 15 insertions(+), 5 deletions(-)

diffs (62 lines):

diff -r 1aeaeaf435df -r 6ba946e3bc14 usr.bin/make/make.h
--- a/usr.bin/make/make.h       Mon Jun 21 10:29:08 2021 +0000
+++ b/usr.bin/make/make.h       Mon Jun 21 10:33:11 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: make.h,v 1.262 2021/04/14 17:39:11 rillig Exp $        */
+/*     $NetBSD: make.h,v 1.263 2021/06/21 10:33:11 rillig Exp $        */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -206,6 +206,8 @@ typedef enum GNodeMade {
  * should be made.
  *
  * Some of the OP_ constants can be combined, others cannot.
+ *
+ * See the tests depsrc-*.mk and deptgt-*.mk.
  */
 typedef enum GNodeType {
        OP_NONE         = 0,
diff -r 1aeaeaf435df -r 6ba946e3bc14 usr.bin/make/parse.c
--- a/usr.bin/make/parse.c      Mon Jun 21 10:29:08 2021 +0000
+++ b/usr.bin/make/parse.c      Mon Jun 21 10:33:11 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: parse.c,v 1.558 2021/06/21 10:29:08 rillig Exp $       */
+/*     $NetBSD: parse.c,v 1.559 2021/06/21 10:33:11 rillig Exp $       */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -109,7 +109,7 @@
 #include "pathnames.h"
 
 /*     "@(#)parse.c    8.3 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: parse.c,v 1.558 2021/06/21 10:29:08 rillig Exp $");
+MAKE_RCSID("$NetBSD: parse.c,v 1.559 2021/06/21 10:33:11 rillig Exp $");
 
 /* types and constants */
 
@@ -1054,7 +1054,11 @@ ParseDependencyTargetWord(const char **p
        *pp = cp;
 }
 
-/* Handle special targets like .PATH, .DEFAULT, .BEGIN, .ORDER. */
+/*
+ * Handle special targets like .PATH, .DEFAULT, .BEGIN, .ORDER.
+ *
+ * See the tests deptgt-*.mk.
+ */
 static void
 ParseDependencyTargetSpecial(ParseSpecial *inout_specType,
                             const char *targetName,
@@ -1583,7 +1587,11 @@ ParseDependencySourcesMundane(char *star
        return true;
 }
 
-/* In a dependency line like 'targets: sources', parse the sources. */
+/*
+ * In a dependency line like 'targets: sources', parse the sources.
+ *
+ * See the tests depsrc-*.mk.
+ */
 static void
 ParseDependencySources(char *const line, char *const cp,
                       GNodeType const tOp,



Home | Main Index | Thread Index | Old Index