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