MCPcopy Create free account
hub / github.com/coreboot/coreboot / sym_get_string_value

Function sym_get_string_value

util/kconfig/symbol.c:777–799  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

775}
776
777const char *sym_get_string_value(struct symbol *sym)
778{
779 tristate val;
780
781 switch (sym->type) {
782 case S_BOOLEAN:
783 case S_TRISTATE:
784 val = sym_get_tristate_value(sym);
785 switch (val) {
786 case no:
787 return "n";
788 case mod:
789 sym_calc_value(modules_sym);
790 return (modules_sym->curr.tri == no) ? "n" : "m";
791 case yes:
792 return "y";
793 }
794 break;
795 default:
796 ;
797 }
798 return (const char *)sym->curr.val;
799}
800
801bool sym_is_changeable(struct symbol *sym)
802{

Callers 15

updateMenuMethod · 0.85
setModelDataMethod · 0.85
symbolInfoMethod · 0.85
build_confFunction · 0.85
conf_stringFunction · 0.85
expr_calc_valueFunction · 0.85
expr_print_gstr_helperFunction · 0.85
__print_symbolFunction · 0.85
print_symbol_for_cFunction · 0.85
conf_write_defconfigFunction · 0.85
conf_touch_depsFunction · 0.85

Calls 2

sym_get_tristate_valueFunction · 0.85
sym_calc_valueFunction · 0.85

Tested by

no test coverage detected