CVS log for mandoc/man.h

[BACK] Up to [cvsweb.bsd.lv] / mandoc

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.79 / (download) - annotate - [select for diffs], Thu Aug 23 19:33:27 2018 UTC (2 years, 5 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_5, HEAD
Changes since 1.78: +1 -2 lines
Diff to previous 1.78 (unified)

The upcoming .while request will have to re-execute roff(7) lines
parsed earlier, so they will have to be saved for reuse - but the
read.c preparser does not know yet whether a line contains a .while
request before passing it to the roff parser.  To cope with that,
save all parsed lines for now.  Even shortens the code by 20 lines.

Revision 1.78 / (download) - annotate - [select for diffs], Mon Apr 24 23:06:18 2017 UTC (3 years, 9 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_4, VERSION_1_14_3, VERSION_1_14_2
Changes since 1.77: +1 -45 lines
Diff to previous 1.77 (unified)

Continue parser unification:
* Make enum rofft an internal interface as enum roff_tok in "roff.h".
* Represent mdoc and man macros in enum roff_tok.
* Make TOKEN_NONE a proper enum value and use it throughout.
* Put the prologue macros first in the macro tables.
* Unify mdoc_macroname[] and man_macroname[] into roff_name[].

Revision 1.77 / (download) - annotate - [select for diffs], Sat Nov 7 14:01:16 2015 UTC (5 years, 2 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_1, VERSION_1_13_4, VERSION_1_13
Changes since 1.76: +1 -4 lines
Diff to previous 1.76 (unified)

In private header files, __BEGIN_DECLS and __END_DECLS are pointless.
Because these work slightly differently on different systems,
they are becoming a maintenance burden in the portable version,
so delete them.

Besides, one of the chief design goals of the mandoc toolbox is to
make sure that nothing related to documentation requires C++.
Consequently, linking mandoc against any kind of C++ program would
defeat the purpose and is not supported.
I don't understand why kristaps@ added them in the first place.

Revision 1.76 / (download) - annotate - [select for diffs], Thu Oct 22 21:54:23 2015 UTC (5 years, 3 months ago) by schwarze
Branch: MAIN
Changes since 1.75: +3 -2 lines
Diff to previous 1.75 (unified)

move man(7) validation into the dedicated validation phase, too

Revision 1.75 / (download) - annotate - [select for diffs], Thu Apr 23 16:17:44 2015 UTC (5 years, 9 months ago) by schwarze
Branch: MAIN
Changes since 1.74: +1 -2 lines
Diff to previous 1.74 (unified)

Unify mdoc_deroff() and man_deroff() into a common function deroff().
No functional change except that for mdoc(7), it now skips leading
escape sequences just like it already did for man(7).
Escape sequences rarely occur in mdoc(7) code and if they do,
skipping them is an improvement in this context.
Minus 30 lines of code.

Revision 1.74 / (download) - annotate - [select for diffs], Sat Apr 18 17:53:21 2015 UTC (5 years, 9 months ago) by schwarze
Branch: MAIN
Changes since 1.73: +1 -3 lines
Diff to previous 1.73 (unified)

Delete the wrapper functions mdoc_meta(), man_meta(), mdoc_node(),
man_node() from the mandoc(3) semi-public interface and the internal
wrapper functions print_mdoc() and print_man() from the HTML formatters.
Minus 60 lines of code, no functional change.

Revision 1.73 / (download) - annotate - [select for diffs], Sat Apr 18 16:06:40 2015 UTC (5 years, 9 months ago) by schwarze
Branch: MAIN
Changes since 1.72: +5 -5 lines
Diff to previous 1.72 (unified)

Replace the structs mdoc and man by a unified struct roff_man.
Almost completely mechanical, no functional change.
Written on the train from Exeter to London returning from p2k15.

Revision 1.72 / (download) - annotate - [select for diffs], Thu Apr 2 23:48:19 2015 UTC (5 years, 9 months ago) by schwarze
Branch: MAIN
Changes since 1.71: +2 -11 lines
Diff to previous 1.71 (unified)

Third step towards parser unification:
Replace struct mdoc_meta and struct man_meta by a unified struct roff_meta.
Written of the train from London to Exeter on the way to p2k15.

Revision 1.71 / (download) - annotate - [select for diffs], Thu Apr 2 22:48:17 2015 UTC (5 years, 9 months ago) by schwarze
Branch: MAIN
Changes since 1.70: +46 -71 lines
Diff to previous 1.70 (unified)

Second step towards parser unification:
Replace struct mdoc_node and struct man_node by a unified struct roff_node.
To be able to use the tok member for both mdoc(7) and man(7) without
defining all the macros in roff.h, sacrifice a tiny bit of type safety
and make tok an int rather than an enum.
Almost mechanical, no functional change.
Written on the Eurostar from Bruxelles to London on the way to p2k15.

Revision 1.70 / (download) - annotate - [select for diffs], Thu Apr 2 21:36:49 2015 UTC (5 years, 9 months ago) by schwarze
Branch: MAIN
Changes since 1.69: +2 -13 lines
Diff to previous 1.69 (unified)

First step towards parser unification:
Replace enum mdoc_type and enum man_type by a unified enum roff_type.
Almost mechanical, no functional change.
Written on the ICE train from Frankfurt to Bruxelles on the way to p2k15.

Revision 1.69 / (download) - annotate - [select for diffs], Sat Jan 24 02:41:49 2015 UTC (6 years ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_13_3
Changes since 1.68: +1 -2 lines
Diff to previous 1.68 (unified)

Strangely, ignoring the roff(7) .na request was implemented in the man(7)
parser.  Simplify the code by moving it into the roff(7) parser, also
making it work for mdoc(7).

Revision 1.68 / (download) - annotate - [select for diffs], Wed Dec 24 18:04:10 2014 UTC (6 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.67: +2 -1 lines
Diff to previous 1.67 (unified)

For .RS, we need to save the information how much we actually indented
because negative indents can get truncated, in which case we no longer
know how to restore the original indent at the end of the block.
This also solves another case of effectively infinite output found
by jsg@ with afl, triggered by very large negative indents.

Revision 1.67 / (download) - annotate - [select for diffs], Mon Dec 1 04:05:32 2014 UTC (6 years, 1 month ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_13_2
Changes since 1.66: +1 -5 lines
Diff to previous 1.66 (unified)

remove unneccessary inclusion protection; patch from deraadt@

Revision 1.66 / (download) - annotate - [select for diffs], Fri Nov 28 05:51:32 2014 UTC (6 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.65: +1 -2 lines
Diff to previous 1.65 (unified)

Simplify by making many functions in the man(7) parser void,
and some cleanup; no functional change, minus 70 lines.

Revision 1.65 / (download) - annotate - [select for diffs], Fri Jun 20 23:02:31 2014 UTC (6 years, 7 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_13_1, VERSION_1_12_4, VERSION_1_12
Changes since 1.64: +2 -1 lines
Diff to previous 1.64 (unified)

As suggested by jmc@, only include line and column numbers into messages
when they are meaningful, to avoid confusing stuff like this:
$ mandoc /dev/null
mandoc: /dev/null:0:1: FATAL: not a manual
Instead, just say:
mandoc: /dev/null: FATAL: not a manual

Another example this applies to is documents having a prologue,
but lacking a body.  Do not throw a FATAL error for these; instead,
issue a WARNING and show the empty document, in the man(7) case with
the same amount of blank lines as groff does.  Also downgrade mdoc(7)
documents having content before the first .Sh from FATAL to WARNING.

Revision 1.64 / (download) - annotate - [select for diffs], Sun Mar 30 19:47:48 2014 UTC (6 years, 9 months ago) by schwarze
Branch: MAIN
Changes since 1.63: +2 -1 lines
Diff to previous 1.63 (unified)

Implement the roff(7) .ll (line length) request.
Found by naddy@ in the textproc/enchant(1) port.
Of course, do not use this in new manuals.

Revision 1.63 / (download) - annotate - [select for diffs], Sun Mar 23 12:26:58 2014 UTC (6 years, 10 months ago) by schwarze
Branch: MAIN
Changes since 1.62: +3 -1 lines
Diff to previous 1.62 (unified)

If a man(7) NAME section contains macros, avoid truncated or empty
entries for .Nd in mandocdb(8), instead use the macro content
recursively.  This improves indexing of more than 200 manuals
in Xenocara, i.e. more than 15%, in particular GL and some Xkb.

Revision 1.62 / (download) - annotate - [select for diffs], Thu Oct 17 20:54:58 2013 UTC (7 years, 3 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_12_3
Changes since 1.61: +3 -1 lines
Diff to previous 1.61 (unified)

Implement the .UR/.UE block (uniform resource identifier) introduced in the
man-ext macros by Eric S. Raymond, enabled by default in groff_man(7).
Usual disclaimer: You don't write new man(7) code, so you are not going
to use these, either.
Improves e.g. the bzr(1) and etherape(1) manuals.
Thanks to naddy@ for bringing these to my attention.

Revision 1.61 / (download) - annotate - [select for diffs], Sat Jun 2 20:16:23 2012 UTC (8 years, 7 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_12_2
Changes since 1.60: +3 -1 lines
Diff to previous 1.60 (unified)

Minimal implementation of .EX and .EE for GNU compatibility.
Do not use this, it is not portable and only defined in esr's man-ext.
For example, sox(1) wants these macros.

Revision 1.60 / (download) - annotate - [select for diffs], Tue Jan 3 15:16:24 2012 UTC (9 years ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_12_1
Changes since 1.59: +2 -1 lines
Diff to previous 1.59 (unified)

Add support for `OP', one of the extended man macros.  This also requires
some man(7) changes to accomodate for the an-ext compatibility.

Revision 1.59 / (download) - annotate - [select for diffs], Thu Oct 6 22:29:12 2011 UTC (9 years, 3 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_12_0
Changes since 1.58: +2 -1 lines
Diff to previous 1.58 (unified)

If -Tman is specified and input is -man, echo the preprocessed (`so'
replaced by file) input.  This replaces earlier behaviour of doing
nothing, which I found unexpected (mandoc should always output).

This requires a buffer in read.c that saves the input lines before being
parsed, with a special hook if `so' is invoked.  This buffer is just
flushed to output if -mman is the input.

While mucking around doing this, I also alpha-ordered the mandoc.h
functions.

Ok schwarze@, with no screaming when the polished patch was published.

Revision 1.58 / (download) - annotate - [select for diffs], Wed Mar 23 12:33:01 2011 UTC (9 years, 10 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_11_7, VERSION_1_11_6, VERSION_1_11_5, VERSION_1_11_4, VERSION_1_11_3, VERSION_1_11_2, VERSION_1_11_1
Changes since 1.57: +3 -1 lines
Diff to previous 1.57 (unified)

Add MAN_TAIL, which will be used by `UE' (forthcoming) and needs to be
used for `RE'.

Revision 1.57 / (download) - annotate - [select for diffs], Tue Mar 22 13:28:22 2011 UTC (9 years, 10 months ago) by kristaps
Branch: MAIN
Changes since 1.56: +2 -17 lines
Diff to previous 1.56 (unified)

Add some documentation and clean up mdoc.h/man.h.

Revision 1.56 / (download) - annotate - [select for diffs], Tue Mar 22 09:48:13 2011 UTC (9 years, 10 months ago) by kristaps
Branch: MAIN
Changes since 1.55: +1 -10 lines
Diff to previous 1.55 (unified)

Step 1 of restructuring: libmandoc.h.  Move all compiler-set-specific
stuff into libmandoc.h, including old mdoc.h/man.h/roff.h functions now
used by read.c.  The motivation behind this is to tighten the
relationship between the underlying compilers while keeping parse data
hidden from general callers (e.g., main.c).

While here, also move register values from mandoc.h into libmandoc.h as
noted by schwarze@.  See above for explanation.

Revision 1.55 / (download) - annotate - [select for diffs], Sun Mar 20 16:02:05 2011 UTC (9 years, 10 months ago) by kristaps
Branch: MAIN
Changes since 1.54: +2 -2 lines
Diff to previous 1.54 (unified)

Consolidate messages.  Have all parse-time messages (in libmdoc,
libroff, etc., etc.) route into mandoc_msg() and mandoc_vmsg(), for the
time being in libmandoc.h.  This requires struct mparse to be passed
into the allocation routines instead of mandocmsg and a void pointer.
Then, move some of the functionality of the old mmsg() into read.c's
mparse_mmsg() (check against wlevel and setting of file_status) and use
main.c's mmsg() as simply a printing tool.

Revision 1.54 / (download) - annotate - [select for diffs], Mon Mar 7 01:35:51 2011 UTC (9 years, 10 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_10_10
Changes since 1.53: +3 -4 lines
Diff to previous 1.53 (unified)

Clean up date handling,
as a first step to get rid of the frequent petty warnings in this area:
 - always store dates as strings, not as seconds since the Epoch
 - for input, try the three most common formats everywhere
 - for unrecognized format, just pass the date though verbatim
 - when there is no date at all, still use the current date
Originally triggered by a one-line patch from Tim van der Molen,
<tbvdm at xs4all dot nl>, which is included here.
Feedback and OK on manual parts from jmc@.
"please check this in" kristaps@

Revision 1.53 / (download) - annotate - [select for diffs], Wed Feb 9 09:18:15 2011 UTC (9 years, 11 months ago) by kristaps
Branch: MAIN
Changes since 1.52: +3 -1 lines
Diff to previous 1.52 (unified)

Allow -man to process EQN as well.  Also fix a segfault in missing case
statements in the post-handler for EQN in -mdoc and -man.

Revision 1.52 / (download) - annotate - [select for diffs], Sun Feb 6 21:44:36 2011 UTC (9 years, 11 months ago) by kristaps
Branch: MAIN
Changes since 1.51: +3 -2 lines
Diff to previous 1.51 (unified)

Add initial libmdoc and libman top-most machinery for accepting TBL
directives.  For now this will just ignore them (except for -Ttree,
which just notes that an EQN's been accepted).

Revision 1.51 / (download) - annotate - [select for diffs], Wed Jan 12 10:43:22 2011 UTC (10 years ago) by kristaps
Branch: MAIN
Changes since 1.50: +2 -1 lines
Diff to previous 1.50 (unified)

If the first character of free-form text is whitespace, then a newline
shall precede outputted text (surprise!).

Revision 1.50 / (download) - annotate - [select for diffs], Sat Jan 1 12:59:17 2011 UTC (10 years ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_10_9
Changes since 1.49: +6 -2 lines
Diff to previous 1.49 (unified)

Add -man support for tables.  Like -mdoc, this consists of an
external-facing function man_addspan() (this required shuffling around
the descope routine) and hooks elsewhere.

Also fixed mdoc.c's post-validation of tables.

Revision 1.49 / (download) - annotate - [select for diffs], Sun Dec 26 14:44:13 2010 UTC (10 years, 1 month ago) by kristaps
Branch: MAIN
Changes since 1.48: +1 -2 lines
Diff to previous 1.48 (unified)

Whack MDOC_ACTED and MAN_ACTED (these no longer exist).

Revision 1.48 / (download) - annotate - [select for diffs], Wed Dec 8 10:58:22 2010 UTC (10 years, 1 month ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_10_8
Changes since 1.47: +1 -3 lines
Diff to previous 1.47 (unified)

Remove `i' and `r' macro handlers.  These macros, originally part of the
me package, aren't recognised by "groff -mandoc" so we don't need to do
so either.  Discussed on tech@ with schwarze@.

While at it, remove references to `b' in man.7.  As far as I know, this
was never supported anyway.

Revision 1.47 / (download) - annotate - [select for diffs], Mon Dec 6 15:31:19 2010 UTC (10 years, 1 month ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_10_7
Changes since 1.46: +2 -1 lines
Diff to previous 1.46 (unified)

Add support for `ft' macro found in groff(7).  Based on a patch by
schwarze@, but without the -T[x]html handling, which structurally does
not work.  Also add man.7 documentation (not in original patch).

Revision 1.46 / (download) - annotate - [select for diffs], Sun Dec 5 16:14:16 2010 UTC (10 years, 1 month ago) by kristaps
Branch: MAIN
Changes since 1.45: +1 -4 lines
Diff to previous 1.45 (unified)

Remove `Sp', `Vb', and `Ve' (as per schwarze@'s changes in OpenBSD),
which are now accomodated for the new libroff modifications.

Revision 1.45 / (download) - annotate - [select for diffs], Mon Oct 4 07:01:02 2010 UTC (10 years, 3 months ago) by kristaps
Branch: MAIN
Changes since 1.44: +93 -1 lines
Diff to previous 1.44 (unified)

Revert merging of {mdoc,man}.h -> mandoc.h.

While I'm add it, properly document all structures in these files.

Revision 1.44 / (download) - annotate - [select for diffs], Sat Oct 2 10:14:37 2010 UTC (10 years, 3 months ago) by kristaps
Branch: MAIN
Changes since 1.43: +1 -79 lines
Diff to previous 1.43 (unified)

Unify mdoc and man enums and structs into mandoc.h.  This is part of the
slow process of logically splitting formatting frontend and parser backend
without pollution.

Revision 1.43 / (download) - annotate - [select for diffs], Fri Aug 20 01:02:07 2010 UTC (10 years, 5 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_10_6
Changes since 1.42: +2 -5 lines
Diff to previous 1.42 (unified)

Implement a simple, consistent user interface for error handling.
We now have sufficient practical experience to know what we want,
so this is intended to be final:
- provide -Wlevel (warning, error or fatal) to select what you care about
- provide -Wstop to stop after parsing a file with warnings you care about
- provide consistent exit status codes for those warnings you care about
- fully document what warnings, errors and fatal errors mean
- remove all other cruft from the user interface, less is more:
- remove all -f knobs along with the whole -f option
- remove the old -Werror because calling warnings "fatal" is silly
- always finish parsing each file, unless fatal errors prevent that
This commit also includes a couple of related simplifications behind
the scenes regarding error handling.
Feedback and OK  kristaps@;  Joerg Sonnenberger (NetBSD) and
Sascha Wildner (DragonFly BSD) agree with the general direction.

Revision 1.42 / (download) - annotate - [select for diffs], Sat Jul 31 23:52:58 2010 UTC (10 years, 5 months ago) by schwarze
Branch: MAIN
Changes since 1.41: +2 -2 lines
Diff to previous 1.41 (unified)

Sync to OpenBSD: add missing Copyright years.
I checked that substantial changes were committed
to these files during these years.

Revision 1.41 / (download) - annotate - [select for diffs], Thu Jul 22 23:03:15 2010 UTC (10 years, 6 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_10_5_PREPDF, VERSION_1_10_5
Changes since 1.40: +2 -1 lines
Diff to previous 1.40 (unified)

Added `in' macro support for -man -Tascii.  This is not yet supported in
-Thtml (I'm surprised to note that neither is LITERAL mode).

Revision 1.40 / (download) - annotate - [select for diffs], Sun Jun 27 16:18:13 2010 UTC (10 years, 7 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_10_4, VERSION_1_10_3
Changes since 1.39: +2 -2 lines
Diff to previous 1.39 (unified)

Following clue-stick applied by schwarze@, back out const-ness of regset
passed in to libmdoc and libman.

Fix mdoc.3 and man.3 EXAMPLE sections to include regset.

Add MDOC_SYNPRETTY flag cueing front-end to nicely format certain values
as if SEC_SYNOPSIS were the current section.

Revision 1.39 / (download) - annotate - [select for diffs], Sun Jun 27 15:52:41 2010 UTC (10 years, 7 months ago) by kristaps
Branch: MAIN
Changes since 1.38: +3 -5 lines
Diff to previous 1.38 (unified)

Downstream maintainers: this removes UGLY!  I don't want diverging
functionality and UGLY works quite well thanks to schwarze@'s careful
attention.

This also backs out function-prototype changes for struct regset,
instead stuffing a pointer to the regset directly into struct
mdoc/man/roff.

Revision 1.38 / (download) - annotate - [select for diffs], Sat Jun 26 15:36:37 2010 UTC (10 years, 7 months ago) by kristaps
Branch: MAIN
Changes since 1.37: +4 -2 lines
Diff to previous 1.37 (unified)

Churn-ish check-in getting mdoc_parseln() and man_parseln() to accept a
const struct regset pointer.  No functionality.

Revision 1.37 / (download) - annotate - [select for diffs], Sat Jun 19 20:46:28 2010 UTC (10 years, 7 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_10_2
Changes since 1.36: +2 -2 lines
Diff to previous 1.36 (unified)

Churn as I finish email address migration kth.se -> bsd.lv.

Revision 1.36 / (download) - annotate - [select for diffs], Wed May 26 14:03:54 2010 UTC (10 years, 8 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_10_1
Changes since 1.35: +2 -1 lines
Diff to previous 1.35 (unified)

Allow bad -man dates to flow verbatim into the front-ends.  Noted by
Ulrich Spoerlein.

Revision 1.35 / (download) - annotate - [select for diffs], Mon May 17 22:11:42 2010 UTC (10 years, 8 months ago) by kristaps
Branch: MAIN
Changes since 1.34: +2 -7 lines
Diff to previous 1.34 (unified)

Enable the unified error/warning enumeration in mandoc.h that's
stringified in main.c.

Allow `An' to handle an argument and child (with a warning).

Allow `Rv' and `Ex' to work without a prior `Nm' as groff does (with a
warning).

Allow inconsistent column syntax to only raise a warning.

Revision 1.34 / (download) - annotate - [select for diffs], Mon May 17 10:50:32 2010 UTC (10 years, 8 months ago) by joerg
Branch: MAIN
Changes since 1.33: +2 -1 lines
Diff to previous 1.33 (unified)

Add support for .AT. Properly implement .UC. Add regress tests.

Revision 1.33 / (download) - annotate - [select for diffs], Sun May 16 10:59:36 2010 UTC (10 years, 8 months ago) by kristaps
Branch: MAIN
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (unified)

Allow roff_parseln() to be re-run.
Allow roff_parseln() to manipulate the line buffer offset.  This is used
in situations like `.ie n .TH FOO 1' or `.ie n .ie n', where the line
buffer offset is recalculated then the roff parser re-run.
Fix mdoc_parseln() and man_parseln() to accept the initial line offset.
WARNING: backed-out ALL roff macros whilst accomodating for how roff
handles multi-line conditionals (in short, re-running the parser).

Revision 1.32 / (download) - annotate - [select for diffs], Sat May 15 22:44:04 2010 UTC (10 years, 8 months ago) by kristaps
Branch: MAIN
Changes since 1.31: +1 -6 lines
Diff to previous 1.31 (unified)

Remove `am', `ami', `de', `dei', and `.' from -man, as they're now in the roff preprocessor.

Revision 1.31 / (download) - annotate - [select for diffs], Sat May 15 20:51:40 2010 UTC (10 years, 8 months ago) by kristaps
Branch: MAIN
Changes since 1.30: +1 -2 lines
Diff to previous 1.30 (unified)

Pull `ig' out of -man and leave it the roff preparser.

Revision 1.30 / (download) - annotate - [select for diffs], Sat May 15 15:54:39 2010 UTC (10 years, 8 months ago) by kristaps
Branch: MAIN
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (unified)

Removed restriction on integer manual sections in -man.

Revision 1.29 / (download) - annotate - [select for diffs], Wed May 12 16:46:28 2010 UTC (10 years, 8 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_25
Changes since 1.28: +2 -1 lines
Diff to previous 1.28 (unified)

End-of-sentence spacing for -man -Tascii.

Revision 1.28 / (download) - annotate - [select for diffs], Sun May 9 21:19:42 2010 UTC (10 years, 8 months ago) by kristaps
Branch: MAIN
Changes since 1.27: +1 -2 lines
Diff to previous 1.27 (unified)

Remove -fno-ign-chars as well-argued by Ingo Schwarze.  Patch by Ingo Schwarze, too.

Revision 1.27 / (download) - annotate - [select for diffs], Sat Mar 27 10:13:16 2010 UTC (10 years, 10 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_24, VERSION_1_9_23, VERSION_1_9_22, VERSION_1_9_21, VERSION_1_9_20, VERSION_1_9_19, VERSION_1_9_18
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (unified)

Lint fixes.

Revision 1.26 / (download) - annotate - [select for diffs], Wed Mar 24 20:10:53 2010 UTC (10 years, 10 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_17
Changes since 1.25: +7 -1 lines
Diff to previous 1.25 (unified)

Using man_node_delete() instead of man_node_free()/man_node_freelist() and friends (much simpler).
Split blk_imp() into blk_exp() (explicit macros), blk_dotted() (roff macros), and the original.
Added de, dei, am, ami, and ig roff macros (for now, these are discarded within the parse).

Revision 1.25 / (download) - annotate - [select for diffs], Tue Mar 23 21:50:43 2010 UTC (10 years, 10 months ago) by kristaps
Branch: MAIN
Changes since 1.24: +40 -38 lines
Diff to previous 1.24 (unified)

libman using enum mant instead of #defines for macros.
Clean-ups, better documentation in man_hash.c.
Added extra space for "." in man_hash.c (unused for the time being).

Revision 1.24 / (download) - annotate - [select for diffs], Tue Mar 23 11:30:48 2010 UTC (10 years, 10 months ago) by kristaps
Branch: MAIN
Changes since 1.23: +5 -2 lines
Diff to previous 1.23 (unified)

Support for pod2man standard header macros (Vb, Ve, Sp).  Based largely on a set of patches by Ingo Schwarze.

Revision 1.23 / (download) - annotate - [select for diffs], Fri Oct 30 05:58:37 2009 UTC (11 years, 2 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_16, VERSION_1_9_15-pre2, VERSION_1_9_15-pre1, VERSION_1_9_15, VERSION_1_9_14, VERSION_1_9_13, VERSION_1_9_12
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (unified)

libmdoc and libman now using non-recoverable allocations (simpler code).

Revision 1.22 / (download) - annotate - [select for diffs], Sat Oct 24 05:45:04 2009 UTC (11 years, 3 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_11, VERSION_1_9_10
Changes since 1.21: +3 -2 lines
Diff to previous 1.21 (unified)

Added `PD' to -man (doesn't do anything, yet).

Revision 1.21 / (download) - annotate - [select for diffs], Wed Oct 7 15:03:21 2009 UTC (11 years, 3 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_9, VERSION_1_9_8, VERSION_1_9_7
Changes since 1.20: +1 -2 lines
Diff to previous 1.20 (unified)

Fixed superfluous function declaration (spotted by Ulrich Sporlein).

Revision 1.20 / (download) - annotate - [select for diffs], Sat Aug 22 09:10:38 2009 UTC (11 years, 5 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_6, VERSION_1_9_5, VERSION_1_9_2
Changes since 1.19: +3 -2 lines
Diff to previous 1.19 (unified)

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.

Revision 1.19 / (download) - annotate - [select for diffs], Thu Aug 20 11:51:07 2009 UTC (11 years, 5 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_1
Changes since 1.18: +3 -2 lines
Diff to previous 1.18 (unified)

Added `DT' macro (pointed out by joerg@netbsd.org).

Revision 1.18 / (download) - annotate - [select for diffs], Wed Aug 19 09:14:50 2009 UTC (11 years, 5 months ago) by kristaps
Branch: MAIN
Changes since 1.17: +4 -2 lines
Diff to previous 1.17 (unified)

Added RS/RE macro pair (had to adjust closing rules, sec/ssec/rs/par).

Revision 1.17 / (download) - annotate - [select for diffs], Thu Aug 13 11:45:29 2009 UTC (11 years, 5 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_0
Changes since 1.16: +11 -3 lines
Diff to previous 1.16 (unified)

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.

Revision 1.16 / (download) - annotate - [select for diffs], Fri Jul 24 20:22:24 2009 UTC (11 years, 6 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_8_5, VERSION_1_8_4
Changes since 1.15: +3 -2 lines
Diff to previous 1.15 (unified)

Added `sp' support to libman.
Added `\c' to known escapes (only used in man, but still).

Revision 1.15 / (download) - annotate - [select for diffs], Sat Jul 4 09:01:55 2009 UTC (11 years, 6 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_8_3, VERSION_1_8_2, VERSION_1_8_1, VERSION_1_8_0, VERSION_1_7_24, VERSION_1_7_23, VERSION_1_7_22, VERSION_1_7_21
Changes since 1.14: +2 -1 lines
Diff to previous 1.14 (unified)

Moved escape validation into libmandoc.h/mandoc.c (common between libman/libmdoc1).
libman supports MAN_IGN_ESCAPE (like MDOC_IGN_ESCAPE).
All popular escapes now handled consistently.

Revision 1.14 / (download) - annotate - [select for diffs], Thu Jun 18 10:32:00 2009 UTC (11 years, 7 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_7_20
Changes since 1.13: +4 -2 lines
Diff to previous 1.13 (unified)

Added -fno-ign-chars support to libman.
man_validate.c checks for non-tab/isprint words.
libman hashtable fixed (was ignoring .br).
Added ncount field to man_node, deprecating count() functions.
Documented use of tabs in man.7.

Revision 1.13 / (download) - annotate - [select for diffs], Tue Jun 16 19:55:28 2009 UTC (11 years, 7 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_7_19
Changes since 1.12: +5 -6 lines
Diff to previous 1.12 (unified)

Removed MAN___: moved MAN_br to its index (comments not passed into parser).
Fix: hashtable not fully formed after removal of MDOC___.

Revision 1.12 / (download) - annotate - [select for diffs], Wed Jun 10 20:18:43 2009 UTC (11 years, 7 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_7_17, VERSION_1_7_16, VERSION_1_7_15, VERSION_1_7_14
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (unified)

Fixed license email address.

Revision 1.11 / (download) - annotate - [select for diffs], Sun Apr 12 19:45:26 2009 UTC (11 years, 9 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_7_13
Changes since 1.10: +10 -12 lines
Diff to previous 1.10 (unified)

Using proper license template (const).

Revision 1.10 / (download) - annotate - [select for diffs], Sun Apr 5 16:34:22 2009 UTC (11 years, 9 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_7_12, VERSION_1_7_10, OPENBSD_CHECKIN
Changes since 1.9: +3 -2 lines
Diff to previous 1.9 (unified)

man(3) doesn't use err.h anymore.
Added .i to man(3).
Fixed up manuals.
Fixed up webpage.
Assertion fixes in man(3) (hashtable).
Fixed assertion for .IP in mandoc -man.

Revision 1.9 / (download) - annotate - [select for diffs], Fri Apr 3 11:08:39 2009 UTC (11 years, 9 months ago) by kristaps
Branch: MAIN
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (unified)

Proper resetting of memory.
Array boundary fixed (-W).

Revision 1.8 / (download) - annotate - [select for diffs], Thu Apr 2 06:51:44 2009 UTC (11 years, 9 months ago) by kristaps
Branch: MAIN
Changes since 1.7: +3 -2 lines
Diff to previous 1.7 (unified)

mdoc_tokhash -> hash
Initial man hashtab (BROKEN).

Revision 1.7 / (download) - annotate - [select for diffs], Fri Mar 27 14:56:15 2009 UTC (11 years, 10 months ago) by kristaps
Branch: MAIN
Changes since 1.6: +3 -2 lines
Diff to previous 1.6 (unified)

Added some new manuals (mdoc.3 mandoc_char.7).
Support for .br in libman.

Revision 1.6 / (download) - annotate - [select for diffs], Thu Mar 26 14:38:11 2009 UTC (11 years, 10 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_7_5
Changes since 1.5: +3 -2 lines
Diff to previous 1.5 (unified)

Initial front-end formatting for -man pages.

Revision 1.5 / (download) - annotate - [select for diffs], Wed Mar 25 21:03:13 2009 UTC (11 years, 10 months ago) by kristaps
Branch: MAIN
Changes since 1.4: +4 -2 lines
Diff to previous 1.4 (unified)

Added pflags to man_alloc.
Abstract fflags -> pflags in main.c.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Mar 25 16:07:36 2009 UTC (11 years, 10 months ago) by kristaps
Branch: MAIN
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (unified)

Actions in place for prologue parsing.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Mar 25 15:17:49 2009 UTC (11 years, 10 months ago) by kristaps
Branch: MAIN
Changes since 1.2: +8 -2 lines
Diff to previous 1.2 (unified)

Added man validator, renamed mdoc validator.

Revision 1.2 / (download) - annotate - [select for diffs], Mon Mar 23 15:20:51 2009 UTC (11 years, 10 months ago) by kristaps
Branch: MAIN
Changes since 1.1: +3 -8 lines
Diff to previous 1.1 (unified)

-man printing linked to -Ttree.

Revision 1.1 / (download) - annotate - [select for diffs], Mon Mar 23 14:22:11 2009 UTC (11 years, 10 months ago) by kristaps
Branch: MAIN

First addition of -man macro support.
Abstraction of mdoc.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb