Lines Matching refs:sym
83 static int conf_askvalue(struct symbol *sym, const char *def) in conf_askvalue() argument
85 enum symbol_type type = sym_get_type(sym); in conf_askvalue()
87 if (!sym_has_value(sym)) in conf_askvalue()
93 if (!sym_is_changable(sym)) { in conf_askvalue()
103 if (sym_has_value(sym)) { in conf_askvalue()
131 struct symbol *sym = menu->sym; in conf_string() local
136 printf("(%s) ", sym->name); in conf_string()
137 def = sym_get_string_value(sym); in conf_string()
138 if (sym_get_string_value(sym)) in conf_string()
140 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()
191 if (!conf_askvalue(sym, sym_get_string_value(sym))) in conf_sym()
222 if (sym_set_tristate_value(sym, newval)) in conf_sym()
231 struct symbol *sym, *def_sym; in conf_choice() local
235 sym = menu->sym; in conf_choice()
236 is_new = !sym_has_value(sym); in conf_choice()
237 if (sym_is_changable(sym)) { in conf_choice()
239 sym_calc_value(sym); in conf_choice()
240 switch (sym_get_tristate_value(sym)) { in conf_choice()
249 switch (sym_get_tristate_value(sym)) { in conf_choice()
264 def_sym = sym_get_choice_value(sym); in conf_choice()
270 if (!child->sym) { in conf_choice()
275 if (child->sym == def_sym) { in conf_choice()
281 if (child->sym->name) in conf_choice()
282 printf(" (%s)", child->sym->name); in conf_choice()
283 if (!sym_has_value(child->sym)) in conf_choice()
323 if (!child->sym || !menu_is_visible(child)) in conf_choice()
334 sym_set_choice_value(sym, child->sym); in conf_choice()
346 struct symbol *sym; in conf() local
353 sym = menu->sym; in conf()
381 if (!sym) in conf()
384 if (sym_is_choice(sym)) { in conf()
386 if (sym->curr.tri != mod) in conf()
391 switch (sym->type) { in conf()
403 if (sym) in conf()
407 if (sym) in conf()
413 struct symbol *sym; in check_conf() local
419 sym = menu->sym; in check_conf()
420 if (sym && !sym_has_value(sym)) { in check_conf()
421 if (sym_is_changable(sym) || in check_conf()
422 (sym_is_choice(sym) && sym_get_tristate_value(sym) == yes)) { in check_conf()
424 if (sym->name) { in check_conf()
427 if (sym->type == S_STRING) { in check_conf()
428 str = sym_get_string_value(sym); in check_conf()
430 printf("%s%s=%s\n", CONFIG_, sym->name, str); in check_conf()
433 str = sym_get_string_value(sym); in check_conf()
434 printf("%s%s=%s\n", CONFIG_, sym->name, str); in check_conf()