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 | 72085fe330b4fb696a4b9f1e6cc4e63af6d3690b (patch) | |
tree | 32d519be8d329befba0e823db56c1c3562ccbb34 /roff.c | |
parent | a705f91ffa6329b5fc3e6c09ce337b0972c19e2e (diff) | |
download | mandoc-72085fe330b4fb696a4b9f1e6cc4e63af6d3690b.tar.gz mandoc-72085fe330b4fb696a4b9f1e6cc4e63af6d3690b.tar.zst mandoc-72085fe330b4fb696a4b9f1e6cc4e63af6d3690b.zip |
Moved charset recognition into the filter.
Diffstat (limited to 'roff.c')
-rw-r--r-- | roff.c | 16 |
1 files changed, 1 insertions, 15 deletions
@@ -1,4 +1,4 @@ -/* $Id: roff.c,v 1.38 2008/12/04 16:34:59 kristaps Exp $ */ +/* $Id: roff.c,v 1.39 2008/12/04 19:31:57 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se> * @@ -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)); } |