* lib/time_rz.c: Include idx.h.
(save_abbr): Mark zone_size as nonnegative.
* modules/time_rz (Depends-on): Add idx.
+2020-12-06 Bruno Haible <bruno@clisp.org>
+
+ time_rz: Use idx_t for nonnegative ptrdiff_t variables.
+ * lib/time_rz.c: Include idx.h.
+ (save_abbr): Mark zone_size as nonnegative.
+ * modules/time_rz (Depends-on): Add idx.
+
2020-12-06 Bruno Haible <bruno@clisp.org>
parse-datetime: Use idx_t for nonnegative ptrdiff_t variables.
#include <string.h>
#include "flexmember.h"
+#include "idx.h"
#include "time-internal.h"
/* The approximate size to use for small allocation requests. This is
{
if (! (*zone_copy || (zone_copy == tz->abbrs && tz->tz_is_set)))
{
- ptrdiff_t zone_size = strlen (zone) + 1;
+ idx_t zone_size = strlen (zone) + 1;
if (zone_size < tz->abbrs + ABBR_SIZE_MIN - zone_copy)
extend_abbrs (zone_copy, zone, zone_size);
else
extensions
time
flexmember [test $HAVE_TIMEZONE_T = 0]
+idx [test $HAVE_TIMEZONE_T = 0]
setenv [test $HAVE_TIMEZONE_T = 0]
stdbool [test $HAVE_TIMEZONE_T = 0]
time_r [test $HAVE_TIMEZONE_T = 0]