diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2008-12-06 16:50:18 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2008-12-06 16:50:18 +0000 |
commit | 3e277841fd42bbe51c55b127542258aebc6cb051 (patch) | |
tree | da5f7826cb3c4c69ce812d59b25c3c04da6da872 /roff.c | |
parent | c88b46a1d151f56cb6253e239d00705af0b1087f (diff) | |
download | mandoc-3e277841fd42bbe51c55b127542258aebc6cb051.tar.gz |
*** empty log message ***
Diffstat (limited to 'roff.c')
-rw-r--r-- | roff.c | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -660,6 +660,16 @@ roffspecial(struct rofftree *tree, int tok, return(0); } break; + + case (ROFF_Ud): + /* FALLTHROUGH */ + case (ROFF_Bt): + if (0 != sz) { + roff_err(tree, start, "`%s' expects no args", + toknames[tok]); + return(0); + } + break; default: break; } @@ -1170,8 +1180,6 @@ roff_layout(ROFFCALL_ARGS) static int roff_ordered(ROFFCALL_ARGS) { - /* FIXME: the tail-switch statement is in two different places: - * consolidate. */ int i, first, c, argcp[ROFF_MAXLINEARG]; char *ordp[ROFF_MAXLINEARG], *p, *argvp[ROFF_MAXLINEARG]; |