head	1.6;
access;
symbols
	netbsd-10-2-RELEASE:1.2
	netbsd-11-0-RELEASE:1.6
	netbsd-11-0-RC7:1.6
	netbsd-11-0-RC6:1.6
	netbsd-11-0-RC5:1.6
	netbsd-11-0-RC4:1.6
	netbsd-11-0-RC3:1.6
	netbsd-11-0-RC2:1.6
	netbsd-11-0-RC1:1.6
	perseant-exfatfs-base-20250801:1.6
	netbsd-11:1.6.0.2
	netbsd-11-base:1.6
	netbsd-10-1-RELEASE:1.2
	perseant-exfatfs-base-20240630:1.3
	perseant-exfatfs:1.3.0.2
	perseant-exfatfs-base:1.3
	netbsd-10-0-RELEASE:1.2
	netbsd-10-0-RC6:1.2
	netbsd-10-0-RC5:1.2
	netbsd-10-0-RC4:1.2
	netbsd-10-0-RC3:1.2
	netbsd-10-0-RC2:1.2
	netbsd-10-0-RC1:1.2
	netbsd-10:1.2.0.6
	netbsd-10-base:1.2
	cjep_sun2x-base1:1.2
	cjep_sun2x:1.2.0.4
	cjep_sun2x-base:1.2
	cjep_staticlib_x-base1:1.2
	cjep_staticlib_x:1.2.0.2
	cjep_staticlib_x-base:1.2;
locks; strict;
comment	@# @;


1.6
date	2025.03.30.09.51.51;	author rillig;	state Exp;
branches;
next	1.5;
commitid	veGmSzVhPiW2G4PF;

1.5
date	2025.01.11.21.21.34;	author rillig;	state Exp;
branches;
next	1.4;
commitid	NtFvbDJHnW9G17FF;

1.4
date	2024.08.06.18.00.17;	author rillig;	state Exp;
branches;
next	1.3;
commitid	1R0ZDok3menTZMkF;

1.3
date	2023.06.01.20.56.35;	author rillig;	state Exp;
branches
	1.3.2.1;
next	1.2;
commitid	j3tIvMRlxolKQhrE;

1.2
date	2020.07.26.22.19.12;	author rillig;	state Exp;
branches;
next	1.1;
commitid	AS2dIpebeVLsKDhC;

1.1
date	2020.07.26.22.15.36;	author rillig;	state Exp;
branches;
next	;
commitid	cw5sBXu01VYjJDhC;

1.3.2.1
date	2025.08.02.05.58.40;	author perseant;	state Exp;
branches;
next	;
commitid	23j6GFaDws3O875G;


desc
@@


1.6
log
@make: use '"filename" line 123' for locations instead of 'filename:123'

The format 'filename:123' is commonly used for identifying a location in
a file. Text editors recognize it and allow quick navigation through it.
The previous format was specific to make and would have required custom
support in editors.

The new format was already used in stack traces, except for the first
line. Now all lines use the same format.
@
text
@make: varparse-dynamic.mk:9: Variable ".TARGEX" is undefined
make: varparse-dynamic.mk:12: Variable ".TARGXX" is undefined
make: Fatal errors encountered -- cannot continue
make: stopped in unit-tests
exit status 1
@


1.5
log
@make: replace "Malformed conditional" with "Variable is undefined"

Evaluating a conditional such as ".if ${UNDEF}" produced a "Malformed
conditional" error, even though the form of the conditional was correct,
it was the content of the variable that was wrong.

Replace this message with the more accurate "Variable is undefined",
revealing which of the possibly many variables is actually undefined.
@
text
@d1 2
a2 2
make: "varparse-dynamic.mk" line 9: Variable ".TARGEX" is undefined
make: "varparse-dynamic.mk" line 12: Variable ".TARGXX" is undefined
@


1.4
log
@make: in error message about conditionals, use single quotes

Single quotes are used less often in the conditionals themselves, which
leads to fewer confusions.
@
text
@d1 2
a2 2
make: "varparse-dynamic.mk" line 9: Malformed conditional '${.TARGEX}'
make: "varparse-dynamic.mk" line 12: Malformed conditional '${.TARGXX}'
@


1.3
log
@tests/make: force line-based diagnostics to be listed in the tests

This way, contradictions between the intended output and the actual
output are closer together and have a better chance of being spotted.
@
text
@d1 2
a2 2
make: "varparse-dynamic.mk" line 9: Malformed conditional (${.TARGEX})
make: "varparse-dynamic.mk" line 12: Malformed conditional (${.TARGXX})
@


1.3.2.1
log
@Sync with HEAD
@
text
@d1 2
a2 2
make: varparse-dynamic.mk:9: Variable ".TARGEX" is undefined
make: varparse-dynamic.mk:12: Variable ".TARGXX" is undefined
@


1.2
log
@make(1): fix off-by-one error in Var_Parse for dynamic variables
@
text
@d1 2
a2 2
make: "varparse-dynamic.mk" line 8: Malformed conditional (${.TARGEX})
make: "varparse-dynamic.mk" line 10: Malformed conditional (${.TARGXX})
@


1.1
log
@make(1): add test for off-by-one error in Var_Parse
@
text
@d1 1
@

