Lines Matching refs:sym

119 	struct symbol *sym;
135 expr_list_for_each_sym(prop->expr, e, sym)
145 expr_list_for_each_sym(prop->expr, e, sym) {
147 sym->def[S_DEF_USER].tri = yes;
148 csym->def[S_DEF_USER].val = sym;
150 sym->def[S_DEF_USER].tri = no;
152 sym->flags |= SYMBOL_DEF_USER;
154 sym->flags &= ~SYMBOL_VALID;
173 struct symbol *sym, *csym;
229 for_all_symbols(i, sym) {
230 if (sym_has_value(sym) || sym->flags & SYMBOL_VALID)
232 switch (sym_get_type(sym)) {
238 sym->def[S_DEF_USER].tri = yes;
241 sym->def[S_DEF_USER].tri = mod;
244 sym->def[S_DEF_USER].tri = no;
247 sym->def[S_DEF_USER].tri = no;
249 if (sym->type == S_TRISTATE) {
251 sym->def[S_DEF_USER].tri = yes;
253 sym->def[S_DEF_USER].tri = mod;
255 sym->def[S_DEF_USER].tri = yes;
260 if (!(sym_is_choice(sym) && mode == def_random))
261 sym->flags |= SYMBOL_DEF_USER;
306 struct symbol *sym;
309 for_all_symbols(i, sym) {
310 if (sym_get_type(sym) == S_TRISTATE &&
311 sym->def[S_DEF_USER].tri == old_val)
312 sym->def[S_DEF_USER].tri = new_val;
317 static int conf_askvalue(struct symbol *sym, const char *def)
319 if (!sym_has_value(sym))
325 if (!sym_is_changeable(sym)) {
335 if (sym_has_value(sym)) {
351 struct symbol *sym = menu->sym;
356 printf("(%s) ", sym->name);
357 def = sym_get_string_value(sym);
360 if (!conf_askvalue(sym, def))
377 if (def && sym_set_string_value(sym, def))
384 struct symbol *sym = menu->sym;
389 if (sym->name)
390 printf("(%s) ", sym->name);
392 oldval = sym_get_tristate_value(sym);
404 if (oldval != no && sym_tristate_within_range(sym, no))
406 if (oldval != mod && sym_tristate_within_range(sym, mod))
408 if (oldval != yes && sym_tristate_within_range(sym, yes))
411 if (!conf_askvalue(sym, sym_get_string_value(sym)))
442 if (sym_set_tristate_value(sym, newval))
451 struct symbol *sym, *def_sym;
455 sym = menu->sym;
456 is_new = !sym_has_value(sym);
457 if (sym_is_changeable(sym)) {
459 sym_calc_value(sym);
460 switch (sym_get_tristate_value(sym)) {
469 switch (sym_get_tristate_value(sym)) {
484 def_sym = sym_get_choice_value(sym);
490 if (!child->sym) {
495 if (child->sym == def_sym) {
501 if (child->sym->name)
502 printf(" (%s)", child->sym->name);
503 if (!sym_has_value(child->sym))
543 if (!child->sym || !menu_is_visible(child))
554 sym_set_tristate_value(child->sym, yes);
566 struct symbol *sym;
573 sym = menu->sym;
601 if (!sym)
604 if (sym_is_choice(sym)) {
606 if (sym->curr.tri != mod)
611 switch (sym->type) {
623 if (sym)
627 if (sym)
633 struct symbol *sym;
639 sym = menu->sym;
640 if (sym && !sym_has_value(sym) &&
641 (sym_is_changeable(sym) ||
642 (sym_is_choice(sym) && sym_get_tristate_value(sym) == yes))) {
646 if (sym->name)
647 print_symbol_for_listconfig(sym);