Return to man_validate.c CVS log | Up to [cvsweb.bsd.lv] / mandoc |
version 1.68, 2011/04/09 15:29:40 | version 1.69, 2011/04/13 09:57:08 | ||
---|---|---|---|
|
|
||
check_sec(CHKARGS) | check_sec(CHKARGS) | ||
{ | { | ||
if (MAN_HEAD == n->type && 0 == n->nchild) { | if ( ! (MAN_HEAD == n->type && 0 == n->nchild)) | ||
man_nmsg(m, n, MANDOCERR_SYNTARGCOUNT); | return(1); | ||
return(0); | |||
} else if (MAN_BODY == n->type && 0 == n->nchild) | |||
mandoc_msg(MANDOCERR_ARGCWARN, m->parse, n->line, | |||
n->pos, "want children (have none)"); | |||
return(1); | man_nmsg(m, n, MANDOCERR_SYNTARGCOUNT); | ||
return(0); | |||
} | } | ||