CVS log for mandoc/manconf.h

[BACK] Up to [] / mandoc

Request diff between arbitrary revisions

Default branch: MAIN
Current tag: MAIN

Revision 1.9 / (download) - annotate - [select for diffs], Tue Jul 21 15:10:01 2020 UTC (2 years, 2 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_6, HEAD
Changes since 1.8: +2 -0 lines
Diff to previous 1.8 (unified) to selected 1.1 (unified)

undocumented options -O outfilename and -O tagfilename
to support regression testing without a tty;
no user visible change intended

Revision 1.8 / (download) - annotate - [select for diffs], Thu Apr 2 22:12:55 2020 UTC (2 years, 5 months ago) by schwarze
Branch: MAIN
Changes since 1.7: +6 -2 lines
Diff to previous 1.7 (unified) to selected 1.1 (unified)

When the last file formatted yielded no tags, the tags file got
deleted before starting the pager, even when earlier input files
had written to it; thanks to weerd@ for reporting that bug.

Since we now generate tags for section headers, we almost always
generate at least some.  Consequently, while fixing the above bug,
simplify the code by never deleting the tags file before the pager
exits, not even in the rare case that the file happens to be empty.
Hence, this patch is -75 +63 LOC even though it fixes two bugs.

While deleting the output files belongs after exit from the pager,
closing them should be done before it is started.  Collect the
related code, which was scattered in various places, to where
it belongs, in a dedicated function in the term_tag.c module.
As a side benefit, never fclose(2) stdout, only dup2(2) to it.

Similarly, when the -O tag argument wasn't found in the last file
formatted, there was a complaint about "no such tag" even when the
argument did occur in earlier files.  Fix that by looking for a
matching tag after every formatted file rather than just once at
the very end.  Given that command line arguments aren't properties
of the file(s) being formatted, that check is a job for the main
program, not for the formatters, so while fixing the check, move
it from term_tag.c to main.c.

Revision 1.7 / (download) - annotate - [select for diffs], Thu Nov 22 11:30:23 2018 UTC (3 years, 10 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_5
Changes since 1.6: +3 -2 lines
Diff to previous 1.6 (unified) to selected 1.1 (unified)

In -T locale (the default), -T ascii, and -T utf8 mode, provide a new
output option -O tag[=term] to move right to the definition of "term" when
opening the manual page in a pager, effectively porting the -T html
fragment name feature - - to the
terminal.  Try:

$ man -O tag uvm_sysctl
$ man -O tag=ulimit ksh
$ man -O tag 3 compress

Feature development triggered by a question from kn@.  Klemens also
tested, provided feedback that resulted in improvements, and provided
an OK.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Oct 2 14:56:47 2018 UTC (3 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.5: +3 -2 lines
Diff to previous 1.5 (unified) to selected 1.1 (unified)

Add an option -T html -O toc to add a brief table of contents near
the top of HTML pages containing at least two non-standard sections.
Suggested by Adam Kalisz and discussed with kristaps@ during EuroBSDCon 2018.

Revision 1.5 / (download) - annotate - [select for diffs], Sat Jul 1 09:47:30 2017 UTC (5 years, 2 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_4, VERSION_1_14_3, VERSION_1_14_2
Changes since 1.4: +3 -2 lines
Diff to previous 1.4 (unified) to selected 1.1 (unified)

Basic reporting of .Xrs to manual pages that don't exist
in the base system, inspired by mdoclint(1).

We are able to do this because (1) the -mdoc parser, the -Tlint validator,
and the man(1) manual page lookup code are all in the same program
and (2) the mandoc.db(5) database format allows fast lookup.

Feedback from, previous versions tested by, and OK jmc@.

A few features will be added to this in the tree, step by step.

Revision 1.4 / (download) - annotate - [select for diffs], Fri Feb 10 15:45:28 2017 UTC (5 years, 7 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_1, VERSION_1_13
Changes since 1.3: +1 -0 lines
Diff to previous 1.3 (unified) to selected 1.1 (unified)

In -Ttree output mode, show the BROKEN node flag and
provide a -Onoval output option to show the unvalidated tree.

Revision 1.3 / (download) - annotate - [select for diffs], Fri Jan 27 13:47:10 2017 UTC (5 years, 8 months ago) by schwarze
Branch: MAIN
Changes since 1.2: +1 -1 lines
Diff to previous 1.2 (unified) to selected 1.1 (unified)

warn about invalid output options
and error out if they occur on the command line;
missing feature found in the TODO file

Revision 1.2 / (download) - annotate - [select for diffs], Sat Nov 7 14:01:16 2015 UTC (6 years, 10 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_13_4
Changes since 1.1: +0 -3 lines
Diff to previous 1.1 (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.1 / (download) - annotate - [selected], Fri Mar 27 17:37:25 2015 UTC (7 years, 6 months ago) by schwarze
Branch: MAIN

Parse the new man.conf(5) "output" directive.
The next step will be to actually use the parsed data.

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.