| 744 | } |
| 745 | |
| 746 | const 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 | |
| 770 | bool sym_is_changeable(struct symbol *sym) |
| 771 | { |
no test coverage detected