Lines Matching refs:sym
67 static void conf_askvalue(struct symbol *sym, const char *def)
69 enum symbol_type type = sym_get_type(sym);
72 if (!sym_has_value(sym))
78 if (!sym_is_changable(sym)) {
90 if (sym_has_value(sym)) {
97 if (sym_has_value(sym)) {
124 if (sym_tristate_within_range(sym, yes)) {
132 if (sym_tristate_within_range(sym, mod)) {
139 if (sym_tristate_within_range(sym, yes)) {
147 if (sym_tristate_within_range(sym, no)) {
156 } while (!sym_tristate_within_range(sym, val));
173 struct symbol *sym = menu->sym;
178 printf("(%s) ", sym->name);
179 def = sym_get_string_value(sym);
180 if (sym_get_string_value(sym))
182 conf_askvalue(sym, def);
190 if (menu->sym->help)
191 help = menu->sym->help;
192 printf("\n%s\n", menu->sym->help);
200 if (def && sym_set_string_value(sym, def))
207 struct symbol *sym = menu->sym;
214 if (sym->name)
215 printf("(%s) ", sym->name);
216 type = sym_get_type(sym);
218 oldval = sym_get_tristate_value(sym);
230 if (oldval != no && sym_tristate_within_range(sym, no))
232 if (oldval != mod && sym_tristate_within_range(sym, mod))
234 if (oldval != yes && sym_tristate_within_range(sym, yes))
236 if (sym->help)
239 conf_askvalue(sym, sym_get_string_value(sym));
269 if (sym_set_tristate_value(sym, newval))
273 if (sym->help)
274 help = sym->help;
281 struct symbol *sym, *def_sym;
286 sym = menu->sym;
287 type = sym_get_type(sym);
288 is_new = !sym_has_value(sym);
289 if (sym_is_changable(sym)) {
291 sym_calc_value(sym);
292 switch (sym_get_tristate_value(sym)) {
301 switch (sym_get_tristate_value(sym)) {
316 def_sym = sym_get_choice_value(sym);
322 if (!child->sym) {
327 if (child->sym == def_sym) {
333 if (child->sym->name)
334 printf(" (%s)", child->sym->name);
335 if (!sym_has_value(child->sym))
345 if (sym->help)
362 printf("\n%s\n", menu->sym->help ?
363 menu->sym->help : nohelp_text);
386 if (!child->sym || !menu_is_visible(child))
394 printf("\n%s\n", child->sym->help ?
395 child->sym->help : nohelp_text);
398 sym_set_choice_value(sym, child->sym);
410 struct symbol *sym;
417 sym = menu->sym;
440 if (!sym)
443 if (sym_is_choice(sym)) {
445 if (sym->curr.tri != mod)
450 switch (sym->type) {
462 if (sym)
466 if (sym)
472 struct symbol *sym;
478 sym = menu->sym;
479 if (sym && !sym_has_value(sym)) {
480 if (sym_is_changable(sym) ||
481 (sym_is_choice(sym) && sym_get_tristate_value(sym) == yes)) {