Lines Matching refs:sym

134 		struct symbol *sym = menu->sym;  in randomize_choice_values()  local
136 if (sym && !sym_has_value(sym)) in randomize_choice_values()
144 struct symbol *sym = menu->sym; in randomize_choice_values() local
146 if (sym && !sym_has_value(sym)) in randomize_choice_values()
150 sym->def[S_DEF_USER].tri = yes; in randomize_choice_values()
151 sym->flags |= SYMBOL_DEF_USER; in randomize_choice_values()
157 list_move_tail(&sym->choice_link, in randomize_choice_values()
233 struct symbol *sym = menu->sym; in conf_set_all_new_symbols() local
236 if (!sym || !menu->prompt || sym_has_value(sym) || in conf_set_all_new_symbols()
237 (sym->type != S_BOOLEAN && sym->type != S_TRISTATE) || in conf_set_all_new_symbols()
238 sym_is_choice_value(sym)) in conf_set_all_new_symbols()
241 if (sym_is_choice(sym)) { in conf_set_all_new_symbols()
260 if (sym->type == S_TRISTATE) { in conf_set_all_new_symbols()
272 sym->def[S_DEF_USER].tri = val; in conf_set_all_new_symbols()
273 sym->flags |= SYMBOL_DEF_USER; in conf_set_all_new_symbols()
281 struct symbol *sym; in conf_rewrite_tristates() local
283 for_all_symbols(sym) { in conf_rewrite_tristates()
284 if (sym_get_type(sym) == S_TRISTATE && in conf_rewrite_tristates()
285 sym->def[S_DEF_USER].tri == old_val) in conf_rewrite_tristates()
286 sym->def[S_DEF_USER].tri = new_val; in conf_rewrite_tristates()
291 static int conf_askvalue(struct symbol *sym, const char *def) in conf_askvalue() argument
293 if (!sym_has_value(sym)) in conf_askvalue()
299 if (!sym_is_changeable(sym)) { in conf_askvalue()
309 if (sym_has_value(sym)) { in conf_askvalue()
325 struct symbol *sym = menu->sym; in conf_string() local
330 printf("(%s) ", sym->name); in conf_string()
331 def = sym_get_string_value(sym); in conf_string()
334 if (!conf_askvalue(sym, def)) in conf_string()
351 if (def && sym_set_string_value(sym, def)) in conf_string()
358 struct symbol *sym = menu->sym; in conf_sym() local
363 if (sym->name) in conf_sym()
364 printf("(%s) ", sym->name); in conf_sym()
366 oldval = sym_get_tristate_value(sym); in conf_sym()
378 if (oldval != no && sym_tristate_within_range(sym, no)) in conf_sym()
380 if (oldval != mod && sym_tristate_within_range(sym, mod)) in conf_sym()
382 if (oldval != yes && sym_tristate_within_range(sym, yes)) in conf_sym()
385 if (!conf_askvalue(sym, sym_get_string_value(sym))) in conf_sym()
416 if (sym_set_tristate_value(sym, newval)) in conf_sym()
439 if (!child->sym) { in conf_choice()
444 if (child->sym == def_sym) { in conf_choice()
450 child->sym->name); in conf_choice()
451 if (!sym_has_value(child->sym)) { in conf_choice()
493 if (!child->sym || !menu_is_visible(child)) in conf_choice()
504 choice_set_value(menu, child->sym); in conf_choice()
511 struct symbol *sym; in conf() local
518 sym = menu->sym; in conf()
546 if (!sym) in conf()
549 if (sym_is_choice(sym)) { in conf()
554 switch (sym->type) { in conf()
566 if (sym) in conf()
570 if (sym) in conf()
576 struct symbol *sym; in check_conf() local
582 sym = menu->sym; in check_conf()
583 if (sym && !sym_has_value(sym) && sym_is_changeable(sym)) { in check_conf()
586 if (sym->name) in check_conf()
587 print_symbol_for_listconfig(sym); in check_conf()