Return to var.c CVS log | Up to [local] / src / usr.bin / make |
version 1.50, 2000/11/24 14:29:56 | version 1.51, 2000/12/07 00:15:43 | ||
---|---|---|---|
|
|
||
str = *pos; | str = *pos; | ||
for (; **pos != '$'; (*pos)++) { | for (; **pos != '$'; (*pos)++) { | ||
if (**pos == '\0' || **pos == endc || **pos == ':') { | if (**pos == '\0' || **pos == endc || **pos == ':') { | ||
Buf_AddInterval(&buf, str, *pos); | |||
v = VarFind(Buf_Retrieve(&buf), ctxt, FIND_ENV | FIND_MINE); | v = VarFind(Buf_Retrieve(&buf), ctxt, FIND_ENV | FIND_MINE); | ||
Buf_Destroy(&buf); | Buf_Destroy(&buf); | ||
return v; | return v; |