diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-05-24 21:31:23 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-05-24 21:31:23 +0000 |
commit | 4b3a9caedf7632dd837b5d786c41d0d124c06ee4 (patch) | |
tree | 531792d234b46886165afa0ee0793e806c4e1f79 /chars.c | |
parent | eec9b5ae7a9d9378856fdb038bf9c588af68f047 (diff) | |
download | mandoc-4b3a9caedf7632dd837b5d786c41d0d124c06ee4.tar.gz |
Remove all references to ESCAPE_PREDEF, which is now not exposed passed
the libroff point. This clears up a nice chunk of code.
Diffstat (limited to 'chars.c')
-rw-r--r-- | chars.c | 31 |
1 files changed, 0 insertions, 31 deletions
@@ -113,21 +113,6 @@ mchars_spec2cp(struct mchars *arg, const char *p, size_t sz) return(ln->unicode); } - -/* - * Reserved word to Unicode codepoint. - */ -int -mchars_res2cp(struct mchars *arg, const char *p, size_t sz) -{ - const struct ln *ln; - - ln = find(arg, p, sz); - if (NULL == ln) - return(-1); - return(ln->unicode); -} - /* * Numbered character string to ASCII codepoint. * This can only be a printable character (i.e., alnum, punct, space) so @@ -176,22 +161,6 @@ mchars_spec2str(struct mchars *arg, const char *p, size_t sz, size_t *rsz) return(ln->ascii); } -/* - * Reserved word to string array. - */ -const char * -mchars_res2str(struct mchars *arg, const char *p, size_t sz, size_t *rsz) -{ - const struct ln *ln; - - ln = find(arg, p, sz); - if (NULL == ln) - return(NULL); - - *rsz = strlen(ln->ascii); - return(ln->ascii); -} - static const struct ln * find(struct mchars *tab, const char *p, size_t sz) { |