aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roff.h
Commit message (Collapse)AuthorAgeFilesLines
* Implement a simple, consistent user interface for error handling.Ingo Schwarze2010-08-201-2/+2
| | | | | | | | | | | | | | | | | We now have sufficient practical experience to know what we want, so this is intended to be final: - provide -Wlevel (warning, error or fatal) to select what you care about - provide -Wstop to stop after parsing a file with warnings you care about - provide consistent exit status codes for those warnings you care about - fully document what warnings, errors and fatal errors mean - remove all other cruft from the user interface, less is more: - remove all -f knobs along with the whole -f option - remove the old -Werror because calling warnings "fatal" is silly - always finish parsing each file, unless fatal errors prevent that This commit also includes a couple of related simplifications behind the scenes regarding error handling. Feedback and OK kristaps@; Joerg Sonnenberger (NetBSD) and Sascha Wildner (DragonFly BSD) agree with the general direction.
* Downstream maintainers: this removes UGLY! I don't want divergingKristaps Dzonsons2010-06-271-4/+4
| | | | | | | | | functionality and UGLY works quite well thanks to schwarze@'s careful attention. This also backs out function-prototype changes for struct regset, instead stuffing a pointer to the regset directly into struct mdoc/man/roff.
* First step of adding register support. This is inspired by a significantKristaps Dzonsons2010-06-261-3/+3
| | | | | | patch by schwarze@. This commit adds support to libroff parsing `nr' into register set defined in regs.h. This will propogate into libmdoc and libman in later commits.
* libroff now is aware of which sub-nodes should be interpreted even in aKristaps Dzonsons2010-05-171-2/+2
| | | | | | | | | | conditional-negative context so as to preserve structural integrity. Initial "rules" (deny/allow) are now inherited for future work in evaluating conditionals. Lint-fix noted by Joerg. Added regression tests for zany constructs.
* Allow roff_parseln() to be re-run.Kristaps Dzonsons2010-05-161-5/+7
| | | | | | | | | Allow roff_parseln() to manipulate the line buffer offset. This is used in situations like `.ie n .TH FOO 1' or `.ie n .ie n', where the line buffer offset is recalculated then the roff parser re-run. Fix mdoc_parseln() and man_parseln() to accept the initial line offset. WARNING: backed-out ALL roff macros whilst accomodating for how roff handles multi-line conditionals (in short, re-running the parser).
* Add mandoc.h, which will eventually replace compilers' inner enum errors ↵Kristaps Dzonsons2010-05-151-6/+6
| | | | | | with unified ones. Add initial roff pre-processor shim, a compiler sitting outside of the other compilers that processes pure roff instructions.
* Initial roff shim skeleton in place.Kristaps Dzonsons2010-05-151-0/+38
|
* More file pruning.Kristaps Dzonsons2008-12-151-302/+0
|
* *** empty log message ***Kristaps Dzonsons2008-12-101-2/+2
|
* Added warnings for using macros in the wrong sections.Kristaps Dzonsons2008-12-081-123/+137
|
* *** empty log message ***Kristaps Dzonsons2008-12-071-2/+2
|
* *** empty log message ***Kristaps Dzonsons2008-12-071-22/+22
|
* *** empty log message ***Kristaps Dzonsons2008-12-071-2/+2
|
* .St macros in place.Kristaps Dzonsons2008-12-061-6/+6
|
* *** empty log message ***Kristaps Dzonsons2008-12-061-30/+29
|
* *** empty log message ***Kristaps Dzonsons2008-12-061-4/+4
|
* *** empty log message ***Kristaps Dzonsons2008-12-061-2/+2
|
* *** empty log message ***Kristaps Dzonsons2008-12-051-0/+289