Lines Matching refs:zp
210 static void outzone(const struct zone * zp, ptrdiff_t ntzones);
1608 register struct zone * zp; in associate() local
1639 zp = &zones[i]; in associate()
1640 zp->z_rules = NULL; in associate()
1641 zp->z_nrules = 0; in associate()
1649 zp = &zones[i]; in associate()
1650 if (strcmp(zp->z_rule, rp->r_name) != 0) in associate()
1652 zp->z_rules = rp; in associate()
1653 zp->z_nrules = out - base; in associate()
1657 zp = &zones[i]; in associate()
1658 if (zp->z_nrules == 0) { in associate()
1662 eat(zp->z_filenum, zp->z_linenum); in associate()
1663 zp->z_save = getsave(zp->z_rule, &zp->z_isdst); in associate()
1668 if (zp->z_format_specifier == 's') in associate()
2842 doabbr(char *abbr, struct zone const *zp, char const *letters, in doabbr() argument
2848 char const *format = zp->z_format; in doabbr()
2853 if (zp->z_format_specifier == 'z') in doabbr()
2854 letters = abbroffset(letterbuf, zp->z_stdoff + save); in doabbr()
3010 register const struct zone * zp; in stringzone() local
3033 zp = zpfirst + zonecount - 1; in stringzone()
3034 for (i = 0; i < zp->z_nrules; ++i) { in stringzone()
3037 rp = &zp->z_rules[i]; in stringzone()
3047 dstcmp = zp->z_nrules ? rule_cmp(dstrp, stdrp) : zp->z_isdst ? 1 : -1; in stringzone()
3048 stdzp = dstzp = zp; in stringzone()
3056 zic_t save = dstrp ? dstrp->r_save : zp->z_save; in stringzone()
3063 zstr[0].z_stdoff = zp->z_stdoff + 2 * save; in stringzone()
3067 zstr[1].z_format = zp->z_format; in stringzone()
3068 zstr[1].z_format_specifier = zp->z_format_specifier; in stringzone()
3179 struct zone const *zp = &zpfirst[i]; in outzone() local
3181 updateminmax(zp->z_untilrule.r_loyear); in outzone()
3182 for (j = 0; j < zp->z_nrules; ++j) { in outzone()
3183 struct rule *rp = &zp->z_rules[j]; in outzone()
3237 struct zone const *zp = &zpfirst[i]; in outzone() local
3238 bool usestart = i > 0 && (zp - 1)->z_untiltime > min_time; in outzone()
3240 zic_t stdoff = zp->z_stdoff; in outzone()
3242 if (useuntil && zp->z_untiltime <= min_time) in outzone()
3244 eat(zp->z_filenum, zp->z_linenum); in outzone()
3246 if (zp->z_nrules == 0) { in outzone()
3248 save = zp->z_save; in outzone()
3249 doabbr(startbuf, zp, NULL, zp->z_isdst, save, false); in outzone()
3250 type = addtype(oadd(zp->z_stdoff, save), in outzone()
3251 startbuf, zp->z_isdst, startttisstd, in outzone()
3265 if (useuntil && year > zp->z_untilrule.r_hiyear) in outzone()
3272 for (j = 0; j < zp->z_nrules; ++j) { in outzone()
3275 struct rule *rp = &zp->z_rules[j]; in outzone()
3276 eats(zp->z_filenum, zp->z_linenum, in outzone()
3301 untiltime = zp->z_untiltime; in outzone()
3302 if (!zp->z_untilrule.r_todisut) in outzone()
3305 if (!zp->z_untilrule.r_todisstd) in outzone()
3314 for (j = 0; j < zp->z_nrules; ++j) { in outzone()
3315 struct rule *r = &zp->z_rules[j]; in outzone()
3318 eats(zp->z_filenum, zp->z_linenum, in outzone()
3334 eats(zp->z_filenum, zp->z_linenum, in outzone()
3337 r = &zp->z_rules[k]; in outzone()
3338 eats(zp->z_filenum, zp->z_linenum, in outzone()
3345 rp = &zp->z_rules[k]; in outzone()
3349 && (oadd(zp->z_stdoff, rp->r_save) in outzone()
3351 doabbr(startbuf, zp, rp->r_abbrvar, in outzone()
3361 startoff = oadd(zp->z_stdoff, in outzone()
3363 doabbr(startbuf, zp, in outzone()
3371 && startoff == oadd(zp->z_stdoff, in outzone()
3374 zp, in outzone()
3381 eats(zp->z_filenum, zp->z_linenum, in outzone()
3383 doabbr(ab, zp, rp->r_abbrvar, in outzone()
3385 offset = oadd(zp->z_stdoff, rp->r_save); in outzone()
3400 bool isdst = startoff != zp->z_stdoff; in outzone()
3401 if (*startbuf == '\0' && zp->z_format) in outzone()
3402 doabbr(startbuf, zp, disable_percent_s, in outzone()
3404 eat(zp->z_filenum, zp->z_linenum); in outzone()
3420 startttisstd = zp->z_untilrule.r_todisstd; in outzone()
3421 startttisut = zp->z_untilrule.r_todisut; in outzone()
3422 starttime = zp->z_untiltime; in outzone()