summaryrefslogtreecommitdiffstatshomepage
path: root/man_validate.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-26 14:38:11 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-26 14:38:11 +0000
commit080c584ff1e9cef269b4c220a099f4fb842e538c (patch)
tree3b391a36b2f109f2e19383efa85879f863c45b12 /man_validate.c
parentfd67adbb53e1be77e0cebd2f9e4c50c1c643cb72 (diff)
downloadmandoc-080c584ff1e9cef269b4c220a099f4fb842e538c.tar.gz
mandoc-080c584ff1e9cef269b4c220a099f4fb842e538c.tar.zst
mandoc-080c584ff1e9cef269b4c220a099f4fb842e538c.zip
Initial front-end formatting for -man pages.
Diffstat (limited to 'man_validate.c')
-rw-r--r--man_validate.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/man_validate.c b/man_validate.c
index 71e30b80..54536a5f 100644
--- a/man_validate.c
+++ b/man_validate.c
@@ -1,4 +1,4 @@
-/* $Id: man_validate.c,v 1.3 2009/03/26 09:55:39 kristaps Exp $ */
+/* $Id: man_validate.c,v 1.4 2009/03/26 14:38:11 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@openbsd.org>
*
@@ -54,7 +54,7 @@ static const struct man_valid man_valids[MAN_MAX] = {
{ posts_ge2_le5 }, /* TH */
{ posts_ge1 }, /* SH */
{ posts_ge1 }, /* SS */
- { posts_le1 }, /* TP */
+ { NULL }, /* TP */
{ posts_eq0 }, /* LP */
{ posts_eq0 }, /* PP */
{ posts_eq0 }, /* P */
@@ -70,6 +70,7 @@ static const struct man_valid man_valids[MAN_MAX] = {
{ NULL }, /* B */
{ NULL }, /* I */
{ NULL }, /* IR */
+ { NULL }, /* RI */
};
@@ -119,7 +120,7 @@ check_##name(POSTARGS) \
int c; \
if ((c = count(n->child)) ineq (x)) \
return(1); \
- return(man_vwarn(m, n->line, n->pos, \
+ return(man_verr(m, n->line, n->pos, \
"expected line arguments %s %d, have %d", \
#ineq, (x), c)); \
}