• Home
  • Raw
  • Download

Lines Matching refs:sym

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