| 1812 | } |
| 1813 | |
| 1814 | staticfn int |
| 1815 | optfn_glyph( |
| 1816 | int optidx UNUSED, int req, boolean negated, |
| 1817 | char *opts, char *op) |
| 1818 | { |
| 1819 | int glyph; |
| 1820 | |
| 1821 | if (req == do_init) { |
| 1822 | return optn_ok; |
| 1823 | } |
| 1824 | if (req == do_set) { |
| 1825 | /* OPTION=glyph:G_glyph/U+NNNN/r-g-b */ |
| 1826 | if (negated) { |
| 1827 | if (op != empty_optstr) { |
| 1828 | bad_negation("glyph", TRUE); |
| 1829 | return optn_err; |
| 1830 | } |
| 1831 | } |
| 1832 | if (op == empty_optstr) |
| 1833 | return optn_err; |
| 1834 | /* strip leading/trailing spaces, condense internal ones (3.6.2) */ |
| 1835 | mungspaces(op); |
| 1836 | if (!glyphrep_to_custom_map_entries(op, &glyph)) |
| 1837 | return optn_err; |
| 1838 | return optn_ok; |
| 1839 | } |
| 1840 | if (req == get_val) { |
| 1841 | Sprintf(opts, "%s", to_be_done); |
| 1842 | return optn_ok; |
| 1843 | } |
| 1844 | if (req == get_cnf_val) { |
| 1845 | opts[0] = '\0'; |
| 1846 | return optn_ok; |
| 1847 | } |
| 1848 | return optn_ok; |
| 1849 | } |
| 1850 | |
| 1851 | staticfn int |
| 1852 | optfn_hilite_status( |
nothing calls this directly
no test coverage detected