Lines Matching refs:sym

85 static int conf_askvalue(struct symbol *sym, const char *def)  in conf_askvalue()  argument
87 enum symbol_type type = sym_get_type(sym); in conf_askvalue()
89 if (!sym_has_value(sym)) in conf_askvalue()
95 if (!sym_is_changable(sym)) { in conf_askvalue()
105 if (sym_has_value(sym)) { in conf_askvalue()
136 struct symbol *sym = menu->sym; in conf_string() local
141 printf("(%s) ", sym->name); in conf_string()
142 def = sym_get_string_value(sym); in conf_string()
143 if (sym_get_string_value(sym)) in conf_string()
145 if (!conf_askvalue(sym, def)) in conf_string()
162 if (def && sym_set_string_value(sym, def)) in conf_string()
169 struct symbol *sym = menu->sym; in conf_sym() local
174 if (sym->name) in conf_sym()
175 printf("(%s) ", sym->name); in conf_sym()
177 oldval = sym_get_tristate_value(sym); in conf_sym()
189 if (oldval != no && sym_tristate_within_range(sym, no)) in conf_sym()
191 if (oldval != mod && sym_tristate_within_range(sym, mod)) in conf_sym()
193 if (oldval != yes && sym_tristate_within_range(sym, yes)) in conf_sym()
198 if (!conf_askvalue(sym, sym_get_string_value(sym))) in conf_sym()
229 if (sym_set_tristate_value(sym, newval)) in conf_sym()
238 struct symbol *sym, *def_sym; in conf_choice() local
242 sym = menu->sym; in conf_choice()
243 is_new = !sym_has_value(sym); in conf_choice()
244 if (sym_is_changable(sym)) { in conf_choice()
246 sym_calc_value(sym); in conf_choice()
247 switch (sym_get_tristate_value(sym)) { in conf_choice()
256 switch (sym_get_tristate_value(sym)) { in conf_choice()
271 def_sym = sym_get_choice_value(sym); in conf_choice()
277 if (!child->sym) { in conf_choice()
282 if (child->sym == def_sym) { in conf_choice()
288 if (child->sym->name) in conf_choice()
289 printf(" (%s)", child->sym->name); in conf_choice()
290 if (!sym_has_value(child->sym)) in conf_choice()
334 if (!child->sym || !menu_is_visible(child)) in conf_choice()
345 sym_set_choice_value(sym, child->sym); in conf_choice()
357 struct symbol *sym; in conf() local
364 sym = menu->sym; in conf()
391 if (!sym) in conf()
394 if (sym_is_choice(sym)) { in conf()
396 if (sym->curr.tri != mod) in conf()
401 switch (sym->type) { in conf()
413 if (sym) in conf()
417 if (sym) in conf()
423 struct symbol *sym; in check_conf() local
429 sym = menu->sym; in check_conf()
430 if (sym && !sym_has_value(sym)) { in check_conf()
431 if (sym_is_changable(sym) || in check_conf()
432 (sym_is_choice(sym) && sym_get_tristate_value(sym) == yes)) { in check_conf()
434 if (sym->name && !sym_is_choice_value(sym)) { in check_conf()
435 printf("%s%s\n", CONFIG_, sym->name); in check_conf()