Home | History | Annotate | Download | only in tzcode

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;
900 zp = &zones[i];
901 zp->z_rules = NULL;
902 zp->z_nrules = 0;
910 zp = &zones[i];
911 if (strcmp(zp->z_rule, rp->r_name) != 0)
913 zp->z_rules = rp;
914 zp->z_nrules = out - base;
918 zp = &zones[i];
919 if (zp->z_nrules == 0) {
923 eat(zp->z_filename, zp->z_linenum);
924 zp->z_stdoff = gethms(zp->z_rule, _("unruly zone"),
930 if (strchr(zp->z_format, '%') != 0)
2018 register const struct zone * zp;
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;
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];
2252 if (zp->z_nrules == 0) {
2253 stdoff = zp->z_stdoff;
2254 doabbr(startbuf, zp->z_format,
2256 type = addtype(oadd(zp->z_gmtoff, stdoff),
2258 zp->z_gmtoff, stdoff,
2268 if (useuntil && year > zp->z_untilrule.r_hiyear)
2274 for (j = 0; j < zp->z_nrules; ++j) {
2275 rp = &zp->z_rules[j];
2276 eats(zp->z_filename, zp->z_linenum,
2296 untiltime = zp->z_untiltime;
2297 if (!zp->z_untilrule.r_todisgmt)
2300 if (!zp->z_untilrule.r_todisstd)
2309 for (j = 0; j < zp->z_nrules; ++j) {
2310 rp = &zp->z_rules[j];
2313 eats(zp->z_filename, zp->z_linenum,
2330 rp = &zp->z_rules[k];
2339 startoff = oadd(zp->z_gmtoff,
2341 doabbr(startbuf, zp->z_format,
2348 startoff == oadd(zp->z_gmtoff,
2351 zp->z_format,
2377 zpfirst->z_name, zp->z_gmtoff,
2383 eats(zp->z_filename, zp->z_linenum,
2385 doabbr(ab, zp->z_format, rp->r_abbrvar,
2387 offset = oadd(zp->z_gmtoff, rp->r_stdoff);
2389 type = addtype(offset, zp->z_gmtoff, rp->r_stdoff,
2401 zp->z_format != NULL &&
2402 strchr(zp->z_format, '%') == NULL &&
2403 strchr(zp->z_format, '/') == NULL)
2404 (void) strcpy(startbuf, zp->z_format);
2405 eat(zp->z_filename, zp->z_linenum);
2411 zp->z_gmtoff, startoff - zp->z_gmtoff,
2413 startoff != zp->z_gmtoff,
2418 startoff != zp->z_gmtoff,
2427 startttisstd = zp->z_untilrule.r_todisstd;
2428 startttisgmt = zp->z_untilrule.r_todisgmt;
2429 starttime = zp->z_untiltime;