"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "unit-tests/cond-func-defined.mk" between
bmake-20201101.tar.gz and bmake-20201117.tar.gz

About: bmake a BSD make tool (derived from NetBSD’s make).

cond-func-defined.mk  (bmake-20201101):cond-func-defined.mk  (bmake-20201117)
# $NetBSD: cond-func-defined.mk,v 1.5 2020/10/24 08:46:08 rillig Exp $ # $NetBSD: cond-func-defined.mk,v 1.7 2020/11/15 14:07:53 rillig Exp $
# #
# Tests for the defined() function in .if conditions. # Tests for the defined() function in .if conditions.
DEF= defined DEF= defined
${:UA B}= variable name with spaces ${:UA B}= variable name with spaces
.if !defined(DEF) .if !defined(DEF)
. error . error
.endif .endif
skipping to change at line 32 skipping to change at line 32
# The argument of a function must not directly contain whitespace. # The argument of a function must not directly contain whitespace.
.if !defined(A B) .if !defined(A B)
. error . error
.endif .endif
# If necessary, the whitespace can be generated by a variable expression. # If necessary, the whitespace can be generated by a variable expression.
.if !defined(${:UA B}) .if !defined(${:UA B})
. error . error
.endif .endif
# Parse error: missing closing parenthesis; see ParseFuncArg.
.if defined(DEF
. error
.else
. error
.endif
# Variables from .for loops are not defined.
# See directive-for.mk for more details.
.for var in value
. if defined(var)
. error
. else
. info In .for loops, variable expressions for the loop variables are
. info substituted at evaluation time. There is no actual variable
. info involved, even if it feels like it.
. endif
.endfor
all: all:
@:; @:;
 End of changes. 2 change blocks. 
1 lines changed or deleted 20 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)