CVSROOT: /cvs Module name: src Changes by: schwa...@cvs.openbsd.org 2015/10/19 20:00:50
Modified files: usr.bin/mandoc : Makefile cgi.c libmdoc.h main.c mandocdb.c mdoc.c mdoc.h mdoc_macro.c mdoc_validate.c roff.c roff_int.h Added files: usr.bin/mandoc : mdoc_state.c Log message: In order to become able to generate syntax tree nodes on the roff(7) level, validation must be separated from parsing and rewinding. This first big step moves calling of the mdoc(7) post_*() functions out of the parser loop into their own mdoc_validate() pass, while using a new mdoc_state() module to make syntax tree state handling available to both the parser loop and the validation pass.