CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2018/12/30 21:55:42
Modified files:
usr.bin/mandoc : libman.h libmdoc.h man.c man_macro.c
man_validate.c mdoc.c mdoc_macro.c mdoc_state.c
mdoc_validate.c read.c roff.c roff_int.h
Log message:
Cleanup, minus 15 LOC, no functional change:
Simplify the way the man(7) and mdoc(7) validators are called.
Reset the parser state with a common function before calling them.
There is no need to again reset the parser state afterwards,
the parsers are no longer used after validation.
This allows getting rid of man_node_validate() and mdoc_node_validate()
as separate functions.