From 50ecaba08336212e4dc1802f15d7d3f4ffad186a Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Thu, 4 Dec 2008 19:31:57 +0000 Subject: Moved charset recognition into the filter. --- roff.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'roff.c') diff --git a/roff.c b/roff.c index 08d10ffb..fbfd6d8f 100644 --- a/roff.c +++ b/roff.c @@ -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)); } -- cgit