Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Consolidate messages. Have all parse-time messages (in libmdoc, | Kristaps Dzonsons | 2011-03-20 | 1 | -27/+62 | |
| | | | | | | | | | libroff, etc., etc.) route into mandoc_msg() and mandoc_vmsg(), for the time being in libmandoc.h. This requires struct mparse to be passed into the allocation routines instead of mandocmsg and a void pointer. Then, move some of the functionality of the old mmsg() into read.c's mparse_mmsg() (check against wlevel and setting of file_status) and use main.c's mmsg() as simply a printing tool. | |||||
* | Change around include ordering for compilation on OpenBSD. | Kristaps Dzonsons | 2011-03-20 | 1 | -2/+2 | |
| | ||||||
* | Split the document parsing sequence out of main.c and into read.c, | Kristaps Dzonsons | 2011-03-20 | 1 | -0/+611 | |
putting the interface into mandoc.h. This effectively makes the function of main.c be command-line handling, invoking the parser, and sending its output to the output handler. The sequence of parsing (pfile(), pdesc(), etc.) has changed very little but for clean-up of some state variables (curp->fd, etc.). |