summaryrefslogtreecommitdiffstats
path: root/mdoc.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Re-adjusting UGLY tags.Kristaps Dzonsons2010-03-311-0/+1
| | | | | Fixed removed assignment of type. Removed superfluous checks of mdoc_argflags (from days when comments were a macro tag).
* Macro types enum-ated (enum mdoct) (for easier debugging in gdb of "tok" ↵Kristaps Dzonsons2010-03-311-11/+11
| | | | | | | values). Initial check-in of Ingo Schwarze's patch for Xo/Xc handling (in blocks ifdef'd "UGLY"). Put Oc-close-Op parts into UGLY ifdef blocks.
* Check for white-space at the end of free-form text. Lack of check spotted ↵Kristaps Dzonsons2010-01-071-0/+15
| | | | by Jason McIntyre.
* Check for white-space at end of stand-alone macro line.Kristaps Dzonsons2010-01-071-6/+14
|
* Big check-in of compatibility layer. This should work on most major ↵Kristaps Dzonsons2010-01-011-11/+10
| | | | architectures. Thanks to Joerg Sonnenberger.
* libmdoc and libman now using non-recoverable allocations (simpler code).Kristaps Dzonsons2009-10-301-44/+14
|
* bzero() -> memset() (noted by Joerg Sonnenberger).Kristaps Dzonsons2009-10-271-1/+1
|
* -man also prints unknown macro (noted by Joerg Sonnenberger).Kristaps Dzonsons2009-10-261-1/+0
|
* Added `%U' to -mdoc (doesn't render in a nice way yet).Kristaps Dzonsons2009-10-241-1/+3
|
* Added warning about specifying list arguments before type (suggested by ↵Kristaps Dzonsons2009-10-151-0/+1
| | | | Joerg Sonnenberg).
* Added support for `Bd -centered', which appears in newer groffs (not yet ↵Kristaps Dzonsons2009-10-151-1/+1
| | | | implemented in centre-capable front-ends, i.e., -Thtml).
* Added EBADCHILD error (bad child of parent context).Kristaps Dzonsons2009-09-241-1/+2
| | | | | `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-0/+2
|
* Lookup hashes are now static tables, ordered first-level by second ↵Kristaps Dzonsons2009-09-161-7/+4
| | | | 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-0/+6
| | | | libmdoc (joerg@netbsd.org).
* Fix to libmdoc passing over delimiters.Kristaps Dzonsons2009-08-201-4/+2
| | | | `RS' and `RE' documented in man.7.
* In-line documentation of mdoc_macro file.Kristaps Dzonsons2009-08-191-5/+20
| | | | Moved _NEXT_ macros into _alloc_ routines (where they belong).
* Moved MDOC_NEXT_SIBLING into mdoc_word (libmdoc).Kristaps Dzonsons2009-08-191-8/+6
| | | | De-chunking of word terms in libman.
* libmdoc accepts whitespace following control character.VERSION.1.9.0Kristaps Dzonsons2009-08-181-12/+16
|
* Noted areas that need work in libmdoc.Kristaps Dzonsons2009-08-131-0/+2
|
* Columns with `Bl -column' correctly check for CALLABLE status.Kristaps Dzonsons2009-07-291-2/+4
|
* Moved CALLABLE check to lookup_raw().Kristaps Dzonsons2009-07-291-6/+4
| | | | | | 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-2/+2
| | | | | | 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-1/+0
|
* Removed EARGVPARM (superfluous, overly error-generating).Kristaps Dzonsons2009-07-171-1/+0
| | | | Added `sp' handler.
* Added `br' and `sp' macros (requested by joerg@netbsd.org, jmc@openbsd.org).Kristaps Dzonsons2009-07-171-1/+1
|
* Added Linux compat (strlcpy).Kristaps Dzonsons2009-07-161-0/+4
|
* libmdoc now breaks up free-form lines into tokens prior to be passed to the ↵Kristaps Dzonsons2009-07-151-33/+95
| | | | backend (simplifies LITERAL mode in front-end).
* Replacement of `Lb' in mdoc_action.c.Kristaps Dzonsons2009-07-121-0/+1
| | | | | | 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-174/+60
|
* Consolidated all err/warnings into mdoc.c via libmdoc.h.Kristaps Dzonsons2009-07-061-126/+187
|
* Initial removal of enum mdoc_warn from mdoc warnings (unnecessary complication).Kristaps Dzonsons2009-07-061-13/+8
|
* Added nchild decrement in libman (not used, but better in than forgotten).Kristaps Dzonsons2009-06-181-0/+5
| | | | Added nchild to libmdoc, deprecated count() functions in validator.
* Section orders are more elegantly handled (MDOC_PBODY is a flag).Kristaps Dzonsons2009-06-171-13/+21
| | | | Cleaned up string->enum conversion for section lookup.
* Fixed lint invocation in Makefile.Kristaps Dzonsons2009-06-171-12/+14
| | | | Minor cleanups in mdoc.c.
* Clean-up: in-source documentation.Kristaps Dzonsons2009-06-161-4/+0
|
* Removed MDOC___: moved MDOC_Ap to its index (comments not passed into mdoc ↵Kristaps Dzonsons2009-06-161-5/+5
| | | | parser).
* Modernised comment handling: text following \" is thrown away beforeKristaps Dzonsons2009-06-161-5/+1
| | | | | | 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-49/+0
|
* Removed mdoc_nwarn (not being used anywhere).Kristaps Dzonsons2009-06-151-17/+0
|
* mdoc error/warn macros replaced with real functions for GCC2 support ↵Kristaps Dzonsons2009-06-151-0/+132
| | | | (miod@openbsd.org).
* Lint fixes (no effect).Kristaps Dzonsons2009-06-121-2/+4
| | | | Versioning up.
* Fixed license email address.Kristaps Dzonsons2009-06-101-1/+1
|
* Using proper license template (const).Kristaps Dzonsons2009-04-121-12/+10
|
* mdoc_tokhash -> hashKristaps Dzonsons2009-04-021-7/+9
| | | | Initial man hashtab (BROKEN).
* General clean-ups.Kristaps Dzonsons2009-03-311-120/+136
|
* -man linked to mandoc in documentation.Kristaps Dzonsons2009-03-231-10/+5
|
* -man printing linked to -Ttree.Kristaps Dzonsons2009-03-231-20/+26
|
* First addition of -man macro support.Kristaps Dzonsons2009-03-231-30/+18
| | | | Abstraction of mdoc.
* Added %Q macro.Kristaps Dzonsons2009-03-211-1/+2
|