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(1): clean up comment about single-suffix i...



details:   https://anonhg.NetBSD.org/src/rev/b746fdc16fc1
branches:  trunk
changeset: 1016506:b746fdc16fc1
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Nov 22 10:22:23 2020 +0000

description:
make(1): clean up comment about single-suffix inference rules

diffstat:

 usr.bin/make/suff.c |  15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)

diffs (36 lines):

diff -r a1ddb43bc3fc -r b746fdc16fc1 usr.bin/make/suff.c
--- a/usr.bin/make/suff.c       Sun Nov 22 10:11:23 2020 +0000
+++ b/usr.bin/make/suff.c       Sun Nov 22 10:22:23 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: suff.c,v 1.286 2020/11/22 10:11:23 rillig Exp $        */
+/*     $NetBSD: suff.c,v 1.287 2020/11/22 10:22:23 rillig Exp $        */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -114,7 +114,7 @@
 #include "dir.h"
 
 /*     "@(#)suff.c     8.4 (Berkeley) 3/21/94" */
-MAKE_RCSID("$NetBSD: suff.c,v 1.286 2020/11/22 10:11:23 rillig Exp $");
+MAKE_RCSID("$NetBSD: suff.c,v 1.287 2020/11/22 10:22:23 rillig Exp $");
 
 #define SUFF_DEBUG0(text) DEBUG0(SUFF, text)
 #define SUFF_DEBUG1(fmt, arg1) DEBUG1(SUFF, fmt, arg1)
@@ -478,11 +478,12 @@
 
     if (singleSrc != NULL) {
        /*
-        * Not so fast Mr. Smith! There was a suffix that encompassed
-        * the entire string, so we assume it was a transformation
-        * to the null suffix (thank you POSIX). We still prefer to
-        * find a double rule over a singleton, hence we leave this
-        * check until the end.
+        * There was a suffix that encompassed the entire string, so we
+        * assume it was a transformation to the null suffix (thank you
+        * POSIX; search for "single suffix" or "single-suffix").
+        *
+        * We still prefer to find a double rule over a singleton,
+        * hence we leave this check until the end.
         *
         * XXX: Use emptySuff over nullSuff?
         */



Home | Main Index | Thread Index | Old Index