Lines Matching +defs:fallback +defs:c
1 /* $NetBSD: main.c,v 1.632 2024/07/11 20:09:16 sjg Exp $ */
4 * Copyright (c) 1988, 1989, 1990, 1993
36 * Copyright (c) 1989 by Berkeley Softworks
113 /* "@(#)main.c 8.3 (Berkeley) 3/19/94" */
114 MAKE_RCSID("$NetBSD: main.c,v 1.632 2024/07/11 20:09:16 sjg Exp $");
116 __COPYRIGHT("@(#) Copyright (c) 1988, 1989, 1990, 1993 "
255 case 'c':
323 "%s: illegal argument to d option -- %c\n",
383 if (sscanf(argvalue, "%d,%d%c", &jp_0, &jp_1, &end) != 2) {
460 MainParseOption(char c, const char *argvalue)
462 switch (c) {
504 opts.printVars = c == 'v' ? PVM_EXPANDED : PVM_UNEXPANDED;
593 char c;
609 c = *optscan++;
612 if (c == '\0') {
619 if (c != '-' || dashDash)
622 c = *optscan++;
625 optspec = strchr(optspecs, c);
626 if (c != '\0' && optspec != NULL && optspec[1] == ':') {
643 switch (c) {
652 if (!MainParseOption(c, argvalue))
676 (void)fprintf(stderr, "%s: option requires an argument -- %c\n",
677 progname, c);
860 * If the knob is not set, return the fallback.
865 GetBooleanExpr(const char *expr, bool fallback)
872 res = ParseBoolean(value, fallback);
1753 av[ac++] = xflag ? "-xc" : "-c";
2247 * the empty string is the fallback, everything else is true.
2250 ParseBoolean(const char *s, bool fallback)
2254 return fallback;