version 1.73, 2007/07/30 09:51:53 |
version 1.74, 2007/07/30 10:03:11 |
|
|
return Buf_Retrieve(&buf); |
return Buf_Retrieve(&buf); |
} |
} |
|
|
|
static BUFFER subst_buffer; |
|
|
|
/* we would like to subst on intervals, but it's complicated, so we cheat |
|
* by storing the interval in a static buffer. |
|
*/ |
|
char * |
|
Var_Substi(const char *str, const char *estr, SymTable *ctxt, bool undefErr) |
|
{ |
|
/* delimited string: no need to copy */ |
|
if (estr == NULL || *estr == '\0') |
|
return Var_Subst(str, ctxt, undefErr); |
|
|
|
Buf_Reset(&subst_buffer); |
|
Buf_Addi(&subst_buffer, str, estr); |
|
return Var_Subst(Buf_Retrieve(&subst_buffer), ctxt, undefErr); |
|
} |
|
|
/*** |
/*** |
*** Supplementary support for .for loops. |
*** Supplementary support for .for loops. |
***/ |
***/ |
|
|
Var_setCheckEnvFirst(false); |
Var_setCheckEnvFirst(false); |
|
|
VarModifiers_Init(); |
VarModifiers_Init(); |
|
Buf_Init(&subst_buffer, MAKE_BSIZE); |
} |
} |
|
|
|
|