CVS log for mandoc/libman.h

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

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.86 / (download) - annotate - [select for diffs], Mon Dec 31 10:04:39 2018 UTC (5 years, 2 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_6, VERSION_1_14_5, HEAD
Changes since 1.85: +1 -2 lines
Diff to previous 1.85 (colored) to selected 1.38 (colored)

Cleanup, no functional change:
Since the man(7) and roff(7) validators no longer use the parser
state flag ROFF_NOFILL, we can finally get rid of the function
man_state(), resulting in a better separation of parsing and validation.

Revision 1.85 / (download) - annotate - [select for diffs], Mon Dec 31 04:55:46 2018 UTC (5 years, 2 months ago) by schwarze
Branch: MAIN
Changes since 1.84: +1 -2 lines
Diff to previous 1.84 (colored) to selected 1.38 (colored)

Cleanup, minus 15 LOC, no functional change:
Simplify the way the man(7) and mdoc(7) validators are called.
Reset the parser state with a common function before calling them.
There is no need to again reset the parser state afterwards,
the parsers are no longer used after validation.
This allows getting rid of man_node_validate() and mdoc_node_validate()
as separate functions.

Revision 1.84 / (download) - annotate - [select for diffs], Sun Dec 30 00:49:54 2018 UTC (5 years, 2 months ago) by schwarze
Branch: MAIN
Changes since 1.83: +4 -1 lines
Diff to previous 1.83 (colored) to selected 1.38 (colored)

Cleanup, no functional change:

The struct roff_man used to be a bad mixture of internal parser
state and public parsing results.  Move the public results to the
parsing result struct roff_meta, which is already public.  Move the
rest of struct roff_man to the parser-internal header roff_int.h.

Since the validators need access to the parser state, call them
from the top level parser during mparse_result() rather than from
the main programs, also reducing code duplication.

This keeps parser internal state out of thee main programs (five
in mandoc portable) and out of eight formatters.

Revision 1.83 / (download) - annotate - [select for diffs], Sun Aug 26 16:21:23 2018 UTC (5 years, 7 months ago) by schwarze
Branch: MAIN
Changes since 1.82: +7 -5 lines
Diff to previous 1.82 (colored) to selected 1.38 (colored)

Support nesting of elements with next-line scope.
For example, ksh93(1) needs this for .B\n.SM.

Revision 1.82 / (download) - annotate - [select for diffs], Fri Aug 17 20:33:37 2018 UTC (5 years, 7 months ago) by schwarze
Branch: MAIN
Changes since 1.81: +3 -4 lines
Diff to previous 1.81 (colored) to selected 1.38 (colored)

Remove more pointer arithmetic passing via regions outside the array
that is undefined according to the C standard.  Robert Elz <kre at
munnari dot oz dot au> pointed out i wasn't quite done yet.

Revision 1.81 / (download) - annotate - [select for diffs], Sat Apr 29 12:45:41 2017 UTC (6 years, 11 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_4, VERSION_1_14_3, VERSION_1_14_2
Changes since 1.80: +1 -2 lines
Diff to previous 1.80 (colored) to selected 1.38 (colored)

Parser unification: use nice ohashes for all three request and macro tables;
no functional change, minus two source files, minus 200 lines of code.

Revision 1.80 / (download) - annotate - [select for diffs], Mon Apr 24 23:06:17 2017 UTC (6 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.79: +3 -3 lines
Diff to previous 1.79 (colored) to selected 1.38 (colored)

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.79 / (download) - annotate - [select for diffs], Sat Nov 7 14:01:16 2015 UTC (8 years, 4 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_1, VERSION_1_13_4, VERSION_1_13
Changes since 1.78: +1 -4 lines
Diff to previous 1.78 (colored) to selected 1.38 (colored)

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.78 / (download) - annotate - [select for diffs], Thu Oct 22 21:54:23 2015 UTC (8 years, 5 months ago) by schwarze
Branch: MAIN
Changes since 1.77: +3 -2 lines
Diff to previous 1.77 (colored) to selected 1.38 (colored)

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

Revision 1.77 / (download) - annotate - [select for diffs], Thu Apr 23 15:35:59 2015 UTC (8 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.76: +1 -2 lines
Diff to previous 1.76 (colored) to selected 1.38 (colored)

Get rid of two empty wrapper functions.  No functional change.

Revision 1.76 / (download) - annotate - [select for diffs], Sun Apr 19 14:57:38 2015 UTC (8 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.75: +1 -3 lines
Diff to previous 1.75 (colored) to selected 1.38 (colored)

Unify trickier node handling functions.
* man_elem_alloc() -> roff_elem_alloc()
* man_block_alloc() -> roff_block_alloc()
The functions mdoc_elem_alloc() and mdoc_block_alloc() remain for
now because they need to do mdoc(7)-specific argument processing.

Revision 1.75 / (download) - annotate - [select for diffs], Sun Apr 19 14:25:41 2015 UTC (8 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.74: +1 -3 lines
Diff to previous 1.74 (colored) to selected 1.38 (colored)

Unify some node handling functions that use TOKEN_NONE.
* mdoc_word_alloc(), man_word_alloc() -> roff_word_alloc()
* mdoc_word_append(), man_word_append() -> roff_word_append()
* mdoc_addspan(), man_addspan() -> roff_addtbl()
* mdoc_addeqn(), man_addeqn() -> roff_addeqn()
Minus 50 lines of code, no functional change.

Revision 1.74 / (download) - annotate - [select for diffs], Sun Apr 19 13:50:25 2015 UTC (8 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.73: +1 -3 lines
Diff to previous 1.73 (colored) to selected 1.38 (colored)

Unify node handling functions:
* node_alloc() for mdoc and man_node_alloc() -> roff_node_alloc()
* node_append() for mdoc and man_node_append() -> roff_node_append()
* mdoc_head_alloc() and man_head_alloc() -> roff_head_alloc()
* mdoc_body_alloc() and man_body_alloc() -> roff_body_alloc()
* mdoc_node_unlink() and man_node_unlink() -> roff_node_unlink()
* mdoc_node_free() and man_node_free() -> roff_node_free()
* mdoc_node_delete() and man_node_delete() -> roff_node_delete()
Minus 130 lines of code, no functional change.

Revision 1.73 / (download) - annotate - [select for diffs], Sat Apr 18 17:28:36 2015 UTC (8 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.72: +1 -2 lines
Diff to previous 1.72 (colored) to selected 1.38 (colored)

Unify {mdoc,man}_{alloc,reset,free}() into roff_man_{alloc,reset,free}().
Minus 80 lines of code, no functional change.
Written on the train from Koeln to Wolfsburg returning from p2k15.

Revision 1.72 / (download) - annotate - [select for diffs], Sat Apr 18 17:01:58 2015 UTC (8 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.71: +1 -2 lines
Diff to previous 1.71 (colored) to selected 1.38 (colored)

Move mdoc_hash_init() and man_hash_init() to libmandoc.h
and call them from mparse_alloc() and choose_parser(),
preparing unified allocation of struct roff_man.

Revision 1.71 / (download) - annotate - [select for diffs], Sat Apr 18 16:06:39 2015 UTC (8 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.70: +12 -33 lines
Diff to previous 1.70 (colored) to selected 1.38 (colored)

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.70 / (download) - annotate - [select for diffs], Thu Apr 2 23:48:19 2015 UTC (8 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.69: +2 -2 lines
Diff to previous 1.69 (colored) to selected 1.38 (colored)

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.69 / (download) - annotate - [select for diffs], Thu Apr 2 22:48:17 2015 UTC (8 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.68: +13 -13 lines
Diff to previous 1.68 (colored) to selected 1.38 (colored)

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.68 / (download) - annotate - [select for diffs], Fri Mar 20 12:54:22 2015 UTC (9 years ago) by schwarze
Branch: MAIN
Changes since 1.67: +6 -9 lines
Diff to previous 1.67 (colored) to selected 1.38 (colored)

Simplify by almost halving the number of macro flags:
1. MAN_EXPLICIT was used iff fp == blk_exp, so just test fp.
2. MAN_FSCOPED was used only for TP, so just test for TP.
3. MAN_NOCLOSE was completely unused.
No functional change.

Revision 1.67 / (download) - annotate - [select for diffs], Sun Dec 28 14:42:27 2014 UTC (9 years, 3 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_13_3
Changes since 1.66: +2 -1 lines
Diff to previous 1.66 (colored) to selected 1.38 (colored)

mdoc(7) already uses the mandoc(1) -Ios argument in the footer line
when .Os has no argument, so do the same for man(7) when .TH has less
than four arguments; there is no reason to treat both differently.
Issue found following a question from Thomas Klausner <wiz at NetBSD>.

Revision 1.66 / (download) - annotate - [select for diffs], Mon Dec 1 04:05:31 2014 UTC (9 years, 3 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_13_2
Changes since 1.65: +1 -5 lines
Diff to previous 1.65 (colored) to selected 1.38 (colored)

remove unneccessary inclusion protection; patch from deraadt@

Revision 1.65 / (download) - annotate - [select for diffs], Fri Nov 28 05:51:32 2014 UTC (9 years, 4 months ago) by schwarze
Branch: MAIN
Changes since 1.64: +10 -11 lines
Diff to previous 1.64 (colored) to selected 1.38 (colored)

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

Revision 1.64 / (download) - annotate - [select for diffs], Mon Nov 3 23:18:39 2014 UTC (9 years, 4 months ago) by schwarze
Branch: MAIN
Changes since 1.63: +4 -1 lines
Diff to previous 1.63 (colored) to selected 1.38 (colored)

Allow the five man(7) font macros to concatenate their line arguments,
the same way the mdoc(7) macros marked MDOC_JOIN do it.
In -Thtml, this removes bogus <br/> when the font macros are used
in no-fill mode; issue found by jsg@ in the Xcursor(3) SYNOPSIS.
As a bonus, this slightly reduces the size of the syntax tree.

Revision 1.63 / (download) - annotate - [select for diffs], Fri Aug 1 21:24:17 2014 UTC (9 years, 7 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_13_1, VERSION_1_12_4, VERSION_1_12
Changes since 1.62: +1 -2 lines
Diff to previous 1.62 (colored) to selected 1.38 (colored)

Simplify man(7) validation:
Drop pre-handlers, they were almost unused.
Drop the needless complexity of allowing more than one post-handler.

This saves one internal interface function, one static function, one
private struct definition, sixteen static arrays, and 45 lines of code.
No functional change.

Revision 1.62 / (download) - annotate - [select for diffs], Fri Aug 1 17:40:34 2014 UTC (9 years, 7 months ago) by schwarze
Branch: MAIN
Changes since 1.61: +1 -5 lines
Diff to previous 1.61 (colored) to selected 1.38 (colored)

demacrify: get rid of man_nmsg(), man_pmsg(), mdoc_nmsg(), mdoc_pmsg()

Revision 1.61 / (download) - annotate - [select for diffs], Wed Jul 30 21:18:24 2014 UTC (9 years, 8 months ago) by schwarze
Branch: MAIN
Changes since 1.60: +1 -3 lines
Diff to previous 1.60 (colored) to selected 1.38 (colored)

garbage collect three unused global flags; no functional change

Revision 1.60 / (download) - annotate - [select for diffs], Wed Jul 30 20:06:36 2014 UTC (9 years, 8 months ago) by schwarze
Branch: MAIN
Changes since 1.59: +1 -2 lines
Diff to previous 1.59 (colored) to selected 1.38 (colored)

Simplify: replace one global flag by one local variable.
No functional change.

Revision 1.59 / (download) - annotate - [select for diffs], Mon Jul 7 19:18:15 2014 UTC (9 years, 8 months ago) by schwarze
Branch: MAIN
Changes since 1.58: +2 -3 lines
Diff to previous 1.58 (colored) to selected 1.38 (colored)

Simplify man_unscope(), removing 18 lines of code, that is,
removing one function argument, one function definition,
three function invocations and two pointless assert()s.
No functional change.

Revision 1.58 / (download) - annotate - [select for diffs], Sun Apr 20 16:46:04 2014 UTC (9 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.57: +3 -3 lines
Diff to previous 1.57 (colored) to selected 1.38 (colored)

KNF: case (FOO):  ->  case FOO:, remove /* LINTED */ and /* ARGSUSED */,
remove trailing whitespace and blanks before tabs, improve some indenting;
no functional change

Revision 1.57 / (download) - annotate - [select for diffs], Sun Jan 5 20:26:36 2014 UTC (10 years, 2 months ago) by schwarze
Branch: MAIN
Changes since 1.56: +2 -1 lines
Diff to previous 1.56 (colored) to selected 1.38 (colored)

Add an option -Q (quick) to mandocdb(8)
for accelerated generation of reduced-size databases.

Implement this by allowing the parsers to optionally
abort the parse sequence after the NAME section.

While here, garbage collect the unused void *arg attribute of
struct mparse and mparse_alloc() and fix some errors in mandoc(3).

This reduces the processing time of mandocdb(8) on /usr/share/man
by a factor of 2 and the database size by a factor of 4.
However, it still takes 5 times the time and 6 times the space
of makewhatis(8), so more work is clearly needed.

Revision 1.56 / (download) - annotate - [select for diffs], Sat Nov 17 00:26:33 2012 UTC (11 years, 4 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_12_3, VERSION_1_12_2
Changes since 1.55: +6 -6 lines
Diff to previous 1.55 (colored) to selected 1.38 (colored)

Cleanup naming of local variables to make the code easier on the eye:
Settle for "struct man *man", "struct mdoc *mdoc", "struct meta *meta"
and avoid the confusing "*m" which was sometimes this, sometimes that.
No functional change.

ok kristaps@ some time ago

Revision 1.55 / (download) - annotate - [select for diffs], Mon Nov 7 01:24:40 2011 UTC (12 years, 4 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_12_1
Changes since 1.54: +2 -1 lines
Diff to previous 1.54 (colored) to selected 1.38 (colored)

When the HEAD scope of .TP is broken by another block macro,
do not abort with a FATAL error, but report a report a WARNING,
remove the broken .TP from the syntax tree, and prod on.
Reported repeatedly by ports people, at least by brad@ and jeremy@.
Also fixes rendition(4) in Xenocara.
ok kristaps@

Revision 1.54 / (download) - annotate - [select for diffs], Sun Sep 18 14:14:15 2011 UTC (12 years, 6 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_12_0
Changes since 1.53: +2 -2 lines
Diff to previous 1.53 (colored) to selected 1.38 (colored)

forgotten Copyright bumps; no code change
found while syncing to OpenBSD

Revision 1.53 / (download) - annotate - [select for diffs], Mon Jul 18 07:48:14 2011 UTC (12 years, 8 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_11_7, VERSION_1_11_6, VERSION_1_11_5
Changes since 1.52: +1 -2 lines
Diff to previous 1.52 (colored) to selected 1.38 (colored)

Follow-up: forgot to remove useless regset structs.

Revision 1.52 / (download) - annotate - [select for diffs], Mon Jul 18 07:46:41 2011 UTC (12 years, 8 months ago) by kristaps
Branch: MAIN
Changes since 1.51: +2 -1 lines
Diff to previous 1.51 (colored) to selected 1.38 (colored)

Make `struct roff' be passed into libmdoc and libman upon creation.
This is required for supporting in-line equations.  While here, push
registers properly into roff and add an set/get/mod interface.

Revision 1.51 / (download) - annotate - [select for diffs], Wed Mar 23 15:33:57 2011 UTC (13 years ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_11_4, VERSION_1_11_3, VERSION_1_11_2, VERSION_1_11_1
Changes since 1.50: +1 -8 lines
Diff to previous 1.50 (colored) to selected 1.38 (colored)

Merge man_args() into man_macro.c, the only place where it's called, and
make its return value boolean (we don't care about QWORD).  We can move
it into mdoc_macro.c because it's basically just a wrapper around
mandoc_getarg().  Then blow away man_argv.c, which is left empty.

Revision 1.50 / (download) - annotate - [select for diffs], Wed Mar 23 12:40:04 2011 UTC (13 years ago) by kristaps
Branch: MAIN
Changes since 1.49: +9 -7 lines
Diff to previous 1.49 (colored) to selected 1.38 (colored)

First, make -man ARGS_EOLN et al. be an enum.  Second, remove
ARGS_ERROR, as it is never returned by man_args().  Then clean up
invocations of man_args() to only check for ARGS_EOLN.

Revision 1.49 / (download) - annotate - [select for diffs], Wed Mar 23 12:33:01 2011 UTC (13 years ago) by kristaps
Branch: MAIN
Changes since 1.48: +2 -1 lines
Diff to previous 1.48 (colored) to selected 1.38 (colored)

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

Revision 1.48 / (download) - annotate - [select for diffs], Tue Mar 22 14:33:05 2011 UTC (13 years ago) by kristaps
Branch: MAIN
Changes since 1.47: +1 -3 lines
Diff to previous 1.47 (colored) to selected 1.38 (colored)

libmdoc.h and libman.h were including mdoc.h and man.h, respectively.
Don't have them do that (includes in header files = faugh), and have
individual files directly include these files.

Revision 1.47 / (download) - annotate - [select for diffs], Sun Mar 20 16:02:05 2011 UTC (13 years ago) by kristaps
Branch: MAIN
Changes since 1.46: +4 -7 lines
Diff to previous 1.46 (colored) to selected 1.38 (colored)

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.46 / (download) - annotate - [select for diffs], Thu Mar 17 11:56:17 2011 UTC (13 years ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_10_10
Changes since 1.45: +2 -2 lines
Diff to previous 1.45 (colored) to selected 1.38 (colored)

Clean-up in libman: make all calls to man_*msg not check return value.
Also convert man_vmsg to return void.

Revision 1.45 / (download) - annotate - [select for diffs], Wed Jan 12 10:43:22 2011 UTC (13 years, 2 months ago) by kristaps
Branch: MAIN
Changes since 1.44: +2 -1 lines
Diff to previous 1.44 (colored) to selected 1.38 (colored)

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

Revision 1.44 / (download) - annotate - [select for diffs], Tue Nov 30 15:36:28 2010 UTC (13 years, 4 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_10_9, VERSION_1_10_8, VERSION_1_10_7
Changes since 1.43: +1 -3 lines
Diff to previous 1.43 (colored) to selected 1.38 (colored)

Kill man_action.c.

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

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], Tue Jul 13 23:53:20 2010 UTC (13 years, 8 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_10_5_PREPDF, VERSION_1_10_5
Changes since 1.41: +2 -2 lines
Diff to previous 1.41 (colored) to selected 1.38 (colored)

correct lots of copyright notices;
ok kristaps@

Revision 1.41 / (download) - annotate - [select for diffs], Wed Jul 7 15:04:54 2010 UTC (13 years, 8 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_10_4
Changes since 1.40: +1 -2 lines
Diff to previous 1.40 (colored) to selected 1.38 (colored)

Re-constitution of `ds' symbol processing.  First, push the
roff_getstr() family of functions into roff.c with the "first_string"
directly in struct roff.  Second, pre-process each line for reserved
words in libroff, splicing and re-running a line if it has one (this
allows defined symbols to be macros).  Remove term.c's invocation of the
roff_getstrn() function.  Removed function documentation in roff.3 and
added roff.7 `ds' documentation.

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

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 (13 years, 9 months ago) by kristaps
Branch: MAIN
Changes since 1.38: +8 -8 lines
Diff to previous 1.38 (colored)

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 - [selected], Sat Jun 26 16:07:08 2010 UTC (13 years, 9 months ago) by kristaps
Branch: MAIN
Changes since 1.37: +8 -3 lines
Diff to previous 1.37 (colored)

Mechanical diff allowing the const struct regset to propogate through
libman and libmdoc.

Revision 1.37 / (download) - annotate - [select for diffs], Sat Jun 26 15:36:37 2010 UTC (13 years, 9 months ago) by kristaps
Branch: MAIN
Changes since 1.36: +2 -1 lines
Diff to previous 1.36 (colored) to selected 1.38 (colored)

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

Revision 1.36 / (download) - annotate - [select for diffs], Sat Jun 19 20:46:27 2010 UTC (13 years, 9 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_10_2
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (colored) to selected 1.38 (colored)

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

Revision 1.35 / (download) - annotate - [select for diffs], Wed Jun 9 19:22:56 2010 UTC (13 years, 9 months ago) by kristaps
Branch: MAIN
Changes since 1.34: +2 -2 lines
Diff to previous 1.34 (colored) to selected 1.38 (colored)

Squash bug noted by Ulrich Spoerlein where "-" were being converted to
ASCII_HYPH, as per normal, but were screwing up mandoc_special().  Fixed
by making mandoc_special() first check isspace() instead of ! isgraph(),
then normalise its string as it passes out.  This require de-constifying
some validation routines not already de-constified (those in libman),
but that's ok, because I'd like to be pushing actions into validation
routines to save on space and redundant calculations.

Revision 1.34 / (download) - annotate - [select for diffs], Mon May 17 22:11:42 2010 UTC (13 years, 10 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_10_1
Changes since 1.33: +9 -39 lines
Diff to previous 1.33 (colored) to selected 1.38 (colored)

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.33 / (download) - annotate - [select for diffs], Sat May 15 22:44:04 2010 UTC (13 years, 10 months ago) by kristaps
Branch: MAIN
Changes since 1.32: +1 -5 lines
Diff to previous 1.32 (colored) to selected 1.38 (colored)

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

Revision 1.32 / (download) - annotate - [select for diffs], Sat May 15 15:54:39 2010 UTC (13 years, 10 months ago) by kristaps
Branch: MAIN
Changes since 1.31: +1 -2 lines
Diff to previous 1.31 (colored) to selected 1.38 (colored)

Removed restriction on integer manual sections in -man.

Revision 1.31 / (download) - annotate - [select for diffs], Thu Apr 8 07:53:01 2010 UTC (13 years, 11 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_25, VERSION_1_9_24
Changes since 1.30: +2 -1 lines
Diff to previous 1.30 (colored) to selected 1.38 (colored)

Sync'd mdoc.c's function names with man.c.
Prompted by Ingo and Claus Assman, added warn/ignore for text lines beginning with `\."'.

Revision 1.30 / (download) - annotate - [select for diffs], Mon Mar 29 10:10:35 2010 UTC (14 years ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_23, VERSION_1_9_22, VERSION_1_9_21, VERSION_1_9_20
Changes since 1.29: +2 -1 lines
Diff to previous 1.29 (colored) to selected 1.38 (colored)

Final (?) fix to issue pointed out by Sascha Wildner: roff instructions clobbering prior scope rules and line modes.

Revision 1.29 / (download) - annotate - [select for diffs], Mon Mar 29 04:52:14 2010 UTC (14 years ago) by kristaps
Branch: MAIN
Changes since 1.28: +6 -4 lines
Diff to previous 1.28 (colored) to selected 1.38 (colored)

Initial step in fixing badness reported by Sascha Wildner (wip).

Revision 1.28 / (download) - annotate - [select for diffs], Sat Mar 27 10:04:56 2010 UTC (14 years ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_19, VERSION_1_9_18
Changes since 1.27: +5 -2 lines
Diff to previous 1.27 (colored) to selected 1.38 (colored)

Fixed re-adjustment of scope in exiting roff instructions (libman).
Added title-case check for (libman).
Fixed premature closure of roff instruction scope (libman).
Added documentation of ignored roff macros to man(3).

Revision 1.27 / (download) - annotate - [select for diffs], Wed Mar 24 20:10:53 2010 UTC (14 years ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_17
Changes since 1.26: +4 -4 lines
Diff to previous 1.26 (colored) to selected 1.38 (colored)

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.26 / (download) - annotate - [select for diffs], Tue Mar 23 21:50:43 2010 UTC (14 years ago) by kristaps
Branch: MAIN
Changes since 1.25: +7 -7 lines
Diff to previous 1.25 (colored) to selected 1.38 (colored)

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.25 / (download) - annotate - [select for diffs], Mon Mar 22 14:03:03 2010 UTC (14 years ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_16
Changes since 1.24: +3 -1 lines
Diff to previous 1.24 (colored) to selected 1.38 (colored)

Clarify -man -T[x]html handling of `br' within `B'.
Consolidated node unlinking in -man.
Conclude nested next-line scope issues noted by Ingo Schwarze.

Revision 1.24 / (download) - annotate - [select for diffs], Mon Mar 22 05:59:32 2010 UTC (14 years ago) by kristaps
Branch: MAIN
Changes since 1.23: +6 -4 lines
Diff to previous 1.23 (colored) to selected 1.38 (colored)

Accomodate (libman) for next-line macros followed by non-text macros `na', `sp', and `br'.
Based on a patch by Ingo Schwarze.

Revision 1.23 / (download) - annotate - [select for diffs], Fri Oct 30 05:58:36 2009 UTC (14 years, 5 months ago) by kristaps
Branch: MAIN
CVS Tags: 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: +1 -2 lines
Diff to previous 1.22 (colored) to selected 1.38 (colored)

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

Revision 1.22 / (download) - annotate - [select for diffs], Mon Oct 26 07:11:06 2009 UTC (14 years, 5 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_11, VERSION_1_9_10
Changes since 1.21: +1 -2 lines
Diff to previous 1.21 (colored) to selected 1.38 (colored)

-man also prints unknown macro (noted by Joerg Sonnenberger).

Revision 1.21 / (download) - annotate - [select for diffs], Wed Sep 16 14:40:56 2009 UTC (14 years, 6 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_9, VERSION_1_9_8, VERSION_1_9_7, VERSION_1_9_6, VERSION_1_9_5
Changes since 1.20: +3 -5 lines
Diff to previous 1.20 (colored) to selected 1.38 (colored)

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.

Revision 1.20 / (download) - annotate - [select for diffs], Fri Aug 21 13:14:07 2009 UTC (14 years, 7 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_2, VERSION_1_9_1
Changes since 1.19: +3 -2 lines
Diff to previous 1.19 (colored) to selected 1.38 (colored)

Fixed next-line scoping of `.HP nnn' (has both next-line and on-line in head).

Revision 1.19 / (download) - annotate - [select for diffs], Fri Aug 21 12:32:38 2009 UTC (14 years, 7 months ago) by kristaps
Branch: MAIN
Changes since 1.18: +5 -1 lines
Diff to previous 1.18 (colored) to selected 1.38 (colored)

Fixed `nf' behaviour (had broken with de-chunking).
Added warnings if literal context already open/closed.

Revision 1.18 / (download) - annotate - [select for diffs], Wed Aug 19 12:15:58 2009 UTC (14 years, 7 months ago) by kristaps
Branch: MAIN
Changes since 1.17: +2 -1 lines
Diff to previous 1.17 (colored) to selected 1.38 (colored)

libman checks for open explicit scopes on exit.

Revision 1.17 / (download) - annotate - [select for diffs], Wed Aug 19 09:14:50 2009 UTC (14 years, 7 months ago) by kristaps
Branch: MAIN
Changes since 1.16: +2 -1 lines
Diff to previous 1.16 (colored) to selected 1.38 (colored)

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

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

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.15 / (download) - annotate - [select for diffs], Fri Jul 24 20:22:24 2009 UTC (14 years, 8 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_8_5, VERSION_1_8_4
Changes since 1.14: +2 -1 lines
Diff to previous 1.14 (colored) to selected 1.38 (colored)

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

Revision 1.14 / (download) - annotate - [select for diffs], Tue Jul 7 09:35:40 2009 UTC (14 years, 8 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
Changes since 1.13: +4 -3 lines
Diff to previous 1.13 (colored) to selected 1.38 (colored)

Tabularised error strings in libman.

Revision 1.13 / (download) - annotate - [select for diffs], Mon Jul 6 13:04:52 2009 UTC (14 years, 8 months ago) by kristaps
Branch: MAIN
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored) to selected 1.38 (colored)

Consolidated all err/warnings into mdoc.c via libmdoc.h.

Revision 1.12 / (download) - annotate - [select for diffs], Sat Jul 4 09:01:55 2009 UTC (14 years, 8 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_7_22, VERSION_1_7_21
Changes since 1.11: +3 -2 lines
Diff to previous 1.11 (colored) to selected 1.38 (colored)

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.11 / (download) - annotate - [select for diffs], Mon Jun 22 13:09:17 2009 UTC (14 years, 9 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_7_20
Changes since 1.10: +4 -2 lines
Diff to previous 1.10 (colored) to selected 1.38 (colored)

libman documents require `TH' and at least one node.
libman requirements documented in man.7 STRUCTURE section.
Added STRUCTURE section to mdoc.7, too.

Revision 1.10 / (download) - annotate - [select for diffs], Thu Jun 18 10:53:58 2009 UTC (14 years, 9 months ago) by kristaps
Branch: MAIN
Changes since 1.9: +21 -1 lines
Diff to previous 1.9 (colored) to selected 1.38 (colored)

Moved all formatted libman warn/error into man.c/libman.h.
Converted all formatted warn/errors into regular syntax.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Jun 10 20:18:43 2009 UTC (14 years, 9 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_7_19, VERSION_1_7_17, VERSION_1_7_16, VERSION_1_7_15, VERSION_1_7_14
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored) to selected 1.38 (colored)

Fixed license email address.

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

Using proper license template (const).

Revision 1.7 / (download) - annotate - [select for diffs], Thu Mar 26 14:38:11 2009 UTC (15 years ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_7_5, VERSION_1_7_12, VERSION_1_7_10, OPENBSD_CHECKIN
Changes since 1.6: +2 -1 lines
Diff to previous 1.6 (colored) to selected 1.38 (colored)

Initial front-end formatting for -man pages.

Revision 1.6 / (download) - annotate - [select for diffs], Wed Mar 25 21:03:13 2009 UTC (15 years ago) by kristaps
Branch: MAIN
Changes since 1.5: +2 -1 lines
Diff to previous 1.5 (colored) to selected 1.38 (colored)

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

Revision 1.5 / (download) - annotate - [select for diffs], Wed Mar 25 15:36:05 2009 UTC (15 years ago) by kristaps
Branch: MAIN
Changes since 1.4: +3 -1 lines
Diff to previous 1.4 (colored) to selected 1.38 (colored)

Added man_action.c, renamed mdoc_action.c.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Mar 25 15:17:49 2009 UTC (15 years ago) by kristaps
Branch: MAIN
Changes since 1.3: +5 -1 lines
Diff to previous 1.3 (colored) to selected 1.38 (colored)

Added man validator, renamed mdoc validator.

Revision 1.3 / (download) - annotate - [select for diffs], Mon Mar 23 15:41:09 2009 UTC (15 years ago) by kristaps
Branch: MAIN
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored) to selected 1.38 (colored)

-man linked to mandoc in documentation.

Revision 1.2 / (download) - annotate - [select for diffs], Mon Mar 23 15:20:51 2009 UTC (15 years ago) by kristaps
Branch: MAIN
Changes since 1.1: +4 -17 lines
Diff to previous 1.1 (colored) to selected 1.38 (colored)

-man printing linked to -Ttree.

Revision 1.1 / (download) - annotate - [select for diffs], Mon Mar 23 14:22:11 2009 UTC (15 years ago) by kristaps
Branch: MAIN
Diff to selected 1.38 (colored)

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