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 /term.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 'term.c')
-rw-r--r-- | term.c | 22 |
1 files changed, 0 insertions, 22 deletions
@@ -447,12 +447,6 @@ term_word(struct termp *p, const char *word) break; encode1(p, uc); continue; - case (ESCAPE_PREDEF): - uc = mchars_res2cp(p->symtab, seq, sz); - if (uc <= 0) - break; - encode1(p, uc); - continue; case (ESCAPE_SPECIAL): uc = mchars_spec2cp(p->symtab, seq, sz); if (uc <= 0) @@ -472,11 +466,6 @@ term_word(struct termp *p, const char *word) if ('\0' != c) encode(p, &c, 1); break; - case (ESCAPE_PREDEF): - cp = mchars_res2str(p->symtab, seq, sz, &ssz); - if (NULL != cp) - encode(p, cp, ssz); - break; case (ESCAPE_SPECIAL): cp = mchars_spec2str(p->symtab, seq, sz, &ssz); if (NULL != cp) @@ -648,13 +637,6 @@ term_strlen(const struct termp *p, const char *cp) break; sz += (*p->width)(p, c); continue; - case (ESCAPE_PREDEF): - c = mchars_res2cp - (p->symtab, seq, ssz); - if (c <= 0) - break; - sz += (*p->width)(p, c); - continue; case (ESCAPE_SPECIAL): c = mchars_spec2cp (p->symtab, seq, ssz); @@ -677,10 +659,6 @@ term_strlen(const struct termp *p, const char *cp) if ('\0' != c) sz += (*p->width)(p, c); break; - case (ESCAPE_PREDEF): - rhs = mchars_res2str - (p->symtab, seq, ssz, &rsz); - break; case (ESCAPE_SPECIAL): rhs = mchars_spec2str (p->symtab, seq, ssz, &rsz); |