summaryrefslogtreecommitdiffstatshomepage
path: root/mdoc.c
Commit message (Collapse)AuthorAgeFilesLines
* Added EBADCHILD error (bad child of parent context).Kristaps Dzonsons2009-09-241-2/+3
| | | | | `Rs' post-checks that all children are proper bibliographic elements. `Rs' correctly re-orders its children as per groff's output (including %C).
* FreeBSD compile fixes (uqs@spoerlein.net).Kristaps Dzonsons2009-09-231-1/+3
|
* Lookup hashes are now static tables, ordered first-level by second ↵Kristaps Dzonsons2009-09-161-8/+5
| | | | character, then randomly along a chain. Improves performance by a small fraction and considerably cleans up hash sources.
* Added check for graphable characters in initial-line parse for libman and ↵Kristaps Dzonsons2009-08-221-1/+7
| | | | libmdoc (joerg@netbsd.org).
* Fix to libmdoc passing over delimiters.Kristaps Dzonsons2009-08-201-5/+3
| | | | `RS' and `RE' documented in man.7.
* In-line documentation of mdoc_macro file.Kristaps Dzonsons2009-08-191-6/+21
| | | | Moved _NEXT_ macros into _alloc_ routines (where they belong).
* Moved MDOC_NEXT_SIBLING into mdoc_word (libmdoc).Kristaps Dzonsons2009-08-191-9/+7
| | | | De-chunking of word terms in libman.
* libmdoc accepts whitespace following control character.VERSION_1_9_0Kristaps Dzonsons2009-08-181-13/+17
|
* Noted areas that need work in libmdoc.Kristaps Dzonsons2009-08-131-1/+3
|
* Columns with `Bl -column' correctly check for CALLABLE status.Kristaps Dzonsons2009-07-291-3/+5
|
* Moved CALLABLE check to lookup_raw().Kristaps Dzonsons2009-07-291-7/+5
| | | | | | Made PARSABLE check occur prior to lookup(). Non-PARSEABLE macros no longer warn against having macro-like parameters. Non-CALLABLE macros no longer produce an error, just display their symbols (as in groff) (pointed out by joerg@netbsd.org).
* main.c using fprintf instead of warnx for parse errors (like cc).Kristaps Dzonsons2009-07-271-3/+3
| | | | | | Error string is now file:line:col: message. Removed sed from vim -q example in manuals.7. Fixed column reporting (off by one).
* Replaced ugly TABSEP handling with simpler routine.Kristaps Dzonsons2009-07-201-2/+1
|
* Removed EARGVPARM (superfluous, overly error-generating).Kristaps Dzonsons2009-07-171-2/+1
| | | | Added `sp' handler.
* Added `br' and `sp' macros (requested by joerg@netbsd.org, jmc@openbsd.org).Kristaps Dzonsons2009-07-171-2/+2
|
* Added Linux compat (strlcpy).Kristaps Dzonsons2009-07-161-1/+5
|
* libmdoc now breaks up free-form lines into tokens prior to be passed to the ↵Kristaps Dzonsons2009-07-151-34/+96
| | | | backend (simplifies LITERAL mode in front-end).
* Replacement of `Lb' in mdoc_action.c.Kristaps Dzonsons2009-07-121-1/+2
| | | | | | Added warning against bogus `Lb' (like groff does). Added proper quotes around `Lb' in mdoc_term.c. Moved mdoc_a2lib -> libmdoc (where it belongs).
* Tabularised error-code lookup in mdoc.c.Kristaps Dzonsons2009-07-071-175/+61
|
* Consolidated all err/warnings into mdoc.c via libmdoc.h.Kristaps Dzonsons2009-07-061-127/+188
|
* Initial removal of enum mdoc_warn from mdoc warnings (unnecessary complication).Kristaps Dzonsons2009-07-061-14/+9
|
* Added nchild decrement in libman (not used, but better in than forgotten).Kristaps Dzonsons2009-06-181-1/+6
| | | | Added nchild to libmdoc, deprecated count() functions in validator.
* Section orders are more elegantly handled (MDOC_PBODY is a flag).Kristaps Dzonsons2009-06-171-14/+22
| | | | Cleaned up string->enum conversion for section lookup.
* Fixed lint invocation in Makefile.Kristaps Dzonsons2009-06-171-13/+15
| | | | Minor cleanups in mdoc.c.
* Clean-up: in-source documentation.Kristaps Dzonsons2009-06-161-5/+1
|
* Removed MDOC___: moved MDOC_Ap to its index (comments not passed into mdoc ↵Kristaps Dzonsons2009-06-161-6/+6
| | | | parser).
* Modernised comment handling: text following \" is thrown away beforeKristaps Dzonsons2009-06-161-6/+2
| | | | | | either parser is invoked. Single-dot lines correctly handled. This confirms with both new- and old-groff. "Comment" subsection added to mdoc.7 and man.7.
* Deprecated mdoc_msg (not being used anywhere).Kristaps Dzonsons2009-06-151-50/+1
|
* Removed mdoc_nwarn (not being used anywhere).Kristaps Dzonsons2009-06-151-18/+1
|
* mdoc error/warn macros replaced with real functions for GCC2 support ↵Kristaps Dzonsons2009-06-151-1/+133
| | | | (miod@openbsd.org).
* Lint fixes (no effect).Kristaps Dzonsons2009-06-121-3/+5
| | | | Versioning up.
* Fixed license email address.Kristaps Dzonsons2009-06-101-2/+2
|
* Using proper license template (const).Kristaps Dzonsons2009-04-121-12/+10
|
* mdoc_tokhash -> hashKristaps Dzonsons2009-04-021-8/+10
| | | | Initial man hashtab (BROKEN).
* General clean-ups.Kristaps Dzonsons2009-03-311-121/+137
|
* -man linked to mandoc in documentation.Kristaps Dzonsons2009-03-231-11/+6
|
* -man printing linked to -Ttree.Kristaps Dzonsons2009-03-231-21/+27
|
* First addition of -man macro support.Kristaps Dzonsons2009-03-231-31/+19
| | | | Abstraction of mdoc.
* Added %Q macro.Kristaps Dzonsons2009-03-211-2/+3
|
* Support for `Bd' of all types (see mdoc.7 for newline/tab rules).VERSION_1_6_2Kristaps Dzonsons2009-03-201-9/+42
| | | | | Renamed term.c and terminal.c functions to be term_. Some bugfixes to lists.
* Many more ASCII escapes added.Kristaps Dzonsons2009-03-191-4/+31
| | | | | | Stripped nroff punt from mdocterm.c. Fixed multiple-file handling for mdocterm.c. Cleared up mdoc.h API.
* Changed e-mail address to @openbsd.Kristaps Dzonsons2009-03-161-3/+3
| | | | Cleaned up manual-page documentation.
* Fixed mdoc_phrase escape handling.Kristaps Dzonsons2009-03-161-6/+7
| | | | | | | | | | | Added MDOC_IGNDELIM (Pf, soon Li, etc.). macro_constant_delimited ignargs -> argv.c parsing. Renamed macro functions to correspond to ontologies. `Fo' and `St' made callable (compat documented). strings.sh deprecated (directly using CPP). Abstracted ASCII translation into ascii.{c,in}. ASCII table uses a self-reordering chained hashtable. Removed old regressions.
* Added -nested (doesn't do anything).Kristaps Dzonsons2009-03-121-4/+6
| | | | | | Added .%C. .Cd is now callable. Added .Rv -std.
* NetBSD '.[[:whitespace:]]*' properly handled.Kristaps Dzonsons2009-03-121-2/+14
| | | | mdoc.3 indicates compatibilities and bugs.
* Brq/Bro/Brc fixed up and pretty.Kristaps Dzonsons2009-03-121-3/+1
| | | | | | Cleaned up Aq/Sq use of escapes in term.c. Added initial -column support. Fixed argv returning ARGV_WORD and tokenising anyway.
* Expanded perfect htab to use 27 * 26 * 3 space.Kristaps Dzonsons2009-03-111-2/+3
| | | | | | Added Brq, Bro and Brc macros. Added lbrace and rbrace to special characters. Fixed spacing in braces.
* Added `Mt' and `Lk' macros (NetBSD).Kristaps Dzonsons2009-03-091-2/+2
|
* Fixed valgrind issues.VERSION_1_4_6Kristaps Dzonsons2009-03-091-3/+3
|
* Added "Input Encoding" section to mdoc*.1.VERSION_1_4_4Kristaps Dzonsons2009-03-091-6/+21
| | | | | Newline-escaped lines are concatenated. Added -fign-macro option.