Lines Matching refs:type

142 static int read_preamble(const unsigned char **tzf, timelib_tzinfo *tz, unsigned int *type)  in read_preamble()  argument
146 *type = TIMELIB_TZINFO_PHP; in read_preamble()
149 *type = TIMELIB_TZINFO_ZONEINFO; in read_preamble()
229 tz->type = (ttinfo*) timelib_malloc(tz->bit64.typecnt * sizeof(ttinfo)); in read_64bit_types()
230 if (!tz->type) { in read_64bit_types()
237 tz->type[i].offset = 0; in read_64bit_types()
238 …tz->type[i].offset += (int32_t) (((uint32_t) buffer[j]) << 24) + (buffer[j + 1] << 16) + (buffer[j… in read_64bit_types()
239 tz->type[i].isdst = buffer[j + 4]; in read_64bit_types()
240 tz->type[i].abbr_idx = buffer[j + 5]; in read_64bit_types()
283 tz->type[i].isstdcnt = buffer[i]; in read_64bit_types()
298 tz->type[i].isgmtcnt = buffer[i]; in read_64bit_types()
389 (long int) tz->type[0].offset, in timelib_dump_tzinfo()
390 tz->type[0].isdst, in timelib_dump_tzinfo()
391 tz->type[0].abbr_idx, in timelib_dump_tzinfo()
392 &tz->timezone_abbr[tz->type[0].abbr_idx], in timelib_dump_tzinfo()
393 tz->type[0].isstdcnt, in timelib_dump_tzinfo()
394 tz->type[0].isgmtcnt in timelib_dump_tzinfo()
399 (long int) tz->type[tz->trans_idx[i]].offset, in timelib_dump_tzinfo()
400 tz->type[tz->trans_idx[i]].isdst, in timelib_dump_tzinfo()
401 tz->type[tz->trans_idx[i]].abbr_idx, in timelib_dump_tzinfo()
402 &tz->timezone_abbr[tz->type[tz->trans_idx[i]].abbr_idx], in timelib_dump_tzinfo()
403 tz->type[tz->trans_idx[i]].isstdcnt, in timelib_dump_tzinfo()
404 tz->type[tz->trans_idx[i]].isgmtcnt in timelib_dump_tzinfo()
500 unsigned int type; /* TIMELIB_TZINFO_PHP or TIMELIB_TZINFO_ZONEINFO */ in timelib_parse_tzfile() local
505 version = read_preamble(&tzf, tmp, &type); in timelib_parse_tzfile()
537 if (type == TIMELIB_TZINFO_PHP) { in timelib_parse_tzfile()
555 TIMELIB_TIME_FREE(tz->type); in timelib_tzinfo_dtor()
586 tmp->type = (ttinfo*) timelib_malloc(tz->bit64.typecnt * sizeof(ttinfo)); in timelib_tzinfo_clone()
587 memcpy(tmp->type, tz->type, tz->bit64.typecnt * sizeof(ttinfo)); in timelib_tzinfo_clone()
609 return &(tz->type[0]); in fetch_timezone_offset()
620 return &(tz->type[0]); in fetch_timezone_offset()
628 return &(tz->type[tz->trans_idx[i - 1]]); in fetch_timezone_offset()
632 return &(tz->type[tz->trans_idx[tz->bit64.timecnt - 1]]); in fetch_timezone_offset()