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()
158 if (def && sym_set_string_value(sym, def)) in conf_string()
165 struct symbol *sym = menu->sym; in conf_sym() local
170 if (sym->name) in conf_sym()
171 printf("(%s) ", sym->name); in conf_sym()
173 oldval = sym_get_tristate_value(sym); in conf_sym()
185 if (oldval != no && sym_tristate_within_range(sym, no)) in conf_sym()
187 if (oldval != mod && sym_tristate_within_range(sym, mod)) in conf_sym()
189 if (oldval != yes && sym_tristate_within_range(sym, yes)) in conf_sym()
192 if (!conf_askvalue(sym, sym_get_string_value(sym))) in conf_sym()
223 if (sym_set_tristate_value(sym, newval)) in conf_sym()
232 struct symbol *sym, *def_sym; in conf_choice() local
236 sym = menu->sym; in conf_choice()
237 is_new = !sym_has_value(sym); in conf_choice()
238 if (sym_is_changable(sym)) { in conf_choice()
240 sym_calc_value(sym); in conf_choice()
241 switch (sym_get_tristate_value(sym)) { in conf_choice()
250 switch (sym_get_tristate_value(sym)) { in conf_choice()
265 def_sym = sym_get_choice_value(sym); in conf_choice()
271 if (!child->sym) { in conf_choice()
276 if (child->sym == def_sym) { in conf_choice()
282 if (child->sym->name) in conf_choice()
283 printf(" (%s)", child->sym->name); in conf_choice()
284 if (!sym_has_value(child->sym)) in conf_choice()
324 if (!child->sym || !menu_is_visible(child)) in conf_choice()
335 sym_set_choice_value(sym, child->sym); in conf_choice()
347 struct symbol *sym; in conf() local
354 sym = menu->sym; in conf()
382 if (!sym) in conf()
385 if (sym_is_choice(sym)) { in conf()
387 if (sym->curr.tri != mod) in conf()
392 switch (sym->type) { in conf()
404 if (sym) in conf()
408 if (sym) in conf()
414 struct symbol *sym; in check_conf() local
420 sym = menu->sym; in check_conf()
421 if (sym && !sym_has_value(sym)) { in check_conf()
422 if (sym_is_changable(sym) || in check_conf()
423 (sym_is_choice(sym) && sym_get_tristate_value(sym) == yes)) { in check_conf()
425 if (sym->name) { in check_conf()
428 if (sym->type == S_STRING) { in check_conf()
429 str = sym_get_string_value(sym); in check_conf()
431 printf("%s%s=%s\n", CONFIG_, sym->name, str); in check_conf()
434 str = sym_get_string_value(sym); in check_conf()
435 printf("%s%s=%s\n", CONFIG_, sym->name, str); in check_conf()