Lines Matching refs:sym
84 static int conf_askvalue(struct symbol *sym, const char *def) in conf_askvalue() argument
86 enum symbol_type type = sym_get_type(sym); in conf_askvalue()
88 if (!sym_has_value(sym)) in conf_askvalue()
94 if (!sym_is_changable(sym)) { in conf_askvalue()
104 if (sym_has_value(sym)) { in conf_askvalue()
135 struct symbol *sym = menu->sym; in conf_string() local
140 printf("(%s) ", sym->name); in conf_string()
141 def = sym_get_string_value(sym); in conf_string()
142 if (sym_get_string_value(sym)) in conf_string()
144 if (!conf_askvalue(sym, def)) in conf_string()
161 if (def && sym_set_string_value(sym, def)) in conf_string()
168 struct symbol *sym = menu->sym; in conf_sym() local
173 if (sym->name) in conf_sym()
174 printf("(%s) ", sym->name); in conf_sym()
176 oldval = sym_get_tristate_value(sym); in conf_sym()
188 if (oldval != no && sym_tristate_within_range(sym, no)) in conf_sym()
190 if (oldval != mod && sym_tristate_within_range(sym, mod)) in conf_sym()
192 if (oldval != yes && sym_tristate_within_range(sym, yes)) in conf_sym()
197 if (!conf_askvalue(sym, sym_get_string_value(sym))) in conf_sym()
228 if (sym_set_tristate_value(sym, newval)) in conf_sym()
237 struct symbol *sym, *def_sym; in conf_choice() local
241 sym = menu->sym; in conf_choice()
242 is_new = !sym_has_value(sym); in conf_choice()
243 if (sym_is_changable(sym)) { in conf_choice()
245 sym_calc_value(sym); in conf_choice()
246 switch (sym_get_tristate_value(sym)) { in conf_choice()
255 switch (sym_get_tristate_value(sym)) { in conf_choice()
270 def_sym = sym_get_choice_value(sym); in conf_choice()
276 if (!child->sym) { in conf_choice()
281 if (child->sym == def_sym) { in conf_choice()
287 if (child->sym->name) in conf_choice()
288 printf(" (%s)", child->sym->name); in conf_choice()
289 if (!sym_has_value(child->sym)) in conf_choice()
333 if (!child->sym || !menu_is_visible(child)) in conf_choice()
344 sym_set_choice_value(sym, child->sym); in conf_choice()
356 struct symbol *sym; in conf() local
363 sym = menu->sym; in conf()
390 if (!sym) in conf()
393 if (sym_is_choice(sym)) { in conf()
395 if (sym->curr.tri != mod) in conf()
400 switch (sym->type) { in conf()
412 if (sym) in conf()
416 if (sym) in conf()
422 struct symbol *sym; in check_conf() local
428 sym = menu->sym; in check_conf()
429 if (sym && !sym_has_value(sym)) { in check_conf()
430 if (sym_is_changable(sym) || in check_conf()
431 (sym_is_choice(sym) && sym_get_tristate_value(sym) == yes)) { in check_conf()
433 if (sym->name && !sym_is_choice_value(sym)) { in check_conf()
434 printf("%s%s\n", CONFIG_, sym->name); in check_conf()