aboutsummaryrefslogtreecommitdiff
path: root/unit-tests/counter-append.mk
diff options
context:
space:
mode:
authorSimon J. Gerraty <sjg@FreeBSD.org>2021-06-25 18:16:24 +0000
committerSimon J. Gerraty <sjg@FreeBSD.org>2021-06-25 18:16:24 +0000
commitee914ef902ae018bd4f67192832120f9bf05651f (patch)
tree4974406fb050a22beaceba7bd0d2dcedd0b49421 /unit-tests/counter-append.mk
parent8b6f73e37baf5c37946844ec335a84856b1a9033 (diff)
downloadsrc-ee914ef902ae018bd4f67192832120f9bf05651f.tar.gz
src-ee914ef902ae018bd4f67192832120f9bf05651f.zip
Import bmake-20210621vendor/NetBSD/bmake/20210621
Lots more unit tests and code cleanup Relevant changes from ChangeLog o job.c: Print -de error information when running multiple jobs o var.c: only report error for unmatched regex subexpression when linting (-dL) since we cannot tell when an unmatched subexpression is an expected result. reduce memory allocations in the modifiers ':D' and ':U' reduce memory allocation and strlen calls in modifier ':from=to' in the ':Q' modifier, only allocate memory if necessary improve performance for LazyBuf reduce debug logging and memory allocation for ${:U...} reduce verbosity of the -dv debug logging for standard cases fix double varname expansion in the variable modifier '::=' o var.c: avoid evaluating many modifiers in parse only mode in strict mode (-dL) many variable references are parsed twice, the first time just to report parse errors early, so we want to avoid side effects and wasted effort to the extent possible.
Diffstat (limited to 'unit-tests/counter-append.mk')
-rwxr-xr-xunit-tests/counter-append.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/unit-tests/counter-append.mk b/unit-tests/counter-append.mk
index 1c4e00d6118c..d234835e5ec3 100755
--- a/unit-tests/counter-append.mk
+++ b/unit-tests/counter-append.mk
@@ -1,4 +1,4 @@
-# $NetBSD: counter-append.mk,v 1.4 2020/10/17 16:57:17 rillig Exp $
+# $NetBSD: counter-append.mk,v 1.5 2021/04/04 10:13:09 rillig Exp $
#
# Demonstrates how to let make count the number of times a variable
# is actually accessed, using the ::+= variable modifier.
@@ -15,7 +15,7 @@ COUNTER= # zero
NEXT= ${COUNTER::+=a}${COUNTER:[#]}
# This variable is first set to empty and then expanded.
-# See parse.c, function Parse_DoVar, keyword "!Var_Exists".
+# See parse.c, function Parse_Var, keyword "!Var_Exists".
A:= ${NEXT}
B:= ${NEXT}
C:= ${NEXT}