diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2008-12-04 19:31:57 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2008-12-04 19:31:57 +0000 |
commit | 50ecaba08336212e4dc1802f15d7d3f4ffad186a (patch) | |
tree | bfc5e27855965ac17df779fa730772c1a696f7a3 /roff.c | |
parent | fb40e7adf35e6b21b0e64e170b71e1a4d2cf5351 (diff) | |
download | mandoc-50ecaba08336212e4dc1802f15d7d3f4ffad186a.tar.gz |
Moved charset recognition into the filter.
Diffstat (limited to 'roff.c')
-rw-r--r-- | roff.c | 14 |
1 files changed, 0 insertions, 14 deletions
@@ -969,23 +969,9 @@ roffparseopts(struct rofftree *tree, int tok, static int roffdata(struct rofftree *tree, int space, char *buf) { - int tok; if (0 == *buf) return(1); - - if (-1 == (tok = rofftok_scan(buf))) { - roff_err(tree, buf, "invalid character sequence"); - return(0); - } else if (ROFFTok_MAX != tok) { - if (ROFFTok_Null == tok) { /* FIXME */ - buf += 2; - return(roffdata(tree, space, buf)); - } - return((*tree->cb.rofftoken) - (tree->arg, space != 0, tok)); - } - return((*tree->cb.roffdata)(tree->arg, space != 0, tree->cur, buf)); } |