CVSROOT:        /cvs
Module name:    src
Changes by:     schwa...@cvs.openbsd.org        2011/01/03 16:39:27

Modified files:
        usr.bin/mandoc : main.c mandoc.h mdoc_validate.c 

Log message:
Partial cleanup of argument count validation in mdoc(7):

* Do not segfault on empty .Db, .Rs, .Sm, and .St.
* Let check_count() really throw the requested level, not always ERROR.
* Downgrade most bad argument counts from ERROR to WARNING.
* And some related internal cleanup.

Looks fine to krist...@.

Note that the macros using eerr_ge1() still need to be checked at a later
time; but as all the others are done, let's use what we already have.

Reply via email to