Module Name: src Committed By: rillig Date: Mon Jun 21 10:33:11 UTC 2021
Modified Files: src/usr.bin/make: make.h parse.c Log Message: make: document where to find tests for the dependency lines To generate a diff of this commit: cvs rdiff -u -r1.262 -r1.263 src/usr.bin/make/make.h cvs rdiff -u -r1.558 -r1.559 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/make.h diff -u src/usr.bin/make/make.h:1.262 src/usr.bin/make/make.h:1.263 --- src/usr.bin/make/make.h:1.262 Wed Apr 14 17:39:11 2021 +++ src/usr.bin/make/make.h Mon Jun 21 10:33:11 2021 @@ -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, Index: src/usr.bin/make/parse.c diff -u src/usr.bin/make/parse.c:1.558 src/usr.bin/make/parse.c:1.559 --- src/usr.bin/make/parse.c:1.558 Mon Jun 21 10:29:08 2021 +++ src/usr.bin/make/parse.c Mon Jun 21 10:33:11 2021 @@ -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,