Lines Matching refs:zp
163 static void outzone(const struct zone * zp, int ntzones);
176 const struct zone * zp, int ntzones);
865 register struct zone * zp; in associate() local
900 zp = &zones[i]; in associate()
901 zp->z_rules = NULL; in associate()
902 zp->z_nrules = 0; in associate()
910 zp = &zones[i]; in associate()
911 if (strcmp(zp->z_rule, rp->r_name) != 0) in associate()
913 zp->z_rules = rp; in associate()
914 zp->z_nrules = out - base; in associate()
918 zp = &zones[i]; in associate()
919 if (zp->z_nrules == 0) { in associate()
923 eat(zp->z_filename, zp->z_linenum); in associate()
924 zp->z_stdoff = gethms(zp->z_rule, _("unruly zone"), in associate()
930 if (strchr(zp->z_format, '%') != 0) in associate()
2018 register const struct zone * zp; local
2026 zp = zpfirst + zonecount - 1;
2028 for (i = 0; i < zp->z_nrules; ++i) {
2029 rp = &zp->z_rules[i];
2049 for (i = 0; i < zp->z_nrules; ++i) {
2050 rp = &zp->z_rules[i];
2066 if (stdrp == NULL && zp->z_nrules != 0)
2069 doabbr(result, zp->z_format, abbrvar, FALSE, TRUE);
2070 if (stringoffset(end(result), -zp->z_gmtoff) != 0) {
2076 doabbr(end(result), zp->z_format, dstrp->r_abbrvar, TRUE, TRUE);
2079 -(zp->z_gmtoff + dstrp->r_stdoff)) != 0) {
2084 if (stringrule(result, dstrp, dstrp->r_stdoff, zp->z_gmtoff) != 0) {
2089 if (stringrule(result, stdrp, dstrp->r_stdoff, zp->z_gmtoff) != 0) {
2100 register const struct zone * zp; local
2148 zp = &zpfirst[i];
2150 updateminmax(zp->z_untilrule.r_loyear);
2151 for (j = 0; j < zp->z_nrules; ++j) {
2152 rp = &zp->z_rules[j];
2193 zp = &zpfirst[i];
2194 usestart = i > 0 && (zp - 1)->z_untiltime > min_time;
2196 if (useuntil && zp->z_untiltime <= min_time)
2198 gmtoff = zp->z_gmtoff;
2199 eat(zp->z_filename, zp->z_linenum);
2201 startoff = zp->z_gmtoff;
2209 for (j=0; j<zp->z_nrules; ++j) {
2210 rp = &zp->z_rules[j];
2258 if (zp->z_nrules == 0) {
2259 stdoff = zp->z_stdoff;
2260 doabbr(startbuf, zp->z_format,
2262 type = addtype(oadd(zp->z_gmtoff, stdoff),
2264 zp->z_gmtoff, stdoff,
2274 if (useuntil && year > zp->z_untilrule.r_hiyear)
2280 for (j = 0; j < zp->z_nrules; ++j) {
2281 rp = &zp->z_rules[j];
2282 eats(zp->z_filename, zp->z_linenum,
2302 untiltime = zp->z_untiltime;
2303 if (!zp->z_untilrule.r_todisgmt)
2306 if (!zp->z_untilrule.r_todisstd)
2315 for (j = 0; j < zp->z_nrules; ++j) {
2316 rp = &zp->z_rules[j];
2319 eats(zp->z_filename, zp->z_linenum,
2336 rp = &zp->z_rules[k];
2345 startoff = oadd(zp->z_gmtoff,
2347 doabbr(startbuf, zp->z_format,
2354 startoff == oadd(zp->z_gmtoff,
2357 zp->z_format,
2383 zpfirst->z_name, zp->z_gmtoff,
2389 eats(zp->z_filename, zp->z_linenum,
2391 doabbr(ab, zp->z_format, rp->r_abbrvar,
2393 offset = oadd(zp->z_gmtoff, rp->r_stdoff);
2395 type = addtype(offset, zp->z_gmtoff, rp->r_stdoff,
2407 zp->z_format != NULL &&
2408 strchr(zp->z_format, '%') == NULL &&
2409 strchr(zp->z_format, '/') == NULL)
2410 (void) strcpy(startbuf, zp->z_format);
2411 eat(zp->z_filename, zp->z_linenum);
2417 zp->z_gmtoff, startoff - zp->z_gmtoff,
2419 startoff != zp->z_gmtoff,
2424 startoff != zp->z_gmtoff,
2433 startttisstd = zp->z_untilrule.r_todisstd;
2434 startttisgmt = zp->z_untilrule.r_todisgmt;
2435 starttime = zp->z_untiltime;