Lines Matching refs:sym
86 static int conf_askvalue(struct symbol *sym, const char *def) in conf_askvalue() argument
88 enum symbol_type type = sym_get_type(sym); in conf_askvalue()
90 if (!sym_has_value(sym)) in conf_askvalue()
96 if (!sym_is_changeable(sym)) { in conf_askvalue()
106 if (sym_has_value(sym)) { in conf_askvalue()
134 struct symbol *sym = menu->sym; in conf_string() local
139 printf("(%s) ", sym->name); in conf_string()
140 def = sym_get_string_value(sym); in conf_string()
141 if (sym_get_string_value(sym)) in conf_string()
143 if (!conf_askvalue(sym, def)) in conf_string()
160 if (def && sym_set_string_value(sym, def)) in conf_string()
167 struct symbol *sym = menu->sym; in conf_sym() local
172 if (sym->name) in conf_sym()
173 printf("(%s) ", sym->name); in conf_sym()
175 oldval = sym_get_tristate_value(sym); in conf_sym()
187 if (oldval != no && sym_tristate_within_range(sym, no)) in conf_sym()
189 if (oldval != mod && sym_tristate_within_range(sym, mod)) in conf_sym()
191 if (oldval != yes && sym_tristate_within_range(sym, yes)) in conf_sym()
194 if (!conf_askvalue(sym, sym_get_string_value(sym))) in conf_sym()
225 if (sym_set_tristate_value(sym, newval)) in conf_sym()
234 struct symbol *sym, *def_sym; in conf_choice() local
238 sym = menu->sym; in conf_choice()
239 is_new = !sym_has_value(sym); in conf_choice()
240 if (sym_is_changeable(sym)) { in conf_choice()
242 sym_calc_value(sym); in conf_choice()
243 switch (sym_get_tristate_value(sym)) { in conf_choice()
252 switch (sym_get_tristate_value(sym)) { in conf_choice()
267 def_sym = sym_get_choice_value(sym); in conf_choice()
273 if (!child->sym) { in conf_choice()
278 if (child->sym == def_sym) { in conf_choice()
284 if (child->sym->name) in conf_choice()
285 printf(" (%s)", child->sym->name); in conf_choice()
286 if (!sym_has_value(child->sym)) in conf_choice()
326 if (!child->sym || !menu_is_visible(child)) in conf_choice()
337 sym_set_choice_value(sym, child->sym); in conf_choice()
349 struct symbol *sym; in conf() local
356 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_changeable(sym) || in check_conf()
425 (sym_is_choice(sym) && sym_get_tristate_value(sym) == yes)) { in check_conf()
427 if (sym->name) { in check_conf()
430 if (sym->type == S_STRING) { in check_conf()
431 str = sym_get_string_value(sym); in check_conf()
433 printf("%s%s=%s\n", CONFIG_, sym->name, str); in check_conf()
436 str = sym_get_string_value(sym); in check_conf()
437 printf("%s%s=%s\n", CONFIG_, sym->name, str); in check_conf()