Lines Matching refs:sym

86 static int conf_askvalue(struct symbol *sym, const char *def)
88 enum symbol_type type = sym_get_type(sym);
90 if (!sym_has_value(sym))
96 if (!sym_is_changeable(sym)) {
106 if (sym_has_value(sym)) {
134 struct symbol *sym = menu->sym;
139 printf("(%s) ", sym->name);
140 def = sym_get_string_value(sym);
141 if (sym_get_string_value(sym))
143 if (!conf_askvalue(sym, def))
160 if (def && sym_set_string_value(sym, def))
167 struct symbol *sym = menu->sym;
172 if (sym->name)
173 printf("(%s) ", sym->name);
175 oldval = sym_get_tristate_value(sym);
187 if (oldval != no && sym_tristate_within_range(sym, no))
189 if (oldval != mod && sym_tristate_within_range(sym, mod))
191 if (oldval != yes && sym_tristate_within_range(sym, yes))
194 if (!conf_askvalue(sym, sym_get_string_value(sym)))
225 if (sym_set_tristate_value(sym, newval))
234 struct symbol *sym, *def_sym;
238 sym = menu->sym;
239 is_new = !sym_has_value(sym);
240 if (sym_is_changeable(sym)) {
242 sym_calc_value(sym);
243 switch (sym_get_tristate_value(sym)) {
252 switch (sym_get_tristate_value(sym)) {
267 def_sym = sym_get_choice_value(sym);
273 if (!child->sym) {
278 if (child->sym == def_sym) {
284 if (child->sym->name)
285 printf(" (%s)", child->sym->name);
286 if (!sym_has_value(child->sym))
326 if (!child->sym || !menu_is_visible(child))
337 sym_set_choice_value(sym, child->sym);
349 struct symbol *sym;
356 sym = menu->sym;
384 if (!sym)
387 if (sym_is_choice(sym)) {
389 if (sym->curr.tri != mod)
394 switch (sym->type) {
406 if (sym)
410 if (sym)
416 struct symbol *sym;
422 sym = menu->sym;
423 if (sym && !sym_has_value(sym)) {
424 if (sym_is_changeable(sym) ||
425 (sym_is_choice(sym) && sym_get_tristate_value(sym) == yes)) {
427 if (sym->name) {
430 if (sym->type == S_STRING) {
431 str = sym_get_string_value(sym);
433 printf("%s%s=%s\n", CONFIG_, sym->name, str);
436 str = sym_get_string_value(sym);
437 printf("%s%s=%s\n", CONFIG_, sym->name, str);