Up to [local] / src / usr.bin / mandoc
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.9 / (download) - annotate - [select for diffs], Wed Feb 7 20:04:33 2018 UTC (6 years, 4 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE,
OPENBSD_7_5,
OPENBSD_7_4_BASE,
OPENBSD_7_4,
OPENBSD_7_3_BASE,
OPENBSD_7_3,
OPENBSD_7_2_BASE,
OPENBSD_7_2,
OPENBSD_7_1_BASE,
OPENBSD_7_1,
OPENBSD_7_0_BASE,
OPENBSD_7_0,
OPENBSD_6_9_BASE,
OPENBSD_6_9,
OPENBSD_6_8_BASE,
OPENBSD_6_8,
OPENBSD_6_7_BASE,
OPENBSD_6_7,
OPENBSD_6_6_BASE,
OPENBSD_6_6,
OPENBSD_6_5_BASE,
OPENBSD_6_5,
OPENBSD_6_4_BASE,
OPENBSD_6_4,
OPENBSD_6_3_BASE,
OPENBSD_6_3,
HEAD
Changes since 1.8: +4 -4 lines
Diff to previous 1.8 (colored) to selected 1.2 (colored)
Fix the mandoc_strndup() utility function. All existing callers seem safe so far, but implementing it with an unchecked memcpy(3) is just wrong and quite dangerous.
Revision 1.8 / (download) - annotate - [select for diffs], Mon Jun 12 18:55:42 2017 UTC (6 years, 11 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE,
OPENBSD_6_2
Changes since 1.7: +11 -4 lines
Diff to previous 1.7 (colored) to selected 1.2 (colored)
Implement automatic line breaking inside individual table cells that contain text blocks. This cures overlong lines in various Xenocara manuals.
Revision 1.7 / (download) - annotate - [select for diffs], Mon Oct 12 21:09:08 2015 UTC (8 years, 8 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE,
OPENBSD_6_1,
OPENBSD_6_0_BASE,
OPENBSD_6_0,
OPENBSD_5_9_BASE,
OPENBSD_5_9
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored) to selected 1.2 (colored)
Check the right pointer against NULL; fixing a pasto introduced in the previous commit; found by Svyatoslav Mishyn <juef at openmailbox dot org> with cppcheck.
Revision 1.6 / (download) - annotate - [select for diffs], Sun Oct 11 21:06:59 2015 UTC (8 years, 8 months ago) by schwarze
Branch: MAIN
Changes since 1.5: +14 -25 lines
Diff to previous 1.5 (colored) to selected 1.2 (colored)
Finally use __progname, err(3) and warn(3). That's more readable and less error-prone than fumbling around with argv[0], fprintf(3), strerror(3), perror(3), and exit(3). It also shortens the code by 50 lines. It's a bad idea to boycott good interfaces merely because standards committees ignore them. Instead, it's the job of the portable distribution to provide compatibility modules for archaic systems (like commercial Solaris) that still don't have them. Actually, the compat code for the portable distribution already exists and will be committed right after this.
Revision 1.5 / (download) - annotate - [select for diffs], Tue Oct 6 18:30:43 2015 UTC (8 years, 8 months ago) by schwarze
Branch: MAIN
Changes since 1.4: +8 -8 lines
Diff to previous 1.4 (colored) to selected 1.2 (colored)
modernize style: "return" is not a function; ok cmp(1)
Revision 1.4 / (download) - annotate - [select for diffs], Fri Nov 28 19:25:03 2014 UTC (9 years, 6 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE,
OPENBSD_5_8,
OPENBSD_5_7_BASE,
OPENBSD_5_7
Changes since 1.3: +1 -1 lines
Diff to previous 1.3 (colored) to selected 1.2 (colored)
Add some missing OpenBSD RCS markers and a few missing <sys/types.h> inclusions; no code change.
Revision 1.3 / (download) - annotate - [select for diffs], Wed Apr 23 21:06:33 2014 UTC (10 years, 1 month ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE,
OPENBSD_5_6
Changes since 1.2: +13 -1 lines
Diff to previous 1.2 (colored)
Audit malloc(3)/calloc(3)/realloc(3) usage. * Change eight reallocs to reallocarray to be safe from overflows. * Change one malloc to reallocarray to be safe from overflows. * Change one calloc to reallocarray, no zeroing needed. * Change the order of arguments of three callocs (aesthetical).
Revision 1.2 / (download) - annotate - [selected], Fri Mar 21 22:52:21 2014 UTC (10 years, 2 months ago) by schwarze
Branch: MAIN
Changes since 1.1: +20 -1 lines
Diff to previous 1.1 (colored)
avoid repetitive code for asprintf error handling
Revision 1.1 / (download) - annotate - [select for diffs], Fri Mar 21 22:17:01 2014 UTC (10 years, 2 months ago) by schwarze
Branch: MAIN
Diff to selected 1.2 (colored)
The files mandoc.c and mandoc.h contained both specialised low-level functions used for multiple languages (mdoc, man, roff), for example mandoc_escape(), mandoc_getarg(), mandoc_eos(), and generic auxiliary functions. Split the auxiliaries out into their own file and header. While here, do some #include cleanup.