diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-02-06 09:38:43 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-02-06 09:38:43 +0000 |
commit | a2da7908b98806106e371a1ff27e835194407859 (patch) | |
tree | 37eca625bf2d10bd6279bac7aa48420a2714f6de /man_validate.c | |
parent | 7dfb85a6973abe199100f8b965b4751bd3516595 (diff) | |
download | mandoc-a2da7908b98806106e371a1ff27e835194407859.tar.gz |
better diagnostics about excess arguments to .PD .ft .sp
Diffstat (limited to 'man_validate.c')
-rw-r--r-- | man_validate.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/man_validate.c b/man_validate.c index 682213b7..4a4c3560 100644 --- a/man_validate.c +++ b/man_validate.c @@ -39,7 +39,6 @@ typedef void (*v_check)(CHKARGS); static void check_eq2(CHKARGS); -static void check_le1(CHKARGS); static void check_le5(CHKARGS); static void check_par(CHKARGS); static void check_part(CHKARGS); @@ -85,7 +84,7 @@ static v_check man_valids[MAN_MAX] = { check_part, /* RS */ NULL, /* DT */ post_UC, /* UC */ - check_le1, /* PD */ + NULL, /* PD */ post_AT, /* AT */ NULL, /* in */ post_ft, /* ft */ @@ -182,7 +181,6 @@ check_##name(CHKARGS) \ } INEQ_DEFINE(2, ==, eq2) -INEQ_DEFINE(1, <=, le1) INEQ_DEFINE(5, <=, le5) static void @@ -240,10 +238,6 @@ post_ft(CHKARGS) n->line, n->pos, "ft %s", cp); *cp = '\0'; } - - if (1 < n->nchild) - mandoc_vmsg(MANDOCERR_ARGCOUNT, man->parse, n->line, - n->pos, "want one child (have %d)", n->nchild); } static void @@ -495,9 +489,6 @@ static void post_vs(CHKARGS) { - if (n->tok == MAN_sp) - check_le1(man, n); - if (NULL != n->prev) return; |