Lines Matching +defs:fallback +defs:c
1 /* $NetBSD: var.c,v 1.1144 2025/01/11 21:21:33 rillig Exp $ */
4 * Copyright (c) 1988, 1989, 1990, 1993
36 * Copyright (c) 1989 by Berkeley Softworks
130 /* "@(#)var.c 8.3 (Berkeley) 3/19/94" */
131 MAKE_RCSID("$NetBSD: var.c,v 1.1144 2025/01/11 21:21:33 rillig Exp $");
315 * in the makefiles. SCOPE_INTERNAL acts as a fallback for SCOPE_GLOBAL and
1246 * fallback scopes.
1404 * For example, when evaluating the modifier ':M*b' in ${:Ua b c:M*b}, the
1405 * callback is called 3 times, once for "a", "b" and "c".
1893 fmt = "%c";
1933 * try the SysV modifier ':from=to' as fallback. This should only be
1940 * as a fallback, issue an error message using Parse_Error (preferred over
1958 * If evaluating fails, the fallback error message "Bad modifier" is printed.
2228 "Unfinished modifier ('%c' missing)", end2);
2245 IsDelimiter(char c, const ModChain *ch)
2247 return c == ':' || c == ch->endc || c == '\0';
2444 /* See Buf_AddEscaped in for.c for the counterpart. */
2446 char c = p[1];
2447 if ((IsDelimiter(c, ch) && c != '\0') ||
2448 c == '$' || c == '\\') {
2450 LazyBuf_Add(buf, c);
2779 DEBUG2(VAR, "Pattern for ':%c' is \"%s\"\n", mod[0], pattern);
2832 time_t fallback;
2854 st.st_mtime = args->fallback;
2878 if (TryParseTime(&p, &args.fallback)) {
3810 debug_printf("Parsing modifier ${%s:%c%s}\n",
3817 "Evaluating modifier ${%s:%c%s} on value \"%s\"\n",
3824 "Evaluating modifier ${%s:%c%s} on value \"%s\" (%s, %s)\n",
3969 "expecting '%c'",
4019 "Unclosed expression, expecting '%c' for "
4075 "Unclosed expression, expecting '%c'", ch.endc);
4241 "Invalid variable name '%c', at \"%s\"", varname, start);
4595 * possible (since var.c 1.212 from 2017-02-01) to delete the variable