CVS log for mandoc/mandocd.c

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

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.13 / (download) - annotate - [select for diffs], Thu Apr 14 16:43:44 2022 UTC (2 years, 6 months ago) by schwarze
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +13 -2 lines
Diff to previous 1.12 (colored)

support for hunting memory leaks;
designed and written last autumn, polished today

Revision 1.12 / (download) - annotate - [select for diffs], Sun Jun 14 23:40:31 2020 UTC (4 years, 4 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_6
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

Make the ./configure script simpler, more robust, and 23 lines shorter:
* three rather than four arguments for singletest()
* let runtest() support testing two variants of compiler flags
* always report a failed test, even when another test follows
* run all tests before detecting fatal conditions
* rename HAVE_CMSG_XPG42 to NEED_XPG4_2 for consistency
* consistently use braces for shell variable interpolation
* drop archaic "X${" syntax and unusual "==" in string comparisons

Revision 1.11 / (download) - annotate - [select for diffs], Sun Mar 3 13:02:11 2019 UTC (5 years, 8 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_5
Changes since 1.10: +4 -2 lines
Diff to previous 1.10 (colored)

Reset HTML formatter state, in particular the id_unique hash,
after processing each manual page, such that the next page
starts from a clean state and doesn't continue suffix numbering.

Issue found while looking at https://github.com/Debian/debiman/issues/48
which was brought up by Orestis Ioannou <oorestisime at github>.

Revision 1.10 / (download) - annotate - [select for diffs], Sun Mar 3 11:01:15 2019 UTC (5 years, 8 months ago) by schwarze
Branch: MAIN
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

add forgotten mparse options to two rarely used programs

Revision 1.9 / (download) - annotate - [select for diffs], Sun Dec 30 00:49:55 2018 UTC (5 years, 10 months ago) by schwarze
Branch: MAIN
Changes since 1.8: +9 -15 lines
Diff to previous 1.8 (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.8 / (download) - annotate - [select for diffs], Fri Dec 14 01:18:26 2018 UTC (5 years, 10 months ago) by schwarze
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

Major cleanup; may imply minor changes in edge cases of error reporting.

Finally, drop support for the run-time configurable mandocmsg()
callback.  It was over-engineered from the start, never used for
anything in a decade, and repeatedly caused maintenance headaches.

Consolidate reporting infrastructure into two files, mandoc.h and
mandoc_msg.c, mopping up the bits and pieces that were scattered
around main.c, read.c, mandoc_parse.h, libmandoc.h, the prototypes
of four parsing-related functions, and both parser structs.

Revision 1.7 / (download) - annotate - [select for diffs], Thu Dec 13 11:55:46 2018 UTC (5 years, 10 months ago) by schwarze
Branch: MAIN
Changes since 1.6: +2 -1 lines
Diff to previous 1.6 (colored)

Cleanup, no functional change:
Split the top level parser interface out of the utility header
mandoc.h, into a new header mandoc_parse.h, for use in the main
program and in the main parser only.
Move enum mandoc_os into roff.h because struct roff_man is the
place where it is stored.
This allows removal of mandoc.h from seven files in low-level
parsers and in formatters.

Revision 1.6 / (download) - annotate - [select for diffs], Sat Jun 24 14:38:32 2017 UTC (7 years, 4 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_4, VERSION_1_14_3, VERSION_1_14_2
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

Split -Wstyle into -Wstyle and the even lower -Wbase, and add
-Wopenbsd and -Wnetbsd to check conventions for the base system of
a specific operating system.  Mark operating system specific messages
with "(OpenBSD)" at the end.

Please use just "-Tlint" to check base system manuals (defaulting
to -Wall, which is now -Wbase), but prefer "-Tlint -Wstyle" for the
manuals of portable software projects you maintain that are not
part of OpenBSD base, to avoid bogus recommendations about base
system conventions that do not apply.

Issue originally reported by semarie@, solution using
an idea from tedu@, discussed with jmc@ and jca@.

Revision 1.5 / (download) - annotate - [select for diffs], Fri Feb 17 14:31:52 2017 UTC (7 years, 8 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_1
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

Be consistent in protecting __attribute__ attributes with __;
from Christos Zoulas <christos @ NetBSD>.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Feb 8 16:11:41 2017 UTC (7 years, 9 months ago) by schwarze
Branch: MAIN
Changes since 1.3: +5 -1 lines
Diff to previous 1.3 (colored)

config glue for recvmsg(2) and CMSG_FIRSTHDR(3);
needed for Solaris 11

Revision 1.3 / (download) - annotate - [select for diffs], Mon Feb 6 19:02:37 2017 UTC (7 years, 9 months ago) by schwarze
Branch: MAIN
Changes since 1.2: +14 -4 lines
Diff to previous 1.2 (colored)

Polishing:
* support -Ios=
* create missing directories
* fix output file permissions
* error out on comminication failures

I now consider this good enough for a first release.
Bugs and missing features are still likely, though.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Feb 5 22:51:11 2017 UTC (7 years, 9 months ago) by schwarze
Branch: MAIN
Changes since 1.1: +2 -1 lines
Diff to previous 1.1 (colored)

uint8_t requires <stdint.h>; from Michael Stapelberg

Revision 1.1 / (download) - annotate - [select for diffs], Sat Feb 4 12:03:07 2017 UTC (7 years, 9 months ago) by schwarze
Branch: MAIN

experimental mandocd(8) and catman(8)
for development in the tree, not yet ready for production

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