summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge OpenBSD's `so' handling (plus some documentation). Great work toKristaps Dzonsons2010-12-013-0/+31
| | | | schwarze@ and joerg@ for his comments!
* Make sure that the manual section defaults to `1' if it's unset. ThisKristaps Dzonsons2010-12-011-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) wasKristaps Dzonsons2010-12-011-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 inspectedKristaps Dzonsons2010-12-012-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 aKristaps Dzonsons2010-12-011-1/+1
| | | | call to `Dl' or `Bd -literal' or unfilled.
* Re-ordering of roff requests as per OpenBSD.Kristaps Dzonsons2010-12-013-4/+14
| | | | Made `rm' be an error (again, OpenBSD...).
* Low-hanging fruit: add OpenBSD's `ad', `hy', `ne', and `nh' handling.Kristaps Dzonsons2010-12-011-4/+12
| | | | Rename roff_line() -> roff_line_ignore().
* Restore the Id tag that i clobbered in my previous commit,Ingo Schwarze2010-11-301-1/+1
| | | | as pointed out by kristaps@. Sorry!
* Merge OpenBSD mdoc.7 rev. 1.56 and 1.57:Ingo Schwarze2010-11-301-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 Dzonsons2010-11-305-114/+3
|
* Move all man_action.c routines into man_validate.cKristaps Dzonsons2010-11-302-198/+198
|
* Simplify the many if ( ! mdoc_nmsg()) return(0) etc. calls with just theKristaps Dzonsons2010-11-301-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 Dzonsons2010-11-305-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. TheKristaps Dzonsons2010-11-302-337/+299
| | | | file is now ready for removal.
* Move post_bl() and subfunctions from mdoc_action.c into mdoc_validate.c.Kristaps Dzonsons2010-11-302-152/+157
|
* Move -column list validation and normal-formisation from mdoc_action.cKristaps Dzonsons2010-11-302-67/+56
| | | | into mdoc_validate.c.
* Migrate `Nm' and `Pa' handling from mdoc_action.c into mdoc_validate.c.Kristaps Dzonsons2010-11-293-50/+42
| | | | Document that `Pa' is replaced by a tilde, just like `Mt'.
* Remove left-over rsord[] in mdoc_actions.c.Kristaps Dzonsons2010-11-294-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 Dzonsons2010-11-292-39/+26
|
* Move `At' handling from mdoc_action.c into mdoc_validate.c.Kristaps Dzonsons2010-11-292-48/+36
|
* Move `Sh' validation from mdoc_action.c. into mdoc_validate.c.Kristaps Dzonsons2010-11-292-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 toKristaps Dzonsons2010-11-291-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 beenKristaps Dzonsons2010-11-291-0/+4
| | | | specified or not.
* Move `Mt', `Ar', and `Li' handling from mdoc_action.c into mdoc_validate.c.Kristaps Dzonsons2010-11-296-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 Dzonsons2010-11-292-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 lengthIngo Schwarze2010-11-031-0/+13
|
* a bunch of small issues collected during p2k10Ingo Schwarze2010-10-291-0/+20
|
* Referring to terms explained in other manuals, always use .Xr.Ingo Schwarze2010-10-291-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 Schwarze2010-10-291-2/+1
|
* When mentioning a function documented elsewhere, .Xr is often better than .Fn.Ingo Schwarze2010-10-241-0/+3
| | | | Prodded by guenther@, ok jmc@.
* let .Bsx print just "BSD/OS" like in modern groffIngo Schwarze2010-10-232-2/+2
| | | | from Ulrich Spoerlein <uqs at spoerlein dot net>
* new: escape sequence handlingIngo Schwarze2010-10-231-3/+7
| | | | done: nested displays
* two new TODOs based on submissions by Ulrich SpoerleinIngo Schwarze2010-10-191-0/+13
|
* dream about .de support,Ingo Schwarze2010-10-171-5/+18
| | | | | and remove irrelevant stuff regarding tbl now that it's imported into OpenBSD
* Use proper error for `An' multiple arguments.Kristaps Dzonsons2010-10-113-6/+7
| | | | Making IGNARGV be an ERROR, not a WARNING, as information is lost.
* Quiesce Linux header-inclusion warnings.Kristaps Dzonsons2010-10-112-0/+2
|
* Initial commit of cleaned-up validation code for -mdoc. Remove thoseKristaps Dzonsons2010-10-111-81/+123
| | | | | ugly CPP macros in favour of real functions. Enumerate areas of short- term future cleanup, too.
* `Sm' no longer produces a linebreak when used in `Bd'.Kristaps Dzonsons2010-10-103-4/+14
|
* Cleaned up library manuals: removed old escapes, added EXAMPLES, strippedKristaps Dzonsons2010-10-103-87/+26
| | | | out some superfluous stuff.
* Revert merging of {mdoc,man}.h -> mandoc.h.Kristaps Dzonsons2010-10-043-415/+506
| | | | While I'm add it, properly document all structures in these files.
* style cleanup, no functional change:Ingo Schwarze2010-10-021-22/+14
| | | | | | | | * make the initial maxvis/mmax calculation easier to understand * where real, non-indexing casts happen, make them explicit * avoid a few lint warnings that can easily be fixed * remove one needless LINTED comment "I like this" kristaps@
* Unify mdoc and man enums and structs into mandoc.h. This is part of theKristaps Dzonsons2010-10-023-416/+400
| | | | | slow process of logically splitting formatting frontend and parser backend without pollution.
* * need a space before .No even if it starts with a closing delimiterIngo Schwarze2010-10-016-25/+13
| | | | | | | * slightly simplify .Pf *_IGNDELIM code, and share part of it with .No * do not let opening delimiters fall out of the front of .Ns (from kristaps@) This fixes a few spacing issues in csh(1) and ksh(1). OK kristaps@
* Fix small regression where `Op' had an extra space between the "[" and the SPAN.Kristaps Dzonsons2010-10-011-0/+1
|
* Merge from OpenBSD right after 1.10.6; now back to full sync.Ingo Schwarze2010-09-274-10/+6
| | | | | | | | | | * mdoc.c: blank lines outside literal mode are more similar to .sp than .Pp * backslashes do not terminate macros; partial revert of mdoc.c 1.164; the intention of that commit is fully achieved in roff.c * mdoc_term.c: no need to list the same prototype twice * mdoc_validate.c: drop .Pp before .sp just like .Pp before .Pp * fix off-by-one found by jsg@ with parfait, OpenBSD term_ps.c 1.12 ok kristaps@
* Added TODO for more `Pp' warnings.Kristaps Dzonsons2010-09-271-0/+4
|
* A minor issue with \& between .Pp found while merging 1.10.6.Ingo Schwarze2010-09-271-0/+4
|
* Prepping for version.VERSION.1.10.6Kristaps Dzonsons2010-09-272-2/+17
|
* Consider both `Lp' and `Pp' when stripping prior paragraph marks.Kristaps Dzonsons2010-09-271-1/+6
|
* Suppress whitespace following Pp, Lp, sp, and the other newline-emittingKristaps Dzonsons2010-09-274-4/+42
| | | | macros within an unfilled or literal `Bd'.