/freebsd/sys/contrib/vchiq/interface/compat/ |
H A D | list.h | 211 #define list_for_each(VAR, HEAD) \ argument 212 for ((VAR) = list_first((HEAD)); \ 213 (VAR) != (HEAD); \ 214 (VAR) = list_next((VAR))) 216 #define list_for_each_safe(VAR, NEXT, HEAD) \ argument 217 for ((VAR) = list_first((HEAD)); \ 218 ((VAR) != (HEAD)) && ((NEXT) = list_next((VAR)), 1); \ 219 (VAR) = (NEXT)) 221 #define list_for_each_entry(VAR, HEAD, FIELD) \ argument 222 for ((VAR) = list_entry(list_first((HEAD)), typeof(*(VAR)), FIELD); \ [all …]
|
/freebsd/contrib/bmake/unit-tests/ |
H A D | var-op-sunsh.mk | 11 VAR:sh= echo colon-sh 12 .if ${VAR} != "colon-sh" 18 VAR :sh = echo colon-sh-spaced 19 .if ${VAR} != "colon-sh-spaced" 29 VAR:shell= echo colon-shell 42 VAR:shoe:shore= echo two-colons 57 VAR.${:Uecho 123:sh}= ok-123 58 .if ${VAR.123} != "ok-123" 65 VAR.${:U echo\:shell}= ok-shell 66 .if ${VAR.${:U echo\:shell}} != "ok-shell" [all …]
|
H A D | varname-dot-make-save_dollars.mk | 24 VAR:= ${DOLLARS} 28 .if ${VAR} != "\$\$\$\$" 36 VAR:= ${DOLLARS} 37 .if ${VAR} != "\$\$" 43 VAR:= $$$$$$$$ 44 .if ${VAR} != "\$\$\$\$" 50 VAR:= $$$$$$$$ 51 .if ${VAR} != "\$\$" 58 VAR:= $$$$-${.MAKE.SAVE_DOLLARS::=yes}-$$$$ 59 .if ${VAR} != "\$--\$\$" [all …]
|
H A D | var-op-expand.mk | 16 VAR:= value 17 .if ${VAR} != "value" 34 VAR:= $$ $$$$ $$$$$$$$ 35 .if ${VAR} != "\$ \$\$ \$\$\$\$" 42 VAR:= ${REF} 44 .if ${VAR} != "\$ \$\$ \$\$\$\$" 51 VAR:= <${UNDEF}> 52 .if ${VAR} != "<>" 56 .if ${VAR} != "<after>" 64 VAR:= ${${REF}} [all …]
|
H A D | var-op-assign.mk | 11 VAR= value 16 .if ${VAR} != "value" 30 VAR= new value and \# some $$ special characters # comment 34 .if ${VAR} != "new value and \# some \$ special characters" 35 . error ${VAR} 49 VAR= ${:! echo 'not yet evaluated' 1>&2 !} 50 VAR= ${:! echo 'this will be evaluated later' 1>&2 !} 54 .if ${VAR} 71 VAR(spaces in parentheses)= () 72 VAR{spaces in braces}= {} [all …]
|
H A D | vardebug.mk | 8 VAR= added # VarAdd 10 VAR= overwritten # Var_Set 12 .undef VAR 14 .undef VAR 25 VAR= 1 27 VAR+= 2 29 VAR+= 3 33 .if ${VAR:M[2]} # ModifyWord_Match 37 .if ${VAR:N[2]} # ModifyWord_NoMatch 40 .if ${VAR:S,2,two,} # ParseModifierPart [all …]
|
H A D | moderrs.mk | 5 VAR= TheVariable 37 @echo VAR:S,V,v,=${VAR:S,V,v, 41 @echo VAR:${MOD_TERM},=${VAR:${MOD_S} 105 @echo 1: ${VAR:S 107 @echo 2: ${VAR:S, 109 @echo 3: ${VAR:S,from 111 @echo 4: ${VAR:S,from, 113 @echo 5: ${VAR:S,from,to 115 @echo 6: ${VAR:S,from,to, 116 @echo 7: ${VAR:S,from,to,} [all …]
|
H A D | comment.mk | 25 VAR= # This comment makes the variable value empty. 28 .if ${VAR} != "" 34 VAR=# defined but empty 37 VAR= value 38 .if ${VAR} != "value" 45 VAR= not part of the comment 46 .if ${VAR} != "not part of the comment" 51 VAR= \# # Both in the assignment. 52 .if ${VAR} != "\#" # And in the comparison. 59 WORDS= ${VAR [all...] |
H A D | deptgt-makeflags.mk | 11 .MAKEFLAGS: -D VAR 12 .if ${VAR} != 1 18 .undef VAR 19 .if defined(VAR) 25 .MAKEFLAGS: -D VAR 26 .if ${VAR} != 1 32 .MAKEFLAGS: VAR="value"' with'\ spaces 33 .if ${VAR} != "value with spaces" 39 .undef VAR 40 .if ${VAR} != "value with spaces" [all …]
|
H A D | cond-short.mk | 55 VAR= ${VAR${:U11${echo "unexpected VAR U11" 1>&2 :L:sh}}} 56 VAR13= ${VAR${:U12${echo "unexpected VAR13" 1>&2 :L:sh}}} 57 .if 0 && !empty(VAR${:U13${echo "unexpected U13 condition" 1>&2 :L:sh}}) 60 VAR= ${VAR${:U21${echo "unexpected VAR U21" 1>&2 :L:sh}}} 61 VAR23= ${VAR${:U22${echo "expected VAR23" 1>&2 :L:sh}}} 62 .if 1 && !empty(VAR${:U23${echo "expected U23 condition" 1>&2 :L:sh}}) 64 VAR= # empty again, for the following tests 68 .if 0 && !empty(VAR:M${:U${echo "unexpected M pattern" 1>&2 :L:sh}}) 71 .if 1 && !empty(VAR:M${:U${echo "expected M pattern" 1>&2 :L:sh}}) 74 .if 0 && !empty(VAR:S,from,${:U${echo "unexpected S modifier" 1>&2 :L:sh}},) [all …]
|
H A D | var-scope-local.mk | 11 # 'target: VAR=value', one at a time. 91 # expressions like ${@}, ${.TARGET} ${VAR:Mpattern} (see Var_Parse, 202 @echo "Making ${.TARGET} with make '"${VAR:Q}"' and env '$$VAR'." 208 VAR= global 209 .export VAR 218 var-scope-local-assign.o: VAR= local 222 var-scope-local-append.o: VAR+= local 228 var-scope-local-append.o: VAR += to ${.TARGET} 236 # 'VAR [all...] |
H A D | directive-export-gmake.mk | 8 VAR= before 9 export VAR=exported 10 .if ${VAR} != "before" 21 export VAR=exported VAR2=exported-as-well 29 export VAR= leading spaces 41 export VAR =trailing space in varname 51 export VAR=${ONCE} 58 export VAR=an ${UNDEF} variable 71 export VAR=${value}
|
H A D | directive-elifndef.mk | 9 .elifndef VAR && VAR || VAR 14 VAR= # defined 19 .elifndef VAR && VAR || VAR
|
H A D | var-op-append.mk | 21 VAR+= one 22 .if ${VAR} != "one" 27 VAR+= two 28 .if ${VAR} != "one two" 33 VAR+= # empty 34 .if ${VAR} != "one two " 53 VAR.${:U\$\$\$\$\$\$\$\$}+= dollars 55 .if ${VAR.${:U\$\$\$\$\$\$\$\$}} != "dollars"
|
H A D | opt-define.mk | 9 .if ${VAR} != "1" 16 VAR= overwritten 17 .if ${VAR} != "overwritten" 24 .undef VAR 25 .if defined(VAR) 33 .if defined(VAR) 36 .if ${VAR=value} != "1"
|
H A D | var-op-default.mk | 8 VAR?= default value 9 .if ${VAR} != "default value" 15 VAR?= ignored 16 .if ${VAR} != "default value" 56 VAR.param= already defined 57 VAR.${:Uparam}?= not used 58 .if ${VAR.param} != "already defined"
|
H A D | varmod.mk | 115 VAR= STOP 117 .if ${VAR:P=RE} != "STORE" 160 .if ${VAR::=value$} != "" || ${VAR} != "value" 166 .if ${VAR::+=appended$} != "" || ${VAR} != "value<space>appended" 186 VAR_DOLLAR= VAR$$ 187 .if ${word:L:_=VAR$} != "word" || ${${VAR_DOLLAR}} != "word" 198 .if ${VAR:Dset$} != "set"
|
H A D | opt-file.mk | 23 # printf '%s' 'VAR=value\' \ 26 # make-2014.01.01.00.00.00 -r -f - -V VAR -dA 2>&1 \ 32 # ParseReadLine (1): 'VAR=value\<A5><A5><A5><A5><A5><A5>' 33 # Global:VAR = value\<A5><A5><A5><A5><A5><A5>value\<A5><A5><A5><A5><A5><A5> 41 @printf '%s' 'VAR=value\' \ 42 | ${MAKE} -r -f - -V VAR 49 @printf '%s' 'VAR=value\' > opt-file-backslash 50 @${MAKE} -r -f opt-file-backslash -V VAR 57 @printf '%s' 'VAR=$@ ' > opt-file-trailing-whitespace 58 @${MAKE} -r -f opt-file-trailing-whitespace -V VAR [all...] |
H A D | varmisc.mk | 99 VAR.${PARAM}= 1 100 VAR.${PARAM}+= 2 101 .if ${VAR.param} != "1 2" 111 VAR.${PARAM}= 1 112 VAR.${PARAM}+= 2 113 .if ${VAR.+} != "1 2" 117 VAR.${param}= ${param} 119 .if ${VAR.${:U\:}} != ":" || ${VAR.+} != "+" || ${VAR.!} != "!" || ${VAR.?} != "?"
|
H A D | var-scope-cmdline.mk | 70 VAR= global 72 .info ${VAR} 80 .MAKEFLAGS: VAR=makeflags 82 .info ${VAR} 86 .MAKEFLAGS: -V VAR
|
H A D | varmod-loop-delete.mk | 15 VAR= ${:U:@VAR@@} rest of the value 20 EVAL:= ${VAR} 25 VAR= ${:U:@VAR@@} rest of the value
|
H A D | varmod-assign.mk | 88 @echo $@: ${VAR:L::=overwritten} VAR=${VAR} 129 VAR= previous 130 _:= $(VAR::=current}) 131 .if ${VAR} != "current}" 142 VARNAME= VAR.$${param} # Indirect variable name because of the '$', 146 .if defined(VAR.twice) # At this point, the '$$' is not expanded. 152 .if defined(VAR.twice)
|
/freebsd/contrib/tcsh/ |
H A D | tw.color.c | 45 #define VAR(suffix,variable,defaultcolor) \ macro 60 VAR('/', "di", "01;34"), /* Directory */ 61 VAR('@', "ln", "01;36"), /* Symbolic link */ 62 VAR('&', "or", ""), /* Orphanned symbolic link (defaults to ln) */ 63 VAR('|', "pi", "33"), /* Named pipe (FIFO) */ 64 VAR('=', "so", "01;35"), /* Socket */ 65 VAR('>', "do", "01;35"), /* Door (solaris fast ipc mechanism) */ 66 VAR('#', "bd", "01;33"), /* Block device */ 67 VAR('%', "cd", "01;33"), /* Character device */ 68 VAR('*', "ex", "01;32"), /* Executable file */ [all …]
|
/freebsd/bin/sh/tests/builtins/ |
H A D | var-assign2.0 | 47 ${SH} -c "VAR=0; VAR=1 command ${cmd}; exit \${VAR}" >/dev/null 2>&1 53 ${SH} -c "VAR=0; VAR=1 command ${cmd}; exit \${VAR}" >/dev/null 2>&1
|
/freebsd/release/ |
H A D | Makefile.vagrant | 24 . for VAR in _KEY _USERNAME 25 VAGRANT${VAR}!= grep -E ^VAGRANT${VAR} ${VAGRANT_UPLOAD_CONF} | awk -F' ' '{print $$2}' 26 ATLAS${VAR}:= ${VAGRANT${VAR}} 47 .for VAR in _KEY _USERNAME _VERSION 48 . if !defined(VAGRANT${VAR}) || empty(VAGRANT${VAR}) 49 @echo "Variable VAGRANT${VAR} cannot be empty."
|