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()
132 struct symbol *sym = menu->sym; in conf_string() local
137 printf("(%s) ", sym->name); in conf_string()
138 def = sym_get_string_value(sym); in conf_string()
139 if (sym_get_string_value(sym)) in conf_string()
141 if (!conf_askvalue(sym, def)) in conf_string()
157 if (def && sym_set_string_value(sym, def)) in conf_string()
164 struct symbol *sym = menu->sym; in conf_sym() local
169 if (sym->name) in conf_sym()
170 printf("(%s) ", sym->name); in conf_sym()
172 oldval = sym_get_tristate_value(sym); in conf_sym()
184 if (oldval != no && sym_tristate_within_range(sym, no)) in conf_sym()
186 if (oldval != mod && sym_tristate_within_range(sym, mod)) in conf_sym()
188 if (oldval != yes && sym_tristate_within_range(sym, yes)) in conf_sym()
193 if (!conf_askvalue(sym, sym_get_string_value(sym))) in conf_sym()
224 if (sym_set_tristate_value(sym, newval)) in conf_sym()
233 struct symbol *sym, *def_sym; in conf_choice() local
237 sym = menu->sym; in conf_choice()
238 is_new = !sym_has_value(sym); in conf_choice()
239 if (sym_is_changable(sym)) { in conf_choice()
241 sym_calc_value(sym); in conf_choice()
242 switch (sym_get_tristate_value(sym)) { in conf_choice()
251 switch (sym_get_tristate_value(sym)) { in conf_choice()
266 def_sym = sym_get_choice_value(sym); in conf_choice()
272 if (!child->sym) { in conf_choice()
277 if (child->sym == def_sym) { in conf_choice()
283 if (child->sym->name) in conf_choice()
284 printf(" (%s)", child->sym->name); in conf_choice()
285 if (!sym_has_value(child->sym)) in conf_choice()
328 if (!child->sym || !menu_is_visible(child)) in conf_choice()
339 sym_set_choice_value(sym, child->sym); in conf_choice()
351 struct symbol *sym; in conf() local
358 sym = menu->sym; in conf()
384 if (!sym) in conf()
387 if (sym_is_choice(sym)) { in conf()
389 if (sym->curr.tri != mod) in conf()
394 switch (sym->type) { in conf()
406 if (sym) in conf()
410 if (sym) in conf()
416 struct symbol *sym; in check_conf() local
422 sym = menu->sym; in check_conf()
423 if (sym && !sym_has_value(sym)) { in check_conf()
424 if (sym_is_changable(sym) || in check_conf()
425 (sym_is_choice(sym) && sym_get_tristate_value(sym) == yes)) { in check_conf()
427 if (sym->name && !sym_is_choice_value(sym)) { in check_conf()
428 printf("%s%s\n", CONFIG_, sym->name); in check_conf()