* lib/quotearg.h (quotearg_n, quotearg_n_style):

First arg is int, not unsigned.
* lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
(SIZE_MAX, UINT_MAX): New macros.
(quotearg_n_options): Abort if N is negative.
Avoid overflow check on hosts where size_t is 64 bits and int
is 32 bits, as overflow is impossible there.
Fix off-by-one typo that caused unnecessary reallocation.
This commit is contained in:
Akim Demaille
2001-11-30 14:04:22 +00:00
parent cac4f75e15
commit 3757d84e90
3 changed files with 36 additions and 13 deletions

View File

@@ -1,3 +1,14 @@
2001-11-30 Paul Eggert <eggert@twinsun.com>
* lib/quotearg.h (quotearg_n, quotearg_n_style):
First arg is int, not unsigned.
* lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
(SIZE_MAX, UINT_MAX): New macros.
(quotearg_n_options): Abort if N is negative.
Avoid overflow check on hosts where size_t is 64 bits and int
is 32 bits, as overflow is impossible there.
Fix off-by-one typo that caused unnecessary reallocation.
2001-11-30 Paul Eggert <eggert@twinsun.com>
Name space cleanup in generated parser.