CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2018/12/29 17:48:48
Modified files:
usr.bin/mandoc : cgi.c libman.h libmdoc.h main.c main.h man.c
man_html.c man_macro.c man_term.c mandoc.c
mandoc_parse.h mandocdb.c mdoc.c mdoc.h
mdoc_html.c mdoc_macro.c mdoc_man.c
mdoc_markdown.c mdoc_state.c mdoc_term.c
mdoc_validate.c read.c roff.c roff.h roff_int.h
tree.c
Log message:
Cleanup, no functional change:
The struct roff_man used to be a bad mixture of internal parser
state and public parsing results. Move the public results to the
parsing result struct roff_meta, which is already public. Move the
rest of struct roff_man to the parser-internal header roff_int.h.
Since the validators need access to the parser state, call them
from the top level parser during mparse_result() rather than from
the main programs, also reducing code duplication.
This keeps parser internal state out of thee main programs (five
in mandoc portable) and out of eight formatters.