aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_state.c
Commit message (Collapse)AuthorAgeFilesLines
* Do not access a NULL pointer when a .Bd macro has no arguments at all.Ingo Schwarze2015-10-301-1/+4
| | | | Bug reported by krw@.
* Move all mdoc(7) node validation done before child parsingIngo Schwarze2015-10-211-2/+22
| | | | | | to the new separate validation pass, except for a tiny bit needed by the parser which goes to the new mdoc_state() module; cleaner, simpler, and surprisingly also shorter by 15 lines.
* In order to become able to generate syntax tree nodes on the roff(7)Ingo Schwarze2015-10-201-0/+269
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.