| 775 | } |
| 776 | |
| 777 | const 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 | |
| 801 | bool sym_is_changeable(struct symbol *sym) |
| 802 | { |
no test coverage detected