Lines Matching refs:options
25 * make options support
28 * option flag mappings are in options.h
32 #include "options.h"
54 "[+?Command line options, scripts and targets may appear in any order,"
58 " them. Unqualified options are defined by \bnmake\b itself.]"
61 static Option_t options[] = /* option table */
133 { "mam", OPT_mam, (char*)&state.mam.options, 0,
151 "[+----?mam options ----]"
265 "(obsolete) Set options by name.", "name[=value]]" },
312 Oplist_t* hidden; /* options hidden by cmd line */
314 Oplist_t* delayed; /* delayed unknown options */
369 if (index >= elementsof(options))
385 opt.table = hashalloc(NiL, HASH_name, "options", 0);
386 for (i = 0; i < elementsof(options); i++)
388 options[i].flags |= Om;
389 switch (OPT(options[i].flags))
392 options[i].value = (char*)&error_info.trace;
395 putoption(&options[i], i);
397 opt.tail->next = &options[i];
399 opt.head = &options[i];
400 opt.tail = &options[i];
934 if (state.mam.options)
936 free(state.mam.options);
937 state.mam.options = 0;
1054 state.mam.options = strdup(sfstruse(internal.tmp));
1138 for (nop = &options[0]; nop < &options[elementsof(options)]; nop++)
1141 if (nop < &options[elementsof(options)])
1614 * check and set delayed options
1616 * define the options via --option=definition
1647 * 0 non-Ox OPT_SET options
1648 * '+' non-Om non-Ox OPT_SET options
1800 if ((i = -OPT_OFFSET - i) < elementsof(options))
1801 op = &options[i];
1819 * set options by name
1854 * set command line options with optget(3)
1855 * options may appear in any position before --
1872 * generate the optget() usage string from options[]
1878 for (i = 0; i < elementsof(options); i++)
1879 genusage(options + i, i, 0);
1964 * this chunk must track external.old options
1970 * options with same flag and meaning
1979 if (!state.mam.options && !state.exec)
1987 * options with different flag but same meaning
1992 if (!state.mam.options && state.force)
1996 * options with different flag and meaning
2014 if (state.mam.options)
2024 sfputr(internal.tmp, state.mam.options, -1);
2029 * delayed (unknown) options