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

Function sym_get_string_value

scripts/config/symbol.c:746–768  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

744}
745
746const char *sym_get_string_value(struct symbol *sym)
747{
748 tristate val;
749
750 switch (sym->type) {
751 case S_BOOLEAN:
752 case S_TRISTATE:
753 val = sym_get_tristate_value(sym);
754 switch (val) {
755 case no:
756 return "n";
757 case mod:
758 sym_calc_value(modules_sym);
759 return (modules_sym->curr.tri == no) ? "n" : "m";
760 case yes:
761 return "y";
762 }
763 break;
764 default:
765 ;
766 }
767 return (const char *)sym->curr.val;
768}
769
770bool sym_is_changeable(struct symbol *sym)
771{

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