summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2023-03-12 12:13:28 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2023-03-12 12:13:55 -0700
commit5fd1128e5066bea8880ab90d0054347e70ebba33 (patch)
tree3bede319c54da24cd90876f6fba73ba21d370f51
parent4ffd8314200b3d4b1d5bb301934171da85febca5 (diff)
downloadtz-5fd1128e5066bea8880ab90d0054347e70ebba33.tar.gz
* tzfile.h: Add/update implementation limit commentary.
-rw-r--r--tzfile.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/tzfile.h b/tzfile.h
index 6b18d6b..9cbdcff 100644
--- a/tzfile.h
+++ b/tzfile.h
@@ -103,20 +103,24 @@ struct tzhead {
*/
#ifndef TZ_MAX_TIMES
+/* This must be at least 242 for Europe/London with 'zic -b fat'. */
# define TZ_MAX_TIMES 2000
#endif /* !defined TZ_MAX_TIMES */
#ifndef TZ_MAX_TYPES
-/* This must be at least 17 for Europe/Samara and Europe/Vilnius. */
+/* This must be at least 18 for Europe/Vilnius with 'zic -b fat'. */
# define TZ_MAX_TYPES 256 /* Limited by what (unsigned char)'s can hold */
#endif /* !defined TZ_MAX_TYPES */
#ifndef TZ_MAX_CHARS
+/* This must be at least 40 for America/Anchorage. */
# define TZ_MAX_CHARS 50 /* Maximum number of abbreviation characters */
/* (limited by what unsigned chars can hold) */
#endif /* !defined TZ_MAX_CHARS */
#ifndef TZ_MAX_LEAPS
+/* This must be at least 27 for leap seconds from 1972 through mid-2023.
+ There's a plan to discontinue leap seconds by 2035. */
# define TZ_MAX_LEAPS 50 /* Maximum number of leap second corrections */
#endif /* !defined TZ_MAX_LEAPS */