Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Import changes by schwarze@ and Jason McIntyre into manuals. These are | Kristaps Dzonsons | 2010-12-06 | 2 | -91/+274 |
| | | | | | | | | | | for the new libroff macros, the new libman macros, and for the sake of general clarity. Note that `ft' documentation is NOT included, as I've kept it in -man: it's highly confusing to have it in roff.7 when it's not implemented for both -man and -mdoc, as at least in theory, roff.7 should include only macros recognised by BOTH formats. | ||||
* | Typo: man_in_pre -> man_ign_pre for `ft'. | Kristaps Dzonsons | 2010-12-06 | 1 | -1/+1 |
| | |||||
* | Add support for `ft' macro found in groff(7). Based on a patch by | Kristaps Dzonsons | 2010-12-06 | 9 | -2/+110 |
| | | | | | schwarze@, but without the -T[x]html handling, which structurally does not work. Also add man.7 documentation (not in original patch). | ||||
* | Small merges from schwarze@'s man_html.c edits. | Kristaps Dzonsons | 2010-12-06 | 1 | -6/+2 |
| | |||||
* | Let some man_term.c cleanups bleed into man_html.c. | Kristaps Dzonsons | 2010-12-06 | 1 | -6/+2 |
| | |||||
* | My favourite: removing lots of code in favour of smaller, tighter code. | Kristaps Dzonsons | 2010-12-06 | 1 | -79/+49 |
| | | | | | Merge patch by schwarze@ consolidating RB, BR, etc. into one function. man_html.c already does this. | ||||
* | Make return(man_nmsg(...)) by a simple declaration. | Kristaps Dzonsons | 2010-12-06 | 1 | -18/+20 |
| | | | | | | Make non-uppercase warning only occur once. Make scope-open-on-error warning only occur once. | ||||
* | Header for `PP', `P', and `LP' should never be printed. | Kristaps Dzonsons | 2010-12-06 | 2 | -2/+5 |
| | |||||
* | Allow HP/IP/etc. to have no arguments, as they're optional. From a field- | Kristaps Dzonsons | 2010-12-06 | 1 | -3/+1 |
| | | | | tested patch by schwarze@. | ||||
* | Allow multiple ELINE macros without raising a fatal error. From a field- | Kristaps Dzonsons | 2010-12-06 | 1 | -25/+9 |
| | | | | tested patch by schwarze@. | ||||
* | Track down a bug of empty `de XX' macros causing uncertain behaviour by | Kristaps Dzonsons | 2010-12-06 | 2 | -10/+22 |
| | | | | | | | | | | returning empty strings in roff_getstrn() instead of NULL. This caused maddeningly irregular segfaults in the pod2man preamble for `de IX'. But only on DEC alpha. Also integrate the kinda-probably-safe assertion relaxation in term.c, field-tested by schwarze@. This allows ALL [unpreprocessed] base and xenocara manuals for all BSD systems to run without segfault. | ||||
* | Merge schwarze@'s relaxation of scope-breaking rules: allow implicit | Kristaps Dzonsons | 2010-12-06 | 4 | -24/+24 |
| | | | | ending of scopes and drop stray scope-endings. | ||||
* | Remove `Sp', `Vb', and `Ve' (as per schwarze@'s changes in OpenBSD), | Kristaps Dzonsons | 2010-12-05 | 8 | -69/+5 |
| | | | | which are now accomodated for the new libroff modifications. | ||||
* | Remove repeat notification of -width omission. From a patch by schwarze@. | Kristaps Dzonsons | 2010-12-05 | 1 | -6/+1 |
| | |||||
* | Remove long-standing FIXME regarding the consolidation of WIDTHARG and | Kristaps Dzonsons | 2010-12-05 | 3 | -6/+2 |
| | | | | NOARGV warnings. From patch by schwarze@. | ||||
* | Merge schwarze@'s patch to allow uname() to fail without causing an exit. | Kristaps Dzonsons | 2010-12-05 | 3 | -5/+8 |
| | |||||
* | Merge schwarze@'s changes allowing nested displays. Tweak the patch by | Kristaps Dzonsons | 2010-12-05 | 6 | -13/+21 |
| | | | | | | | making sure output doesn't add a superfluous newline with the nested displays. Also add a COMPATIBILITY note. Rename a macro (DATESIZ) to be in line with OpenBSD (DATESIZE). | ||||
* | Track the parser status both per file (file_status), such that | Ingo Schwarze | 2010-12-02 | 1 | -13/+18 |
| | | | | | | | | we can for example skip rendering on FATAL parsing errors, and globally (exit_status), such that we know what to return. Without this, following files produced no rendered output once a single file suffered from a FATAL error. Bug reported by kristaps@, fix by me. | ||||
* | Merge schwarze@'s changes to allow for user-defined strings. This | Kristaps Dzonsons | 2010-12-02 | 1 | -72/+213 |
| | | | | | | | | primarily adds a roff_userdef() function for parsing new defines and modifies the look-up procedure. NOTE: there is a bug hidden away in this update that causes an infinite loop in some pages. The cause is for the moment unknown. | ||||
* | Fix enum/int mixing. | Kristaps Dzonsons | 2010-12-01 | 1 | -2/+3 |
| | |||||
* | Merge OpenBSD's `so' handling (plus some documentation). Great work to | Kristaps Dzonsons | 2010-12-01 | 3 | -0/+31 |
| | | | | schwarze@ and joerg@ for his comments! | ||||
* | Make sure that the manual section defaults to `1' if it's unset. This | Kristaps Dzonsons | 2010-12-01 | 1 | -0/+2 |
| | | | | | behaviour only happens if `Dt' isn't specified, which can be exhibited by running mandoc -mdoc on a man manual. | ||||
* | Fix a subtle error in the new main.c where the parse type (mdoc/man) was | Kristaps Dzonsons | 2010-12-01 | 1 | -85/+156 |
| | | | | | | | | | | | | | | | being inherited during the parse sequence, making pset() meaningless. Make sure that the mdoc/man curp pointer is set for each parse from a persistent object. This flushes out an obscure error where `man' pages called with `mdoc' will parse and segfault due to a missing title. Never happened earlier because `mdoc' pages were guaranteed to have a prologue. Fix this later. Also document the new main.c functions. Please make sure these sort of things are documented! Throw in some whitespace to make things a bit more readable. | ||||
* | Merge restructuring of main.c code. This provided by schwarze@ and inspected | Kristaps Dzonsons | 2010-12-01 | 2 | -129/+216 |
| | | | | | | | | 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. | ||||
* | Fixed a goddamn subtle error causing MDOC_LITERAL to remain set after a | Kristaps Dzonsons | 2010-12-01 | 1 | -1/+1 |
| | | | | call to `Dl' or `Bd -literal' or unfilled. | ||||
* | Re-ordering of roff requests as per OpenBSD. | Kristaps Dzonsons | 2010-12-01 | 3 | -4/+14 |
| | | | | Made `rm' be an error (again, OpenBSD...). | ||||
* | Low-hanging fruit: add OpenBSD's `ad', `hy', `ne', and `nh' handling. | Kristaps Dzonsons | 2010-12-01 | 1 | -4/+12 |
| | | | | Rename roff_line() -> roff_line_ignore(). | ||||
* | Restore the Id tag that i clobbered in my previous commit, | Ingo Schwarze | 2010-11-30 | 1 | -1/+1 |
| | | | | as pointed out by kristaps@. Sorry! | ||||
* | Merge OpenBSD mdoc.7 rev. 1.56 and 1.57: | Ingo Schwarze | 2010-11-30 | 1 | -15/+25 |
| | | | | | | | | Define the terms "callable" and "parsed" with more precision. Be more specific about what .Xo can be used for. Be more specific about what "historic groff" refers to. Explicitely mention the nine argument limit below COMPATIBILITY. feedback and ok jmc@ | ||||
* | Kill man_action.c. | Kristaps Dzonsons | 2010-11-30 | 5 | -114/+3 |
| | |||||
* | Move all man_action.c routines into man_validate.c | Kristaps Dzonsons | 2010-11-30 | 2 | -198/+198 |
| | |||||
* | Simplify the many if ( ! mdoc_nmsg()) return(0) etc. calls with just the | Kristaps Dzonsons | 2010-11-30 | 1 | -168/+157 |
| | | | | | | | | | | error printing, as this is superseded by exit_status in main.c. Make check_argv() and check_text() return void. Make MDOC_Std test in check_argv() to pre_std(). Re-write post_root() to check more conditions before returning. | ||||
* | mdoc_action.c is no more. Attic it and remove it from the Makefile. | Kristaps Dzonsons | 2010-11-30 | 5 | -236/+5 |
| | | | | | Remove references to MDOC_ACTED (it was only assertions) and the pre- and post-action functions. | ||||
* | Moved all prologue actions from mdoc_action.c into mdoc_validate.c. The | Kristaps Dzonsons | 2010-11-30 | 2 | -337/+299 |
| | | | | file is now ready for removal. | ||||
* | Move post_bl() and subfunctions from mdoc_action.c into mdoc_validate.c. | Kristaps Dzonsons | 2010-11-30 | 2 | -152/+157 |
| | |||||
* | Move -column list validation and normal-formisation from mdoc_action.c | Kristaps Dzonsons | 2010-11-30 | 2 | -67/+56 |
| | | | | into mdoc_validate.c. | ||||
* | Migrate `Nm' and `Pa' handling from mdoc_action.c into mdoc_validate.c. | Kristaps Dzonsons | 2010-11-29 | 3 | -50/+42 |
| | | | | Document that `Pa' is replaced by a tilde, just like `Mt'. | ||||
* | Remove left-over rsord[] in mdoc_actions.c. | Kristaps Dzonsons | 2010-11-29 | 4 | -102/+78 |
| | | | | | | | | | Remove MANDOCERR_BADLIB (not used). Moved `St' handling from mdoc_action.c into mdoc_validate.c. Moved relevant MDOC_LITERAL macros (`Dl', `Bd' subtypes) from mdoc_action.c into mdoc_validate.c. | ||||
* | Move `Lb' handling from mdoc_action.c into mdoc_validate.c. | Kristaps Dzonsons | 2010-11-29 | 2 | -39/+26 |
| | |||||
* | Move `At' handling from mdoc_action.c into mdoc_validate.c. | Kristaps Dzonsons | 2010-11-29 | 2 | -48/+36 |
| | |||||
* | Move `Sh' validation from mdoc_action.c. into mdoc_validate.c. | Kristaps Dzonsons | 2010-11-29 | 2 | -86/+46 |
| | | | | | Surprisingly, both functions were doing pretty much the same thing. Make sure that the changes incorporate the union of both. | ||||
* | Clarifying role of pre_pp (now pre_par), which was confusing me due to | Kristaps Dzonsons | 2010-11-29 | 1 | -7/+9 |
| | | | | | its name. Added some more documentation just for clarity's sake. No functional change. | ||||
* | Note that `Rv' and `Ex' have different values if a manual name has been | Kristaps Dzonsons | 2010-11-29 | 1 | -0/+4 |
| | | | | specified or not. | ||||
* | Move `Mt', `Ar', and `Li' handling from mdoc_action.c into mdoc_validate.c. | Kristaps Dzonsons | 2010-11-29 | 6 | -56/+54 |
| | | | | | | | | Clarify that `Mt' gets a default `~' (as per groff 1.20) and document it in mdoc.7. Made `Lk' be removed in mdoc_macro.c if it has no arguments. This fixes segfaults in mdoc_{term,html}.c that nobody's managed to raise yet. | ||||
* | Migrate action for `Rs' into mdoc_validate.c. | Kristaps Dzonsons | 2010-11-29 | 2 | -101/+104 |
| | | | | | | Remove superfluous in-line order_rs function. Merge `Rs' validations {BLOCK, BODY} -> {BODY}. Make invalid children of `Rs' raise an error but otherwise be allowed. | ||||
* | new: parametric .de, and header lines of excessive length | Ingo Schwarze | 2010-11-03 | 1 | -0/+13 |
| | |||||
* | a bunch of small issues collected during p2k10 | Ingo Schwarze | 2010-10-29 | 1 | -0/+20 |
| | |||||
* | Referring to terms explained in other manuals, always use .Xr. | Ingo Schwarze | 2010-10-29 | 1 | -2/+2 |
| | | | | | | Otherwise, hyperlinks can't be produced and people will likely miss the additional information available. Suggested by deraadt@. | ||||
* | Remove a left-over ".Xr groff 1"; patch from jmc@. | Ingo Schwarze | 2010-10-29 | 1 | -2/+1 |
| | |||||
* | When mentioning a function documented elsewhere, .Xr is often better than .Fn. | Ingo Schwarze | 2010-10-24 | 1 | -0/+3 |
| | | | | Prodded by guenther@, ok jmc@. |