Lines Matching refs:sym
465 struct symbol *sym; in build_conf() local
483 sym = menu->sym; in build_conf()
485 if (!sym) { in build_conf()
525 type = sym_get_type(sym); in build_conf()
526 if (sym_is_choice(sym)) { in build_conf()
527 struct symbol *def_sym = sym_get_choice_value(sym); in build_conf()
532 if (menu_is_visible(child) && child->sym == def_sym) in build_conf()
536 val = sym_get_tristate_value(sym); in build_conf()
537 if (sym_is_changeable(sym)) { in build_conf()
580 val = sym_get_tristate_value(sym); in build_conf()
581 if (sym_is_choice_value(sym) && val == yes) { in build_conf()
588 if (sym_is_changeable(sym)) in build_conf()
601 if (sym_is_changeable(sym)) { in build_conf()
602 if (sym->rev_dep.tri == mod) in build_conf()
612 tmp = 2 + strlen(sym_get_string_value(sym)); /* () = 2 */ in build_conf()
613 item_make("(%s)", sym_get_string_value(sym)); in build_conf()
618 (sym_has_value(sym) || !sym_is_changeable(sym)) ? in build_conf()
626 (sym_has_value(sym) || !sym_is_changeable(sym)) ? in build_conf()
646 struct symbol *sym; in conf() local
678 sym = submenu->sym; in conf()
680 sym = NULL; in conf()
692 if (sym_is_choice(sym) && sym_get_tristate_value(sym) == yes) in conf()
703 if (sym) in conf()
720 if (sym_set_tristate_value(sym, yes)) in conf()
722 if (sym_set_tristate_value(sym, mod)) in conf()
728 sym_set_tristate_value(sym, no); in conf()
732 sym_set_tristate_value(sym, mod); in conf()
736 sym_toggle_tristate_value(sym); in conf()
799 active = sym_get_choice_value(menu->sym); in conf_choice()
809 if (child->sym) in conf_choice()
816 if (child->sym == active) in conf_choice()
818 if (child->sym == sym_get_choice_value(menu->sym)) in conf_choice()
832 if (!child->sym) in conf_choice()
835 sym_set_tristate_value(child->sym, yes); in conf_choice()
842 active = child->sym; in conf_choice()
862 switch (sym_get_type(menu->sym)) { in conf_string()
878 sym_get_string_value(menu->sym)); in conf_string()
881 if (sym_set_string_value(menu->sym, dialog_input_result)) in conf_string()