Lines Matching refs:type

121 static int read_preamble(const unsigned char **tzf, timelib_tzinfo *tz, unsigned int *type)  in read_preamble()  argument
125 *type = TIMELIB_TZINFO_PHP; in read_preamble()
128 *type = TIMELIB_TZINFO_ZONEINFO; in read_preamble()
221 tz->type = (ttinfo*) timelib_malloc(tz->bit32.typecnt * sizeof(ttinfo)); in read_types()
222 if (!tz->type) { in read_types()
229 tz->type[i].offset = 0; in read_types()
230 …tz->type[i].offset += (int32_t) (((uint32_t) buffer[j]) << 24) + (buffer[j + 1] << 16) + (buffer[j… in read_types()
231 tz->type[i].isdst = buffer[j + 4]; in read_types()
232 tz->type[i].abbr_idx = buffer[j + 5]; in read_types()
272 tz->type[i].isstdcnt = buffer[i]; in read_types()
286 tz->type[i].isgmtcnt = buffer[i]; in read_types()
351 (long int) tz->type[0].offset, in timelib_dump_tzinfo()
352 tz->type[0].isdst, in timelib_dump_tzinfo()
353 tz->type[0].abbr_idx, in timelib_dump_tzinfo()
354 &tz->timezone_abbr[tz->type[0].abbr_idx], in timelib_dump_tzinfo()
355 tz->type[0].isstdcnt, in timelib_dump_tzinfo()
356 tz->type[0].isgmtcnt in timelib_dump_tzinfo()
361 (long int) tz->type[tz->trans_idx[i]].offset, in timelib_dump_tzinfo()
362 tz->type[tz->trans_idx[i]].isdst, in timelib_dump_tzinfo()
363 tz->type[tz->trans_idx[i]].abbr_idx, in timelib_dump_tzinfo()
364 &tz->timezone_abbr[tz->type[tz->trans_idx[i]].abbr_idx], in timelib_dump_tzinfo()
365 tz->type[tz->trans_idx[i]].isstdcnt, in timelib_dump_tzinfo()
366 tz->type[tz->trans_idx[i]].isgmtcnt in timelib_dump_tzinfo()
462 unsigned int type; /* TIMELIB_TZINFO_PHP or TIMELIB_TZINFO_ZONEINFO */ in timelib_parse_tzfile() local
467 version = read_preamble(&tzf, tmp, &type); in timelib_parse_tzfile()
499 if (type == TIMELIB_TZINFO_PHP) { in timelib_parse_tzfile()
517 TIMELIB_TIME_FREE(tz->type); in timelib_tzinfo_dtor()
542 tmp->type = (ttinfo*) timelib_malloc(tz->bit32.typecnt * sizeof(ttinfo)); in timelib_tzinfo_clone()
543 memcpy(tmp->type, tz->type, tz->bit32.typecnt * sizeof(ttinfo)); in timelib_tzinfo_clone()
565 return &(tz->type[0]); in fetch_timezone_offset()
579 while (j < tz->bit32.timecnt && tz->type[tz->trans_idx[j]].isdst) { in fetch_timezone_offset()
585 return &(tz->type[tz->trans_idx[j]]); in fetch_timezone_offset()
593 return &(tz->type[tz->trans_idx[i - 1]]); in fetch_timezone_offset()
597 return &(tz->type[tz->trans_idx[tz->bit32.timecnt - 1]]); in fetch_timezone_offset()