summaryrefslogtreecommitdiffstats
path: root/roff.h
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge restructuring of main.c code. This provided by schwarze@ and inspectedKristaps Dzonsons2010-12-011-0/+3
| | | | | | | | carefully by joerg@. Merge roff.h header for compilation's sake (this is not yet implemented in roff.c.). THIS IS A BUGGY CHECK-IN. The manual type is erroneously kept between runs of the compiler. This is a known bug.
* Implement a simple, consistent user interface for error handling.Ingo Schwarze2010-08-201-1/+1
| | | | | | | | | | | | | | | | | 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-3/+3
| | | | | | | | | 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-2/+2
| | | | | | 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-1/+1
| | | | | | | | | | 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-4/+6
| | | | | | | | | 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-5/+5
| | | | | | 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-1/+1
|
* Added warnings for using macros in the wrong sections.Kristaps Dzonsons2008-12-081-122/+136
|
* *** empty log message ***Kristaps Dzonsons2008-12-071-1/+1
|
* *** empty log message ***Kristaps Dzonsons2008-12-071-21/+21
|
* *** empty log message ***Kristaps Dzonsons2008-12-071-1/+1
|
* .St macros in place.Kristaps Dzonsons2008-12-061-5/+5
|
* *** empty log message ***Kristaps Dzonsons2008-12-061-29/+28
|
* *** empty log message ***Kristaps Dzonsons2008-12-061-3/+3
|
* *** empty log message ***Kristaps Dzonsons2008-12-061-1/+1
|
* *** empty log message ***Kristaps Dzonsons2008-12-051-0/+289