]> git.saurik.com Git - bison.git/commit
* lib/quotearg.h (quotearg_n, quotearg_n_style):
authorAkim Demaille <akim@epita.fr>
Fri, 30 Nov 2001 14:04:24 +0000 (14:04 +0000)
committerAkim Demaille <akim@epita.fr>
Fri, 30 Nov 2001 14:04:24 +0000 (14:04 +0000)
commitf4e421e6e4e6f500c9721140c32f4d5bf300b185
tree85c88c704bba755865f6bc48765c38dccde330c0
parent7093d0f541b397fb279c21c50e21d58985a4fded
* 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.
ChangeLog
lib/quotearg.c
lib/quotearg.h