Lines Matching full:zp
169 static void outzone(const struct zone * zp, int ntzones);
900 register struct zone * zp; in associate() local
934 zp = &zones[i]; in associate()
935 zp->z_rules = NULL; in associate()
936 zp->z_nrules = 0; in associate()
944 zp = &zones[i]; in associate()
945 if (strcmp(zp->z_rule, rp->r_name) != 0) in associate()
947 zp->z_rules = rp; in associate()
948 zp->z_nrules = out - base; in associate()
952 zp = &zones[i]; in associate()
953 if (zp->z_nrules == 0) { in associate()
957 eat(zp->z_filename, zp->z_linenum); in associate()
958 zp->z_stdoff = gethms(zp->z_rule, _("unruly zone"), in associate()
964 if (strchr(zp->z_format, '%') != 0) in associate()
2108 register const struct zone * zp; in stringzone() local
2119 zp = zpfirst + zonecount - 1; in stringzone()
2121 for (i = 0; i < zp->z_nrules; ++i) { in stringzone()
2122 rp = &zp->z_rules[i]; in stringzone()
2144 for (i = 0; i < zp->z_nrules; ++i) { in stringzone()
2145 rp = &zp->z_rules[i]; in stringzone()
2180 if (stdrp == NULL && (zp->z_nrules != 0 || zp->z_stdoff != 0)) in stringzone()
2183 doabbr(result, zp->z_format, abbrvar, FALSE, TRUE); in stringzone()
2184 if (stringoffset(end(result), -zp->z_gmtoff) != 0) { in stringzone()
2190 doabbr(end(result), zp->z_format, dstrp->r_abbrvar, TRUE, TRUE); in stringzone()
2193 -(zp->z_gmtoff + dstrp->r_stdoff)) != 0) { in stringzone()
2198 c = stringrule(result, dstrp, dstrp->r_stdoff, zp->z_gmtoff); in stringzone()
2206 c = stringrule(result, stdrp, dstrp->r_stdoff, zp->z_gmtoff); in stringzone()
2219 register const struct zone * zp; in outzone() local
2277 zp = &zpfirst[i]; in outzone()
2279 updateminmax(zp->z_untilrule.r_loyear); in outzone()
2280 for (j = 0; j < zp->z_nrules; ++j) { in outzone()
2281 rp = &zp->z_rules[j]; in outzone()
2359 zp = &zpfirst[i]; in outzone()
2360 usestart = i > 0 && (zp - 1)->z_untiltime > min_time; in outzone()
2362 if (useuntil && zp->z_untiltime <= min_time) in outzone()
2364 gmtoff = zp->z_gmtoff; in outzone()
2365 eat(zp->z_filename, zp->z_linenum); in outzone()
2367 startoff = zp->z_gmtoff; in outzone()
2375 for (j=0; j<zp->z_nrules; ++j) { in outzone()
2376 rp = &zp->z_rules[j]; in outzone()
2454 if (zp->z_nrules == 0) { in outzone()
2455 stdoff = zp->z_stdoff; in outzone()
2456 doabbr(startbuf, zp->z_format, in outzone()
2458 type = addtype(oadd(zp->z_gmtoff, stdoff), in outzone()
2460 zp->z_gmtoff, stdoff, in outzone()
2470 if (useuntil && year > zp->z_untilrule.r_hiyear) in outzone()
2476 for (j = 0; j < zp->z_nrules; ++j) { in outzone()
2477 rp = &zp->z_rules[j]; in outzone()
2478 eats(zp->z_filename, zp->z_linenum, in outzone()
2498 untiltime = zp->z_untiltime; in outzone()
2499 if (!zp->z_untilrule.r_todisgmt) in outzone()
2502 if (!zp->z_untilrule.r_todisstd) in outzone()
2511 for (j = 0; j < zp->z_nrules; ++j) { in outzone()
2512 rp = &zp->z_rules[j]; in outzone()
2515 eats(zp->z_filename, zp->z_linenum, in outzone()
2532 rp = &zp->z_rules[k]; in outzone()
2541 startoff = oadd(zp->z_gmtoff, in outzone()
2543 doabbr(startbuf, zp->z_format, in outzone()
2550 startoff == oadd(zp->z_gmtoff, in outzone()
2553 zp->z_format, in outzone()
2575 zpfirst->z_name, zp->z_gmtoff, in outzone()
2581 eats(zp->z_filename, zp->z_linenum, in outzone()
2583 doabbr(ab, zp->z_format, rp->r_abbrvar, in outzone()
2585 offset = oadd(zp->z_gmtoff, rp->r_stdoff); in outzone()
2587 type = addtype(offset, zp->z_gmtoff, rp->r_stdoff, in outzone()
2599 zp->z_format != NULL && in outzone()
2600 strchr(zp->z_format, '%') == NULL && in outzone()
2601 strchr(zp->z_format, '/') == NULL) in outzone()
2602 (void) strcpy(startbuf, zp->z_format); in outzone()
2603 eat(zp->z_filename, zp->z_linenum); in outzone()
2609 zp->z_gmtoff, startoff - zp->z_gmtoff, in outzone()
2611 startoff != zp->z_gmtoff, in outzone()
2616 startoff != zp->z_gmtoff, in outzone()
2625 startttisstd = zp->z_untilrule.r_todisstd; in outzone()
2626 startttisgmt = zp->z_untilrule.r_todisgmt; in outzone()
2627 starttime = zp->z_untiltime; in outzone()