Lines Matching refs:sym

119 	struct symbol *sym;  in randomize_choice_values()  local
135 expr_list_for_each_sym(prop->expr, e, sym) in randomize_choice_values()
145 expr_list_for_each_sym(prop->expr, e, sym) { in randomize_choice_values()
147 sym->def[S_DEF_USER].tri = yes; in randomize_choice_values()
148 csym->def[S_DEF_USER].val = sym; in randomize_choice_values()
150 sym->def[S_DEF_USER].tri = no; in randomize_choice_values()
152 sym->flags |= SYMBOL_DEF_USER; in randomize_choice_values()
154 sym->flags &= ~SYMBOL_VALID; in randomize_choice_values()
173 struct symbol *sym, *csym; in conf_set_all_new_symbols() local
229 for_all_symbols(i, sym) { in conf_set_all_new_symbols()
230 if (sym_has_value(sym) || sym->flags & SYMBOL_VALID) in conf_set_all_new_symbols()
232 switch (sym_get_type(sym)) { in conf_set_all_new_symbols()
238 sym->def[S_DEF_USER].tri = yes; in conf_set_all_new_symbols()
241 sym->def[S_DEF_USER].tri = mod; in conf_set_all_new_symbols()
244 sym->def[S_DEF_USER].tri = no; in conf_set_all_new_symbols()
247 sym->def[S_DEF_USER].tri = no; in conf_set_all_new_symbols()
249 if (sym->type == S_TRISTATE) { in conf_set_all_new_symbols()
251 sym->def[S_DEF_USER].tri = yes; in conf_set_all_new_symbols()
253 sym->def[S_DEF_USER].tri = mod; in conf_set_all_new_symbols()
255 sym->def[S_DEF_USER].tri = yes; in conf_set_all_new_symbols()
260 if (!(sym_is_choice(sym) && mode == def_random)) in conf_set_all_new_symbols()
261 sym->flags |= SYMBOL_DEF_USER; in conf_set_all_new_symbols()
306 struct symbol *sym; in conf_rewrite_tristates() local
309 for_all_symbols(i, sym) { in conf_rewrite_tristates()
310 if (sym_get_type(sym) == S_TRISTATE && in conf_rewrite_tristates()
311 sym->def[S_DEF_USER].tri == old_val) in conf_rewrite_tristates()
312 sym->def[S_DEF_USER].tri = new_val; in conf_rewrite_tristates()
317 static int conf_askvalue(struct symbol *sym, const char *def) in conf_askvalue() argument
319 if (!sym_has_value(sym)) in conf_askvalue()
325 if (!sym_is_changeable(sym)) { in conf_askvalue()
335 if (sym_has_value(sym)) { in conf_askvalue()
351 struct symbol *sym = menu->sym; in conf_string() local
356 printf("(%s) ", sym->name); in conf_string()
357 def = sym_get_string_value(sym); in conf_string()
360 if (!conf_askvalue(sym, def)) in conf_string()
377 if (def && sym_set_string_value(sym, def)) in conf_string()
384 struct symbol *sym = menu->sym; in conf_sym() local
389 if (sym->name) in conf_sym()
390 printf("(%s) ", sym->name); in conf_sym()
392 oldval = sym_get_tristate_value(sym); in conf_sym()
404 if (oldval != no && sym_tristate_within_range(sym, no)) in conf_sym()
406 if (oldval != mod && sym_tristate_within_range(sym, mod)) in conf_sym()
408 if (oldval != yes && sym_tristate_within_range(sym, yes)) in conf_sym()
411 if (!conf_askvalue(sym, sym_get_string_value(sym))) in conf_sym()
442 if (sym_set_tristate_value(sym, newval)) in conf_sym()
451 struct symbol *sym, *def_sym; in conf_choice() local
455 sym = menu->sym; in conf_choice()
456 is_new = !sym_has_value(sym); in conf_choice()
457 if (sym_is_changeable(sym)) { in conf_choice()
459 sym_calc_value(sym); in conf_choice()
460 switch (sym_get_tristate_value(sym)) { in conf_choice()
469 switch (sym_get_tristate_value(sym)) { in conf_choice()
484 def_sym = sym_get_choice_value(sym); in conf_choice()
490 if (!child->sym) { in conf_choice()
495 if (child->sym == def_sym) { in conf_choice()
501 if (child->sym->name) in conf_choice()
502 printf(" (%s)", child->sym->name); in conf_choice()
503 if (!sym_has_value(child->sym)) in conf_choice()
543 if (!child->sym || !menu_is_visible(child)) in conf_choice()
554 sym_set_tristate_value(child->sym, yes); in conf_choice()
566 struct symbol *sym; in conf() local
573 sym = menu->sym; in conf()
601 if (!sym) in conf()
604 if (sym_is_choice(sym)) { in conf()
606 if (sym->curr.tri != mod) in conf()
611 switch (sym->type) { in conf()
623 if (sym) in conf()
627 if (sym) in conf()
633 struct symbol *sym; in check_conf() local
639 sym = menu->sym; in check_conf()
640 if (sym && !sym_has_value(sym) && in check_conf()
641 (sym_is_changeable(sym) || in check_conf()
642 (sym_is_choice(sym) && sym_get_tristate_value(sym) == yes))) { in check_conf()
646 if (sym->name) in check_conf()
647 print_symbol_for_listconfig(sym); in check_conf()