Lines Matching defs:option

27  * option name mappings are here
28 * option flag mappings are in options.h
47 " Each operand may be an option, script, or target. An option operand"
55 " with the exception that no option operand may appear after a"
61 static Option_t options[] = /* option table */
157 { "option", OPT_option, 0, 0,
158 "Define a new option. The definition is a delimiter separated field"
160 " \b;\b is used in this description. Makefile \bset option\b"
163 " empty field. \achar\a is the single character option name, \aname\a"
164 " is the long option name, \aset\a is an optional \b.FUNCTION\b that"
165 " is called when the option value is changed by \bset\b, \avalues\a is"
176 " [+v?optional option argument]"
304 struct Oplist_s /* linked option list */
306 char* option; /* option value for set() */
310 typedef struct Optstate_s /* option state */
317 Option_t* head; /* head of external option list */
318 Option_t* tail; /* tail of external option list */
377 * initialize the option hash table
405 * return option table entry given OPT_[a-z]+ flag
424 error(ERROR_PANIC, "%s: unknown option flag", buf);
486 * generate external option declaration
640 * return option name and details
685 * return next option definition field
746 * set an option given its pointer
785 x->option = strcpy((char*)(x + 1), s);
793 error(-3, "option(%s,%d,\"%s\")", showop(op), n, s ? s : null);
818 error(3, "-%c: option argument expected", OPT(op->flags));
827 error(2, "%s: option must be set before %s", op->name, external.makeinit);
996 error(3, "%s: invalid mam option: [no]{dontcare,port} expected", s);
1088 error(2, "option flag and name omitted");
1090 error(2, "-%c: option name omitted", OPT(n));
1166 desc = "option.";
1206 error(1, "--%s is an internal option", nop->name);
1223 error(1, "--%s: option flag -%c conflicts with -%c", nop->name, OPT(n), OPT(nop->flags));
1225 error(1, "--%s: option is %s", nop->name, (nop->flags & Ob) ? "boolean" : (nop->flags & On) ? "numeric" : "string valued");
1433 * generate a single option setting in sp given the option pointer
1435 * 0 only the value is generated, "" if option not set
1436 * '+' only the value is generated, "" if Os option not set, 0 for Ob|Oi not set
1437 * '-' option name and value suitable for set()
1440 * flag!=0 if relative to option flag rather than option name
1607 error(PANIC, "%s: option has%s%s%s", op->name, (op->flags & Ob) ? " Ob" : null, (op->flags & On) ? " On" : null, (op->flags & Os) ? " Os" : null);
1616 * define the options via --option=definition
1631 if (*x->option)
1632 set(x->option, 1, NiL);
1640 if (!set(x->option, 0, NiL))
1641 *x->option = 0;
1645 * generate option setting list in sp suitable for set()
1715 sfputr(sp, x->option, -1);
1739 * generate a single option setting in sp given the option name
1755 * set an option by its optget()/optstr() index
1789 x->option = strcpy((char*)(x + 1), v);
1796 error((i == '?' && opt_info.option[0] == '-' && opt_info.option[1] != '?') ? (ERROR_USAGE|(state.interpreter ? 2 : 4)) : 2, "%s", opt_info.arg);
1808 if (*opt_info.option == '+')
2033 putptr(vec, x->option);
2107 * return 1 if name is an option