Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | improve error reporting: | Ingo Schwarze | 2010-06-30 | 1 | -27/+43 |
| | | | | | | | | | * avoid error exit code after mere warnings * add ERROR: and FATAL: to messages when appropriate * sort the code in mmsg() to make it easier on the eye * make the mandocerrs[] list easier to maintain * update a few comments in mandoc.h ok kristaps@ | ||||
* | Add in -Opaper=xxx support for -Tps postscript. This doesn't have any | Kristaps Dzonsons | 2010-06-29 | 1 | -1/+1 |
| | | | | | | functional changes beyond the getsubopt() parse in term_ps.c. If you want to test this (it only does -Opaper=a4 and -Opaper=letter; adding more is trivial), make sure you specify (e.g.) -sPAPERSIZE=a4 to gs(1). | ||||
* | Downstream maintainers: this removes UGLY! I don't want diverging | Kristaps Dzonsons | 2010-06-27 | 1 | -8/+9 |
| | | | | | | | | | 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. | ||||
* | Churn-ish check-in getting mdoc_parseln() and man_parseln() to accept a | Kristaps Dzonsons | 2010-06-26 | 1 | -2/+2 |
| | | | | const struct regset pointer. No functionality. | ||||
* | First step of adding register support. This is inspired by a significant | Kristaps Dzonsons | 2010-06-26 | 1 | -2/+5 |
| | | | | | | 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. | ||||
* | Churn as I finish email address migration kth.se -> bsd.lv. | Kristaps Dzonsons | 2010-06-19 | 1 | -1/+1 |
| | |||||
* | Removed stipulation that an empty `Bd -offset' will default to 6n. Not | Kristaps Dzonsons | 2010-06-12 | 1 | -0/+1 |
| | | | | | | | sure where this came about. Added regression tests to convince myself that this is so. Also consolidated COMPATIBILITY notes regarding `Bd'. Added COMPATIBILITY note to the effect that old groff pukes on `Bd -compact -ragged' (regression test will fail on old groff). | ||||
* | Added enum mdoc_disp (similar to enum mdoc_list). Display types are now | Kristaps Dzonsons | 2010-06-12 | 1 | -1/+2 |
| | | | | | | | | | | | only calculated once in mdoc_validate.c. Noted that `Bd -file xxx' is not supported: it now raises a fatal warning. This is noted in mdoc.7. Empty `Bd' now defaults to LIST_ragged, which is not quite what groff does, but close enough (gross just throws away the `Bd' and gets upset when it encounters an `Ed'). | ||||
* | No functionality changes: just restructuring. Deprecated | Kristaps Dzonsons | 2010-06-08 | 1 | -1/+2 |
| | | | | | terminal_free() in favour of ps_free() and ascii_free(). Moved ps_*() functions into term_ps.c so that they don't clutter up term.c. | ||||
* | First check-in of PostScript output. This does not change any logic | Kristaps Dzonsons | 2010-06-07 | 1 | -8/+24 |
| | | | | | | within term.c, but does add a small shim over putchar() that switches on the output engine. Prints, for this initial version, only monospace and without font decorations. It's a start. | ||||
* | Add -Owidth=width option to mandoc -Tascii. Asked for by joerg@ about a | Kristaps Dzonsons | 2010-06-07 | 1 | -1/+1 |
| | | | | thousand years ago. Note that this is normalised to >=60. | ||||
* | Add MAP_SHARED for mmap, at least NetBSD with DIAGNOSTIC is quite noisy | Joerg Sonnenberger | 2010-06-06 | 1 | -1/+1 |
| | | | | otherwise. | ||||
* | Consolidated list processing to a single loop in mdoc_validate.c. This | Kristaps Dzonsons | 2010-06-03 | 1 | -1/+1 |
| | | | | | | | | | | relieves having to repeat running over the argument list in mdoc_action.c and mdoc_validate.c. Default to LIST_item for type-less lists (groff technically doesn't do this: it just ignores the `It' lines altogether). Make MANDOC_LISTTYPE be a recoverable error. | ||||
* | Spelling patches provided by Ulrich Spoerlein. | Kristaps Dzonsons | 2010-06-01 | 1 | -2/+2 |
| | |||||
* | Cleanup post_bl_head() to use enum mdoc_list (avoid traversing that | Kristaps Dzonsons | 2010-05-31 | 1 | -1/+1 |
| | | | | | | | | list). Reverted MANDOC_COLUMNS to be a bad-bad syntax error: we don't, and apparently never have, allowed mixing of -column syntaxes. This would have segfaulted if encountered. | ||||
* | Enable the unified error/warning enumeration in mandoc.h that's | Kristaps Dzonsons | 2010-05-17 | 1 | -78/+94 |
| | | | | | | | | | | | stringified in main.c. Allow `An' to handle an argument and child (with a warning). Allow `Rv' and `Ex' to work without a prior `Nm' as groff does (with a warning). Allow inconsistent column syntax to only raise a warning. | ||||
* | `ig' support in all its glory. Try | Kristaps Dzonsons | 2010-05-16 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | .ig ig asdf .ig fdsa .. or .ig if asdf .if n \ foo for a laugh. It all works. Lots of regression tests supporting this and documentation for the same. | ||||
* | Regression tests in place for `.if' in libroff. | Kristaps Dzonsons | 2010-05-16 | 1 | -0/+1 |
| | | | | | Check against some strange `.if' constructs I missed. Added initial roff.7 manual. | ||||
* | Allow roff_parseln() to be re-run. | Kristaps Dzonsons | 2010-05-16 | 1 | -8/+30 |
| | | | | | | | | | 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). | ||||
* | Fix allowing silly '\'' control character. | Kristaps Dzonsons | 2010-05-16 | 1 | -1/+1 |
| | |||||
* | Backed-out warning messages (lots). | Kristaps Dzonsons | 2010-05-15 | 1 | -0/+2 |
| | |||||
* | The `ig' now supports `ig end-macro'. | Kristaps Dzonsons | 2010-05-15 | 1 | -1/+14 |
| | | | | Initial warning/error messages in place (still experimental). | ||||
* | Segfault fix and letting warnings slip through for now. | Kristaps Dzonsons | 2010-05-15 | 1 | -1/+1 |
| | |||||
* | Add mandoc.h, which will eventually replace compilers' inner enum errors ↵ | Kristaps Dzonsons | 2010-05-15 | 1 | -17/+69 |
| | | | | | | with unified ones. Add initial roff pre-processor shim, a compiler sitting outside of the other compilers that processes pure roff instructions. | ||||
* | Reorganise the comment stripping and line merging to be easier to follow | Joerg Sonnenberger | 2010-05-15 | 1 | -50/+52 |
| | | | | and slightly faster. | ||||
* | Make the output width an option for ascii_alloc and use that to compute | Joerg Sonnenberger | 2010-05-15 | 1 | -1/+1 |
| | | | | the default margin. Hard-code 80 chars/line for now. | ||||
* | Push buffer resizing into its own function. Keep initial allocations the | Joerg Sonnenberger | 2010-05-15 | 1 | -19/+24 |
| | | | | same size as before. | ||||
* | Cleanup indentation after moving the read buffering out of the loop. | Joerg Sonnenberger | 2010-05-15 | 1 | -53/+51 |
| | |||||
* | "Push down the buffer to where they are used. | Kristaps Dzonsons | 2010-05-15 | 1 | -77/+130 |
| | | | | | | Handle the stdin/file argument in one function. On top, use either mmap or if that failed reading the whole file into a single buffer." (patches by Joerg Sonnenberger, ed. Kristaps) | ||||
* | Whacked lastman and lastmdoc (not being used). | Kristaps Dzonsons | 2010-05-15 | 1 | -6/+0 |
| | |||||
* | "Accumulate errors and warnings in global variables and exit with error | Kristaps Dzonsons | 2010-05-14 | 1 | -57/+59 |
| | | | | if either is not null on exit." (patch by Joerg Sonnenberger) | ||||
* | Fix for Joerg's patch stripping of pre-comment whitespace (by Joerg). | Kristaps Dzonsons | 2010-05-14 | 1 | -2/+2 |
| | |||||
* | Remove -fno-ign-chars as well-argued by Ingo Schwarze. Patch by Ingo ↵ | Kristaps Dzonsons | 2010-05-09 | 1 | -19/+9 |
| | | | | Schwarze, too. | ||||
* | Merge patch by Jason McIntyre cleaning on mandoc.1: `Ar' -> `Cm' and other ↵ | Kristaps Dzonsons | 2010-04-12 | 1 | -2/+8 |
| | | | | | | readability fixes. Merge modified patch by Joerg Sonnenberger that rewinds to whitespace when encountering trailing line-comments. | ||||
* | Have -Tlint imply -Wall and -fstrict. Based on a patch submitted by Ingo ↵ | Kristaps Dzonsons | 2010-03-22 | 1 | -31/+37 |
| | | | | Schwarze. | ||||
* | Fixed Makefile for `make lint' dep. on config.h | Kristaps Dzonsons | 2010-01-29 | 1 | -0/+9 |
| | | | | Added -Txhtml for XHTML output (minimal increase to programme logic). Because groff has it and it bothers me that we don't. | ||||
* | Big check-in of compatibility layer. This should work on most major ↵ | Kristaps Dzonsons | 2010-01-01 | 1 | -5/+4 |
| | | | | architectures. Thanks to Joerg Sonnenberger. | ||||
* | Added forgotten newline terminators in main.c. | Kristaps Dzonsons | 2009-11-02 | 1 | -4/+4 |
| | |||||
* | Added lint to __attribute__ defines. | Kristaps Dzonsons | 2009-11-02 | 1 | -1/+3 |
| | |||||
* | Using straight-up __attribute__ (inspired by portable openssh). | Kristaps Dzonsons | 2009-11-02 | 1 | -12/+9 |
| | |||||
* | Removed non-portable __progname (thanks Joerg Sonnenberger). | Kristaps Dzonsons | 2009-10-31 | 1 | -3/+9 |
| | |||||
* | Using perror() instead of fprintf for failure from library functions. | Kristaps Dzonsons | 2009-10-31 | 1 | -15/+13 |
| | |||||
* | libmdoc and libman now using non-recoverable allocations (simpler code). | Kristaps Dzonsons | 2009-10-30 | 1 | -14/+4 |
| | |||||
* | bzero() -> memset() (noted by Joerg Sonnenberger). | Kristaps Dzonsons | 2009-10-27 | 1 | -3/+3 |
| | |||||
* | Merged patch to allow -fign-escape (thanks Joerg Sonnenberger). | Kristaps Dzonsons | 2009-10-26 | 1 | -2/+6 |
| | |||||
* | Allowed -O to be invoked multiple times. | Kristaps Dzonsons | 2009-10-26 | 1 | -2/+4 |
| | |||||
* | Portability: replaced queue macros in html.c (Joerg Sonnenberger). | Kristaps Dzonsons | 2009-10-26 | 1 | -3/+3 |
| | | | | | Fixed "-o" residue. Added "-O" to usage() (-o didn't appear there either). | ||||
* | Changed `-o' to `-O' for clarity. THIS BREAKS UTILITIES DEPENDING ON -o! | Kristaps Dzonsons | 2009-10-26 | 1 | -1/+1 |
| | |||||
* | Moved output definitions into main.h. | Kristaps Dzonsons | 2009-10-13 | 1 | -11/+1 |
| | | | | Pushed terminal_{mdoc,man} into {mdoc,man}_term.c. | ||||
* | Clean up consts (noted by Joerg Sonnenberger and Ulrich Sporlein). | Kristaps Dzonsons | 2009-10-13 | 1 | -4/+7 |
| |