Lines Matching +defs:fallback +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 $");
331 * in the makefiles. SCOPE_INTERNAL acts as a fallback for SCOPE_GLOBAL and
1260 * fallback scopes.
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";
1954 * try the SysV modifier ':from=to' as fallback. This should only be
1961 * as a fallback, issue an error message using Parse_Error (preferred over
1979 * If evaluating fails, the fallback error message "Bad modifier" is printed.
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);
2853 time_t fallback;
2875 st.st_mtime = args->fallback;
2899 if (TryParseTime(&p, &args.fallback)) {
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);
4263 "Invalid variable name '%c', at \"%s\"", varname, start);
4609 * possible (since var.c 1.212 from 2017-02-01) to delete the variable