CVS log for mandoc/mandoc_aux.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.11 / (download) - annotate - [select for diffs], Wed Feb 7 20:04:57 2018 UTC (2 years, 7 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_5, VERSION_1_14_4, HEAD
Changes since 1.10: +4 -4 lines
Diff to previous 1.10 (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.10 / (download) - annotate - [select for diffs], Mon Jun 12 19:05:47 2017 UTC (3 years, 3 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_3, VERSION_1_14_2
Changes since 1.9: +11 -4 lines
Diff to previous 1.9 (colored)

Implement automatic line breaking
inside individual table cells that contain text blocks.
This cures overlong lines in various Xenocara manuals.

Revision 1.9 / (download) - annotate - [select for diffs], Sat Nov 7 14:22:29 2015 UTC (4 years, 10 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_1, VERSION_1_13_4, VERSION_1_13
Changes since 1.8: +3 -1 lines
Diff to previous 1.8 (colored)

Without HAVE_ERR, don't try to include <err.h>, it probably isn't there.
In that case, the required prototypes are in "config.h".
Patch from Peter Bray <pdb_ml at yahoo dot com dot au>.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Nov 6 16:30:33 2015 UTC (4 years, 10 months ago) by schwarze
Branch: MAIN
Changes since 1.7: +1 -4 lines
Diff to previous 1.7 (colored)

Use getprogname(3) rather than __progname.
Suggested by Joerg@ Sonnenberger (NetBSD).
Last year, deraadt@ confirmed on tech@ that this "has the potential
to be more portable", and micro-optimizing for speed is not relevant
here.  Also gets rid of one global variable.

Revision 1.7 / (download) - annotate - [select for diffs], Mon Oct 12 21:09:54 2015 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (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:12:54 2015 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.5: +18 -25 lines
Diff to previous 1.5 (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's a bad idea to boycott good interfaces merely because standards
committees ignore them.  Instead, let's provide compatibility modules
for archaic systems (like commercial Solaris) that still don't have
them.  The compat module has an UCB Copyright (c) 1993...

Revision 1.5 / (download) - annotate - [select for diffs], Tue Oct 6 18:32:19 2015 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.4: +8 -8 lines
Diff to previous 1.4 (colored)

modernize style: "return" is not a function

Revision 1.4 / (download) - annotate - [select for diffs], Sun Aug 10 23:54:41 2014 UTC (6 years, 1 month ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_13_3, VERSION_1_13_2, VERSION_1_12_4, VERSION_1_12
Changes since 1.3: +1 -3 lines
Diff to previous 1.3 (colored)

Get rid of HAVE_CONFIG_H, it is always defined; idea from libnbcompat.
Include <sys/types.h> where needed, it does not belong in config.h.
Remove <stdio.h> from config.h; if it is missing somewhere, it should
be added, but i cannot find a *.c file where it is missing.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Jul 9 08:20:34 2014 UTC (6 years, 2 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_13_1
Changes since 1.2: +5 -1 lines
Diff to previous 1.2 (colored)

This one needs "config.h", too.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Apr 23 21:06:41 2014 UTC (6 years, 4 months ago) by schwarze
Branch: MAIN
Changes since 1.1: +13 -1 lines
Diff to previous 1.1 (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.1 / (download) - annotate - [select for diffs], Sun Mar 23 11:59:17 2014 UTC (6 years, 5 months ago) by schwarze
Branch: MAIN

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.

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