Lines Matching +defs:expanded +defs:c

1 /*	$NetBSD: var.c,v 1.1135 2024/07/09 17:07:23 rillig Exp $	*/
4 * Copyright (c) 1988, 1989, 1990, 1993
36 * Copyright (c) 1989 by Berkeley Softworks
145 /* "@(#)var.c 8.3 (Berkeley) 3/19/94" */
146 MAKE_RCSID("$NetBSD: var.c,v 1.1135 2024/07/09 17:07:23 rillig Exp $");
479 * name name to find, is not expanded any further
577 * The variable name is kept as-is, it is not expanded.
638 * The argument is expanded exactly once and then split into words.
643 char *expanded;
653 expanded = Var_Subst(arg, SCOPE_GLOBAL, VARE_EVAL);
654 if (expanded == var_Error) {
661 varnames = Str_Words(expanded, false);
671 free(expanded);
946 char *expanded = Var_Subst("${.MAKE.EXPORTED:O:u}",
949 varnames = FStr_InitOwn(expanded);
1016 /* Set the variable to the value; the name is not expanded. */
1264 * name name of the variable to find, is expanded once
1284 * name the name to find, is not expanded any further
1424 * For example, when evaluating the modifier ':M*b' in ${:Ua b c:M*b}, the
1425 * callback is called 3 times, once for "a", "b" and "c".
1914 fmt = "%c";
2196 * expanded) part. In that case, pp points right after the delimiter. The
2249 "Unfinished modifier ('%c' missing)", end2);
2266 IsDelimiter(char c, const ModChain *ch)
2268 return c == ':' || c == ch->endc || c == '\0';
2465 /* See Buf_AddEscaped in for.c for the counterpart. */
2467 char c = p[1];
2468 if ((IsDelimiter(c, ch) && c != '\0') ||
2469 c == '$' || c == '\\') {
2471 LazyBuf_Add(buf, c);
2800 DEBUG2(VAR, "Pattern for ':%c' is \"%s\"\n", mod[0], pattern);
3830 debug_printf("Parsing modifier ${%s:%c%s}\n",
3837 "Evaluating modifier ${%s:%c%s} on value \"%s\"\n",
3844 "Evaluating modifier ${%s:%c%s} on value \"%s\" (%s, %s)\n",
3991 "expecting '%c'",
4041 "Unclosed expression, expecting '%c' for "
4097 "Unclosed expression, expecting '%c'", ch.endc);
4153 * the only ones that will be set when dynamic sources are expanded.
4195 * when dynamic sources are expanded.
4263 "Invalid variable name '%c', at \"%s\"", varname, start);
4558 * expanded in a non-local scope. The result is the text of the
4609 * possible (since var.c 1.212 from 2017-02-01) to delete the variable
4637 char *expanded;
4642 expanded = Var_Subst(Expr_Str(&expr), scope, nested_emode);
4645 Expr_SetValueOwn(&expr, expanded);
4775 * str The string in which the expressions are expanded.
4820 char *expanded;
4824 expanded = Var_Subst(str->str, scope, emode);
4827 *str = FStr_InitOwn(expanded);