summaryrefslogtreecommitdiffstats
path: root/chars.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-05-24 21:31:23 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-05-24 21:31:23 +0000
commit4b3a9caedf7632dd837b5d786c41d0d124c06ee4 (patch)
tree531792d234b46886165afa0ee0793e806c4e1f79 /chars.c
parenteec9b5ae7a9d9378856fdb038bf9c588af68f047 (diff)
downloadmandoc-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.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/chars.c b/chars.c
index 66bfc5ec..862517e8 100644
--- a/chars.c
+++ b/chars.c
@@ -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)
{