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: fix spacing, and a typo in a test



details:   https://anonhg.NetBSD.org/src/rev/2181ac68ed8a
branches:  trunk
changeset: 364483:2181ac68ed8a
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Mar 27 18:39:01 2022 +0000

description:
make: fix spacing, and a typo in a test

diffstat:

 usr.bin/make/unit-tests/varmod-match.mk |  6 +++---
 usr.bin/make/var.c                      |  8 ++++----
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (56 lines):

diff -r cebcf503b3a1 -r 2181ac68ed8a usr.bin/make/unit-tests/varmod-match.mk
--- a/usr.bin/make/unit-tests/varmod-match.mk   Sun Mar 27 17:10:55 2022 +0000
+++ b/usr.bin/make/unit-tests/varmod-match.mk   Sun Mar 27 18:39:01 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: varmod-match.mk,v 1.7 2022/03/03 20:20:23 rillig Exp $
+# $NetBSD: varmod-match.mk,v 1.8 2022/03/27 18:39:01 rillig Exp $
 #
 # Tests for the :M variable modifier, which filters words that match the
 # given pattern.
@@ -119,8 +119,8 @@
 .endif
 
 #      [^a-c67]
-#              matches a single character, except for 'a', 'b', 'c', '8' or
-#              '9'
+#              matches a single character, except for 'a', 'b', 'c', '6' or
+#              '7'
 .if ${ A B C a b c d 5 6 7 8 [a-c] [a] :L:M[^a-c67]} != "A B C d 5 8"
 .  error
 .endif
diff -r cebcf503b3a1 -r 2181ac68ed8a usr.bin/make/var.c
--- a/usr.bin/make/var.c        Sun Mar 27 17:10:55 2022 +0000
+++ b/usr.bin/make/var.c        Sun Mar 27 18:39:01 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: var.c,v 1.1018 2022/03/26 14:34:07 rillig Exp $        */
+/*     $NetBSD: var.c,v 1.1019 2022/03/27 18:39:01 rillig Exp $        */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -139,7 +139,7 @@
 #include "metachar.h"
 
 /*     "@(#)var.c      8.3 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: var.c,v 1.1018 2022/03/26 14:34:07 rillig Exp $");
+MAKE_RCSID("$NetBSD: var.c,v 1.1019 2022/03/27 18:39:01 rillig Exp $");
 
 /*
  * Variables are defined using one of the VAR=value assignments.  Their
@@ -476,7 +476,7 @@
 {
        if (value[0] == '\0')
                return "# (empty)";
-       if (ch_isspace(value[strlen(value)-1]))
+       if (ch_isspace(value[strlen(value) - 1]))
                return "# (ends with space)";
        return "";
 }
@@ -3221,7 +3221,7 @@
        /* Normal case: select the words described by first and last. */
        Expr_SetValueOwn(expr,
            VarSelectWords(Expr_Str(expr), first, last,
-               ch->sep, ch->oneBigWord));
+               ch->sep, ch->oneBigWord));
 
 ok:
        FStr_Done(&festr);



Home | Main Index | Thread Index | Old Index