aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roff.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2008-12-06 16:50:18 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2008-12-06 16:50:18 +0000
commit22c2da2e8f371caa5d2148dc9006c1dbb0a76cf4 (patch)
treece1fd47ca17d26edfb725e5f3e22a915f61953f5 /roff.c
parentdf658cccb0773144b1985d7e36be142cd33437dd (diff)
downloadmandoc-22c2da2e8f371caa5d2148dc9006c1dbb0a76cf4.tar.gz
mandoc-22c2da2e8f371caa5d2148dc9006c1dbb0a76cf4.tar.zst
mandoc-22c2da2e8f371caa5d2148dc9006c1dbb0a76cf4.zip
*** empty log message ***
Diffstat (limited to 'roff.c')
-rw-r--r--roff.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/roff.c b/roff.c
index db17d769..26c9ef4d 100644
--- a/roff.c
+++ b/roff.c
@@ -1,4 +1,4 @@
-/* $Id: roff.c,v 1.44 2008/12/06 13:18:44 kristaps Exp $ */
+/* $Id: roff.c,v 1.45 2008/12/06 16:50:18 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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];