Lines Matching defs:sym

83 static int conf_askvalue(struct symbol *sym, const char *def)
85 enum symbol_type type = sym_get_type(sym);
87 if (!sym_has_value(sym))
93 if (!sym_is_changable(sym)) {
103 if (sym_has_value(sym)) {
131 struct symbol *sym = menu->sym;
136 printf("(%s) ", sym->name);
137 def = sym_get_string_value(sym);
138 if (sym_get_string_value(sym))
140 if (!conf_askvalue(sym, def))
157 if (def && sym_set_string_value(sym, def))
164 struct symbol *sym = menu->sym;
169 if (sym->name)
170 printf("(%s) ", sym->name);
172 oldval = sym_get_tristate_value(sym);
184 if (oldval != no && sym_tristate_within_range(sym, no))
186 if (oldval != mod && sym_tristate_within_range(sym, mod))
188 if (oldval != yes && sym_tristate_within_range(sym, yes))
191 if (!conf_askvalue(sym, sym_get_string_value(sym)))
222 if (sym_set_tristate_value(sym, newval))
231 struct symbol *sym, *def_sym;
235 sym = menu->sym;
236 is_new = !sym_has_value(sym);
237 if (sym_is_changable(sym)) {
239 sym_calc_value(sym);
240 switch (sym_get_tristate_value(sym)) {
249 switch (sym_get_tristate_value(sym)) {
264 def_sym = sym_get_choice_value(sym);
270 if (!child->sym) {
275 if (child->sym == def_sym) {
281 if (child->sym->name)
282 printf(" (%s)", child->sym->name);
283 if (!sym_has_value(child->sym))
323 if (!child->sym || !menu_is_visible(child))
334 sym_set_choice_value(sym, child->sym);
346 struct symbol *sym;
353 sym = menu->sym;
381 if (!sym)
384 if (sym_is_choice(sym)) {
386 if (sym->curr.tri != mod)
391 switch (sym->type) {
403 if (sym)
407 if (sym)
413 struct symbol *sym;
419 sym = menu->sym;
420 if (sym && !sym_has_value(sym)) {
421 if (sym_is_changable(sym) ||
422 (sym_is_choice(sym) && sym_get_tristate_value(sym) == yes)) {
424 if (sym->name) {
427 if (sym->type == S_STRING) {
428 str = sym_get_string_value(sym);
430 printf("%s%s=%s\n", CONFIG_, sym->name, str);
433 str = sym_get_string_value(sym);
434 printf("%s%s=%s\n", CONFIG_, sym->name, str);