Deleted Added
full compact
tzfile.h (2713) tzfile.h (9936)
1#ifndef TZFILE_H
2
3#define TZFILE_H
4
5/*
6** This header is for use ONLY with the time conversion code.
7** There is no guarantee that it will remain unchanged,
8** or that it will remain at all.
9** Do NOT copy it to any system include directory.
10** Thank you!
11*/
12
13/*
14** ID
15*/
16
17#ifndef lint
18#ifndef NOID
1#ifndef TZFILE_H
2
3#define TZFILE_H
4
5/*
6** This header is for use ONLY with the time conversion code.
7** There is no guarantee that it will remain unchanged,
8** or that it will remain at all.
9** Do NOT copy it to any system include directory.
10** Thank you!
11*/
12
13/*
14** ID
15*/
16
17#ifndef lint
18#ifndef NOID
19static char tzfilehid[] = "@(#)tzfile.h 7.4";
19/*static char tzfilehid[] = "@(#)tzfile.h 7.6";*/
20#endif /* !defined NOID */
21#endif /* !defined lint */
22
23/*
24** Information about time zone files.
25*/
26
27#ifndef TZDIR

--- 8 unchanged lines hidden (view full) ---

36#define TZDEFRULES "posixrules"
37#endif /* !defined TZDEFRULES */
38
39/*
40** Each file begins with. . .
41*/
42
43struct tzhead {
20#endif /* !defined NOID */
21#endif /* !defined lint */
22
23/*
24** Information about time zone files.
25*/
26
27#ifndef TZDIR

--- 8 unchanged lines hidden (view full) ---

36#define TZDEFRULES "posixrules"
37#endif /* !defined TZDEFRULES */
38
39/*
40** Each file begins with. . .
41*/
42
43struct tzhead {
44 char tzh_reserved[24]; /* reserved for future use */
44 char tzh_reserved[20]; /* reserved for future use */
45 char tzh_ttisgmtcnt[4]; /* coded number of trans. time flags */
45 char tzh_ttisstdcnt[4]; /* coded number of trans. time flags */
46 char tzh_leapcnt[4]; /* coded number of leap seconds */
47 char tzh_timecnt[4]; /* coded number of transition times */
48 char tzh_typecnt[4]; /* coded number of local time types */
49 char tzh_charcnt[4]; /* coded number of abbr. chars */
50};
51
52/*

--- 9 unchanged lines hidden (view full) ---

62** tzh_leapcnt repetitions of
63** one (char [4]) coded leap second transition times
64** one (char [4]) total correction after above
65** tzh_ttisstdcnt (char)s indexed by type; if TRUE, transition
66** time is standard time, if FALSE,
67** transition time is wall clock time
68** if absent, transition times are
69** assumed to be wall clock time
46 char tzh_ttisstdcnt[4]; /* coded number of trans. time flags */
47 char tzh_leapcnt[4]; /* coded number of leap seconds */
48 char tzh_timecnt[4]; /* coded number of transition times */
49 char tzh_typecnt[4]; /* coded number of local time types */
50 char tzh_charcnt[4]; /* coded number of abbr. chars */
51};
52
53/*

--- 9 unchanged lines hidden (view full) ---

63** tzh_leapcnt repetitions of
64** one (char [4]) coded leap second transition times
65** one (char [4]) total correction after above
66** tzh_ttisstdcnt (char)s indexed by type; if TRUE, transition
67** time is standard time, if FALSE,
68** transition time is wall clock time
69** if absent, transition times are
70** assumed to be wall clock time
71** tzh_ttisgmtcnt (char)s indexed by type; if TRUE, transition
72** time is GMT, if FALSE,
73** transition time is local time
74** if absent, transition times are
75** assumed to be local time
70*/
71
72/*
73** In the current implementation, "tzset()" refuses to deal with files that
74** exceed any of the limits below.
75*/
76
77#ifndef TZ_MAX_TIMES

--- 6 unchanged lines hidden (view full) ---

84#define TZ_MAX_TIMES 370
85#endif /* !defined TZ_MAX_TIMES */
86
87#ifndef TZ_MAX_TYPES
88#ifndef NOSOLAR
89#define TZ_MAX_TYPES 256 /* Limited by what (unsigned char)'s can hold */
90#endif /* !defined NOSOLAR */
91#ifdef NOSOLAR
76*/
77
78/*
79** In the current implementation, "tzset()" refuses to deal with files that
80** exceed any of the limits below.
81*/
82
83#ifndef TZ_MAX_TIMES

--- 6 unchanged lines hidden (view full) ---

90#define TZ_MAX_TIMES 370
91#endif /* !defined TZ_MAX_TIMES */
92
93#ifndef TZ_MAX_TYPES
94#ifndef NOSOLAR
95#define TZ_MAX_TYPES 256 /* Limited by what (unsigned char)'s can hold */
96#endif /* !defined NOSOLAR */
97#ifdef NOSOLAR
92#define TZ_MAX_TYPES 10 /* Maximum number of local time types */
98/*
99** Must be at least 14 for Europe/Riga as of Jan 12 1995,
100** as noted by Earl Chew <earl@hpato.aus.hp.com>.
101*/
102#define TZ_MAX_TYPES 20 /* Maximum number of local time types */
93#endif /* !defined NOSOLAR */
94#endif /* !defined TZ_MAX_TYPES */
95
96#ifndef TZ_MAX_CHARS
97#define TZ_MAX_CHARS 50 /* Maximum number of abbreviation characters */
98 /* (limited by what unsigned chars can hold) */
99#endif /* !defined TZ_MAX_CHARS */
100

--- 70 unchanged lines hidden ---
103#endif /* !defined NOSOLAR */
104#endif /* !defined TZ_MAX_TYPES */
105
106#ifndef TZ_MAX_CHARS
107#define TZ_MAX_CHARS 50 /* Maximum number of abbreviation characters */
108 /* (limited by what unsigned chars can hold) */
109#endif /* !defined TZ_MAX_CHARS */
110

--- 70 unchanged lines hidden ---