Changeset View
Changeset View
Standalone View
Standalone View
contrib/tzcode/tzfile.h
Show First 20 Lines • Show All 99 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
/* | /* | ||||
** In the current implementation, "tzset()" refuses to deal with files that | ** In the current implementation, "tzset()" refuses to deal with files that | ||||
** exceed any of the limits below. | ** exceed any of the limits below. | ||||
*/ | */ | ||||
#ifndef TZ_MAX_TIMES | #ifndef TZ_MAX_TIMES | ||||
/* This must be at least 242 for Europe/London with 'zic -b fat'. */ | |||||
# define TZ_MAX_TIMES 2000 | # define TZ_MAX_TIMES 2000 | ||||
#endif /* !defined TZ_MAX_TIMES */ | #endif /* !defined TZ_MAX_TIMES */ | ||||
#ifndef TZ_MAX_TYPES | #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 */ | # define TZ_MAX_TYPES 256 /* Limited by what (unsigned char)'s can hold */ | ||||
#endif /* !defined TZ_MAX_TYPES */ | #endif /* !defined TZ_MAX_TYPES */ | ||||
#ifndef TZ_MAX_CHARS | #ifndef TZ_MAX_CHARS | ||||
/* This must be at least 40 for America/Anchorage. */ | |||||
# define TZ_MAX_CHARS 50 /* Maximum number of abbreviation characters */ | # define TZ_MAX_CHARS 50 /* Maximum number of abbreviation characters */ | ||||
/* (limited by what unsigned chars can hold) */ | /* (limited by what unsigned chars can hold) */ | ||||
#endif /* !defined TZ_MAX_CHARS */ | #endif /* !defined TZ_MAX_CHARS */ | ||||
#ifndef TZ_MAX_LEAPS | #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 */ | # define TZ_MAX_LEAPS 50 /* Maximum number of leap second corrections */ | ||||
#endif /* !defined TZ_MAX_LEAPS */ | #endif /* !defined TZ_MAX_LEAPS */ | ||||
#endif /* !defined TZFILE_H */ | #endif /* !defined TZFILE_H */ |