]>
git.cameronkatri.com Git - mandoc.git/log
Kristaps Dzonsons [Wed, 16 Sep 2009 15:08:31 +0000 (15:08 +0000)]
Put closedelim and opendelim right in term_word() (unnecessary extra function).
Kristaps Dzonsons [Wed, 16 Sep 2009 14:40:56 +0000 (14:40 +0000)]
Lookup hashes are now static tables, ordered first-level by second character, then randomly along a chain. Improves performance by a small fraction and considerably cleans up hash sources.
Kristaps Dzonsons [Wed, 16 Sep 2009 09:41:24 +0000 (09:41 +0000)]
Made tree/term/out() functions return void.
Put err() functions back into front-ends (no use making it needlessly complex).
Kristaps Dzonsons [Tue, 15 Sep 2009 08:16:20 +0000 (08:16 +0000)]
Removed TERMP_BOLD, TERMP_UNDER, TERMP_STYLE in favour of recursive-friendly increments.
Cleaned up confusing behaviour of p->flags.
Kristaps Dzonsons [Sat, 5 Sep 2009 10:37:09 +0000 (10:37 +0000)]
Version: 1.9.2.
Fixed man.7 syntax error (oops).
Kristaps Dzonsons [Sat, 5 Sep 2009 10:30:51 +0000 (10:30 +0000)]
Typo fix (jmc@openbsd.org).
Kristaps Dzonsons [Sat, 22 Aug 2009 09:10:37 +0000 (09:10 +0000)]
Added `UC' libman macro (has no effect).
Corrected `UC' and `DT' not to print their arguments.
Noted that `UC' and `DT' shouldn't be used.
Kristaps Dzonsons [Sat, 22 Aug 2009 08:56:16 +0000 (08:56 +0000)]
Added check for graphable characters in initial-line parse for libman and libmdoc (joerg@netbsd.org).
Kristaps Dzonsons [Fri, 21 Aug 2009 13:45:33 +0000 (13:45 +0000)]
Fix of MAN_NEXT when removing next-line dupes.
Kristaps Dzonsons [Fri, 21 Aug 2009 13:18:32 +0000 (13:18 +0000)]
Removed superfluous XXX.
Version: 1.9.1.
Kristaps Dzonsons [Fri, 21 Aug 2009 13:16:16 +0000 (13:16 +0000)]
`RS' warns if empty body.
Kristaps Dzonsons [Fri, 21 Aug 2009 13:14:07 +0000 (13:14 +0000)]
Fixed next-line scoping of `.HP nnn' (has both next-line and on-line in head).
Kristaps Dzonsons [Fri, 21 Aug 2009 12:32:38 +0000 (12:32 +0000)]
Fixed `nf' behaviour (had broken with de-chunking).
Added warnings if literal context already open/closed.
Kristaps Dzonsons [Fri, 21 Aug 2009 12:12:12 +0000 (12:12 +0000)]
Open explicit scope on libman exit now only generates warning.
Consecutive ELINE scopes are now pruned (with a warning).
Kristaps Dzonsons [Fri, 21 Aug 2009 08:41:05 +0000 (08:41 +0000)]
FreeBSD fix (uqs@spoerlein.net).
Kristaps Dzonsons [Thu, 20 Aug 2009 13:55:19 +0000 (13:55 +0000)]
Fixed next-line scope error in libman block macros.
Kristaps Dzonsons [Thu, 20 Aug 2009 13:51:55 +0000 (13:51 +0000)]
Fixed (not documented anywhere of course) that `SH' and `SS' in libman have next-line head scope.
Kristaps Dzonsons [Thu, 20 Aug 2009 13:32:09 +0000 (13:32 +0000)]
Synchronised man.7, mdoc.7, mdoc.template manual structure.
Kristaps Dzonsons [Thu, 20 Aug 2009 13:22:48 +0000 (13:22 +0000)]
Updated manual structure in mdoc.7.
Synchronised mdoc.template and mdoc.7 manual structure.
`Rv' and `Ex' now accept multiple arguments (-std made standalone, terms as children).
`Rv' and `Ex' format correctly in -Tascii (plurals, commas, etc.).
Kristaps Dzonsons [Thu, 20 Aug 2009 12:26:15 +0000 (12:26 +0000)]
Small cleanup in mandoc.1.
Kristaps Dzonsons [Thu, 20 Aug 2009 12:08:40 +0000 (12:08 +0000)]
Documented omission of `na' and `Dt'.
Clarified COMPATIBILITY section (which modes/inputs).
Kristaps Dzonsons [Thu, 20 Aug 2009 11:51:07 +0000 (11:51 +0000)]
Added `DT' macro (pointed out by joerg@netbsd.org).
Kristaps Dzonsons [Thu, 20 Aug 2009 11:44:47 +0000 (11:44 +0000)]
Fix to libmdoc passing over delimiters.
`RS' and `RE' documented in man.7.
Kristaps Dzonsons [Thu, 20 Aug 2009 09:07:24 +0000 (09:07 +0000)]
Documented ARGS_ handling in args().
Kristaps Dzonsons [Thu, 20 Aug 2009 08:59:12 +0000 (08:59 +0000)]
Delimiter whitespace is correctly flagged (required some special handling).
Kristaps Dzonsons [Wed, 19 Aug 2009 14:45:56 +0000 (14:45 +0000)]
More already-fixed FIXMEs.
Kristaps Dzonsons [Wed, 19 Aug 2009 14:44:35 +0000 (14:44 +0000)]
Removed already-fixed FIXME.
Kristaps Dzonsons [Wed, 19 Aug 2009 14:09:33 +0000 (14:09 +0000)]
In-line documentation of mdoc_macro file.
Moved _NEXT_ macros into _alloc_ routines (where they belong).
Kristaps Dzonsons [Wed, 19 Aug 2009 12:15:58 +0000 (12:15 +0000)]
libman checks for open explicit scopes on exit.
Kristaps Dzonsons [Wed, 19 Aug 2009 12:00:46 +0000 (12:00 +0000)]
Linux compat fix.
Kristaps Dzonsons [Wed, 19 Aug 2009 11:58:32 +0000 (11:58 +0000)]
Moved MDOC_NEXT_SIBLING into mdoc_word (libmdoc).
De-chunking of word terms in libman.
Kristaps Dzonsons [Wed, 19 Aug 2009 11:30:40 +0000 (11:30 +0000)]
`RS' blocks correctly formatting in output device.
Kristaps Dzonsons [Wed, 19 Aug 2009 09:14:50 +0000 (09:14 +0000)]
Added RS/RE macro pair (had to adjust closing rules, sec/ssec/rs/par).
Kristaps Dzonsons [Tue, 18 Aug 2009 14:27:16 +0000 (14:27 +0000)]
libmdoc accepts whitespace following control character.
Kristaps Dzonsons [Tue, 18 Aug 2009 11:46:44 +0000 (11:46 +0000)]
Fixed missing check for open ELINE scope in BLINE macro.
Kristaps Dzonsons [Tue, 18 Aug 2009 08:48:30 +0000 (08:48 +0000)]
Small updates to man.7 (next-line break-exclusions, numerical width example).
Fully tested and correct scope-rewinding of block macros.
Kristaps Dzonsons [Mon, 17 Aug 2009 11:10:02 +0000 (11:10 +0000)]
Updated libman AST documentation.
Version (not yet finalised, but tagging in Makefile): 1.9.0.
Kristaps Dzonsons [Mon, 17 Aug 2009 11:03:07 +0000 (11:03 +0000)]
`IP' and `TP' correctly handle width arguments.
Documented numeric widths.
Kristaps Dzonsons [Thu, 13 Aug 2009 12:54:52 +0000 (12:54 +0000)]
Finished correct `IP' handling.
Kristaps Dzonsons [Thu, 13 Aug 2009 12:31:50 +0000 (12:31 +0000)]
Added proper `TP' support.
Kristaps Dzonsons [Thu, 13 Aug 2009 12:15:58 +0000 (12:15 +0000)]
Added full `HP' libman macro support.
Kristaps Dzonsons [Thu, 13 Aug 2009 11:45:29 +0000 (11:45 +0000)]
Significant overhaul in libman. Macros are now block- and line-scoped (with
next-line scope extensions possible). man.7 reflects block and line scoping,
and also includes a REFERENCE section that will be used as a template for the
big mdoc reference. Many fixes in next-line behaviour for both inline and
block macros. Added some macros for compatibility (from me.7). Corrected
quoted-literal handling for libman.
Kristaps Dzonsons [Thu, 13 Aug 2009 11:43:24 +0000 (11:43 +0000)]
Noted areas that need work in libmdoc.
Kristaps Dzonsons [Mon, 10 Aug 2009 10:09:51 +0000 (10:09 +0000)]
Moved indentation size into *term.c files.
Improved handling of libman `IP' macro (still needs work).
Kristaps Dzonsons [Wed, 29 Jul 2009 09:02:41 +0000 (09:02 +0000)]
Fixed groff-compat where two `Sh' calls, with the first not having a body, don't assert vspace between calls.
Kristaps Dzonsons [Wed, 29 Jul 2009 08:58:11 +0000 (08:58 +0000)]
Documented behaviour of interpreting parsable/callable macros.
Kristaps Dzonsons [Wed, 29 Jul 2009 08:52:24 +0000 (08:52 +0000)]
Columns with `Bl -column' correctly check for CALLABLE status.
Kristaps Dzonsons [Wed, 29 Jul 2009 08:46:06 +0000 (08:46 +0000)]
Moved CALLABLE check to lookup_raw().
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).
Kristaps Dzonsons [Tue, 28 Jul 2009 12:15:11 +0000 (12:15 +0000)]
Documented trademark and restricted mark (oops).
Kristaps Dzonsons [Tue, 28 Jul 2009 12:07:11 +0000 (12:07 +0000)]
Quick-fix in mandoc_char.7 trailing whitespace.
Kristaps Dzonsons [Tue, 28 Jul 2009 11:59:18 +0000 (11:59 +0000)]
Version: 1.8.5.
Added \*R, \*(Tm (obscure -man predefined strings).
Kristaps Dzonsons [Tue, 28 Jul 2009 11:53:26 +0000 (11:53 +0000)]
Added Greek characters to ascii.in (from groff_char.7).
Added Euro symbols (from groff_char.7).
Kristaps Dzonsons [Tue, 28 Jul 2009 10:15:12 +0000 (10:15 +0000)]
Fix in newline.
Correct printing of N-char predefined/special strings.
Kristaps Dzonsons [Tue, 28 Jul 2009 10:09:29 +0000 (10:09 +0000)]
Fixed \(bq.
Kristaps Dzonsons [Mon, 27 Jul 2009 19:43:02 +0000 (19:43 +0000)]
main.c using fprintf instead of warnx for parse errors (like cc).
Error string is now file:line:col: message.
Removed sed from vim -q example in manuals.7.
Fixed column reporting (off by one).
Kristaps Dzonsons [Mon, 27 Jul 2009 13:10:08 +0000 (13:10 +0000)]
Re-ordered ascii.in looking for dupes.
Added `vim -q' tip to manuals.7 (thanks uqs@sporlein.net).
ifdef'd production of missing specials/predefines.
Kristaps Dzonsons [Mon, 27 Jul 2009 12:35:53 +0000 (12:35 +0000)]
Clarified special chars/predefined chars in mandoc_char.7.
Cleaned up escape section in man.7, mdoc.7.
Cleaned up function names in term.c.
Kristaps Dzonsons [Mon, 27 Jul 2009 12:02:49 +0000 (12:02 +0000)]
Correct handling of \*(xx, \*[xxx], \*x versus \x, \(xx, \([xxx]: predefined strings and escape characters, respectively.
Kristaps Dzonsons [Sun, 26 Jul 2009 19:53:40 +0000 (19:53 +0000)]
Fixed \% special char (via groff.7).
Added some typographic special chars to mandoc_char.7.
Kristaps Dzonsons [Sun, 26 Jul 2009 19:30:50 +0000 (19:30 +0000)]
Removed POSIX.1 COMPATIBILITY note in mdoc.7.
Noted that \~ doesn't work in mandoc.1 (thanks uqs@sporlein.net).
Kristaps Dzonsons [Sun, 26 Jul 2009 18:59:31 +0000 (18:59 +0000)]
POSIX -> POSIX.1 change (submitted by uqs@sporlein.net, ok jmc@openbsd.org, ingo@openbsd.org).
Kristaps Dzonsons [Sun, 26 Jul 2009 10:35:55 +0000 (10:35 +0000)]
Version.
Kristaps Dzonsons [Sun, 26 Jul 2009 10:29:39 +0000 (10:29 +0000)]
Made out-of-order prologue macros not cause an error.
Kristaps Dzonsons [Sun, 26 Jul 2009 10:14:22 +0000 (10:14 +0000)]
Noted POSIX/POSIX.1 disparity (found by uqs@sporlein.net, discussed with jmc@openbsd.org et al.).
Kristaps Dzonsons [Sat, 25 Jul 2009 16:03:03 +0000 (16:03 +0000)]
Patches and results of LLVM static analysis (thanks uqs@sporlein.net).
Kristaps Dzonsons [Fri, 24 Jul 2009 20:22:24 +0000 (20:22 +0000)]
Added `sp' support to libman.
Added `\c' to known escapes (only used in man, but still).
Kristaps Dzonsons [Fri, 24 Jul 2009 14:00:59 +0000 (14:00 +0000)]
Added -fign-errors for VERY fast checking of many manuals without stopping at errors.
Kristaps Dzonsons [Fri, 24 Jul 2009 13:18:15 +0000 (13:18 +0000)]
Added `St -ieee1275-94'.
Documented a future `Bd' fixme.
Kristaps Dzonsons [Fri, 24 Jul 2009 13:09:45 +0000 (13:09 +0000)]
Added `St -isoC'.
Kristaps Dzonsons [Fri, 24 Jul 2009 13:06:11 +0000 (13:06 +0000)]
Added `St -xns5.2'.
Kristaps Dzonsons [Fri, 24 Jul 2009 12:52:28 +0000 (12:52 +0000)]
Fixed DIAGNOSTIC display (leading double-space only before BODY).
Kristaps Dzonsons [Fri, 24 Jul 2009 12:48:18 +0000 (12:48 +0000)]
Removed superfluous FIXMEs.
Kristaps Dzonsons [Fri, 24 Jul 2009 12:47:35 +0000 (12:47 +0000)]
Full support for `An -split/-nosplit'. Compat documented.
Kristaps Dzonsons [Fri, 24 Jul 2009 12:17:25 +0000 (12:17 +0000)]
Allow `An' to accept NULL arguments (-split/-nosplit).
Kristaps Dzonsons [Fri, 24 Jul 2009 12:09:37 +0000 (12:09 +0000)]
`An' gives correct error message in encountering arguments/parameters.
Kristaps Dzonsons [Fri, 24 Jul 2009 11:54:54 +0000 (11:54 +0000)]
`Bd' printing simplified (now that literal text is preserved).
Kristaps Dzonsons [Fri, 24 Jul 2009 11:54:25 +0000 (11:54 +0000)]
Text tokens with leading whitespace (like indented blocks in `Bd -literal') are printed correctly.
Kristaps Dzonsons [Thu, 23 Jul 2009 09:49:01 +0000 (09:49 +0000)]
Version.
Kristaps Dzonsons [Thu, 23 Jul 2009 09:40:25 +0000 (09:40 +0000)]
Ugly fix for `Bl' or `Bd' causing badness when nested in `Bl -hang' lists.
Kristaps Dzonsons [Thu, 23 Jul 2009 08:36:32 +0000 (08:36 +0000)]
Bl -column now accepts columns = (1 + stated columns), which covers all remaining column usage/abuse I can see.
Kristaps Dzonsons [Thu, 23 Jul 2009 08:35:22 +0000 (08:35 +0000)]
Lintified term_flushln() (type mismatches).
Kristaps Dzonsons [Tue, 21 Jul 2009 15:54:18 +0000 (15:54 +0000)]
Re-added `Pa' handling -- had removed it, but it's a bug in groff that it doesn't always render.
Kristaps Dzonsons [Tue, 21 Jul 2009 15:53:47 +0000 (15:53 +0000)]
Noted that `Pa' can accept 0 arguments.
Kristaps Dzonsons [Tue, 21 Jul 2009 15:53:31 +0000 (15:53 +0000)]
Added default print of `~' with empty `Pa' (not documented with OpenBSD, but still applicable).
Kristaps Dzonsons [Tue, 21 Jul 2009 15:52:41 +0000 (15:52 +0000)]
Noted COMPATIBILITY where, in groff, `Pa' under `It' doesn't render its style.
Kristaps Dzonsons [Tue, 21 Jul 2009 15:39:04 +0000 (15:39 +0000)]
Made `%T' underline instead of quote.
Kristaps Dzonsons [Tue, 21 Jul 2009 15:35:30 +0000 (15:35 +0000)]
Fixed undocumented `-diag' where NULL list item bodies aren't followed by a vspace.
Kristaps Dzonsons [Tue, 21 Jul 2009 15:33:05 +0000 (15:33 +0000)]
Fixed transcription error of define values (bah).
Kristaps Dzonsons [Tue, 21 Jul 2009 15:03:37 +0000 (15:03 +0000)]
Fixed `Bl -column' undocumented no-vspace rule to only work within the list.
Kristaps Dzonsons [Tue, 21 Jul 2009 14:28:36 +0000 (14:28 +0000)]
Re-fixed `-diag' (accidentally broke in last checkin).
Kristaps Dzonsons [Tue, 21 Jul 2009 13:45:04 +0000 (13:45 +0000)]
Removed `Pa' underline formatting (no groff does this).
Kristaps Dzonsons [Tue, 21 Jul 2009 13:34:13 +0000 (13:34 +0000)]
Bringing spacing more in line with groff, patches from schwarze@openbsd.org. Pre-testing.
Kristaps Dzonsons [Tue, 21 Jul 2009 12:47:52 +0000 (12:47 +0000)]
Right-most column now fills to the right margin (undocumented groff behaviour).
Kristaps Dzonsons [Mon, 20 Jul 2009 20:49:22 +0000 (20:49 +0000)]
FreeBSD includes fix (uqs@sporlein.net).
Kristaps Dzonsons [Mon, 20 Jul 2009 20:09:49 +0000 (20:09 +0000)]
Removed historical ports (they're just cluttering the page).
Kristaps Dzonsons [Mon, 20 Jul 2009 19:34:39 +0000 (19:34 +0000)]
Version.
Kristaps Dzonsons [Mon, 20 Jul 2009 19:30:46 +0000 (19:30 +0000)]
Fixed zero-length width string causing assertion (defaulting to 10 -- this needs work).
Kristaps Dzonsons [Mon, 20 Jul 2009 15:05:34 +0000 (15:05 +0000)]
Undocumented behaviour in groff: `Bl -column' implies `-compact'.
mandoc now allows fewer columns than the -width specifies.
Kristaps Dzonsons [Mon, 20 Jul 2009 14:12:27 +0000 (14:12 +0000)]
More cleanups for TABSEP handling.
Kristaps Dzonsons [Mon, 20 Jul 2009 14:09:38 +0000 (14:09 +0000)]
Replaced ugly TABSEP handling with simpler routine.