• Home
  • Raw
  • Download

Lines Matching refs:zp

177 static void	outzone(const struct zone * zp, ptrdiff_t ntzones);
1105 register struct zone * zp; in associate() local
1138 zp = &zones[i]; in associate()
1139 zp->z_rules = NULL; in associate()
1140 zp->z_nrules = 0; in associate()
1148 zp = &zones[i]; in associate()
1149 if (strcmp(zp->z_rule, rp->r_name) != 0) in associate()
1151 zp->z_rules = rp; in associate()
1152 zp->z_nrules = out - base; in associate()
1156 zp = &zones[i]; in associate()
1157 if (zp->z_nrules == 0) { in associate()
1161 eat(zp->z_filename, zp->z_linenum); in associate()
1162 zp->z_save = getsave(zp->z_rule, &zp->z_isdst); in associate()
1167 if (zp->z_format_specifier == 's') in associate()
2309 doabbr(char *abbr, struct zone const *zp, char const *letters, in doabbr() argument
2315 char const *format = zp->z_format; in doabbr()
2320 if (zp->z_format_specifier == 'z') in doabbr()
2321 letters = abbroffset(letterbuf, zp->z_stdoff + save); in doabbr()
2469 register const struct zone * zp; in stringzone() local
2488 zp = zpfirst + zonecount - 1; in stringzone()
2490 for (i = 0; i < zp->z_nrules; ++i) { in stringzone()
2491 rp = &zp->z_rules[i]; in stringzone()
2511 for (i = 0; i < zp->z_nrules; ++i) { in stringzone()
2512 rp = &zp->z_rules[i]; in stringzone()
2541 if (stdrp == NULL && (zp->z_nrules != 0 || zp->z_isdst)) in stringzone()
2544 len = doabbr(result, zp, abbrvar, false, 0, true); in stringzone()
2545 offsetlen = stringoffset(result + len, - zp->z_stdoff); in stringzone()
2553 len += doabbr(result + len, zp, dstrp->r_abbrvar, in stringzone()
2557 - (zp->z_stdoff + dstrp->r_save)); in stringzone()
2565 c = stringrule(result + len, dstrp, dstrp->r_save, zp->z_stdoff); in stringzone()
2574 c = stringrule(result + len, stdrp, dstrp->r_save, zp->z_stdoff); in stringzone()
2587 register const struct zone * zp; in outzone() local
2640 zp = &zpfirst[i]; in outzone()
2642 updateminmax(zp->z_untilrule.r_loyear); in outzone()
2643 for (j = 0; j < zp->z_nrules; ++j) { in outzone()
2644 rp = &zp->z_rules[j]; in outzone()
2722 zp = &zpfirst[i]; in outzone()
2723 usestart = i > 0 && (zp - 1)->z_untiltime > min_time; in outzone()
2725 if (useuntil && zp->z_untiltime <= min_time) in outzone()
2727 stdoff = zp->z_stdoff; in outzone()
2728 eat(zp->z_filename, zp->z_linenum); in outzone()
2730 startoff = zp->z_stdoff; in outzone()
2731 if (zp->z_nrules == 0) { in outzone()
2732 save = zp->z_save; in outzone()
2733 doabbr(startbuf, zp, NULL, zp->z_isdst, save, false); in outzone()
2734 type = addtype(oadd(zp->z_stdoff, save), in outzone()
2735 startbuf, zp->z_isdst, startttisstd, in outzone()
2743 if (useuntil && year > zp->z_untilrule.r_hiyear) in outzone()
2750 for (j = 0; j < zp->z_nrules; ++j) { in outzone()
2751 rp = &zp->z_rules[j]; in outzone()
2752 eats(zp->z_filename, zp->z_linenum, in outzone()
2775 untiltime = zp->z_untiltime; in outzone()
2776 if (!zp->z_untilrule.r_todisut) in outzone()
2779 if (!zp->z_untilrule.r_todisstd) in outzone()
2788 for (j = 0; j < zp->z_nrules; ++j) { in outzone()
2789 rp = &zp->z_rules[j]; in outzone()
2792 eats(zp->z_filename, zp->z_linenum, in outzone()
2808 eats(zp->z_filename, zp->z_linenum, in outzone()
2811 rp = &zp->z_rules[k]; in outzone()
2812 eats(zp->z_filename, zp->z_linenum, in outzone()
2819 rp = &zp->z_rules[k]; in outzone()
2828 startoff = oadd(zp->z_stdoff, in outzone()
2830 doabbr(startbuf, zp, in outzone()
2838 && startoff == oadd(zp->z_stdoff, in outzone()
2841 zp, in outzone()
2848 eats(zp->z_filename, zp->z_linenum, in outzone()
2850 doabbr(ab, zp, rp->r_abbrvar, in outzone()
2852 offset = oadd(zp->z_stdoff, rp->r_save); in outzone()
2872 zp->z_format != NULL && in outzone()
2873 strchr(zp->z_format, '%') == NULL && in outzone()
2874 strchr(zp->z_format, '/') == NULL) in outzone()
2875 strcpy(startbuf, zp->z_format); in outzone()
2876 eat(zp->z_filename, zp->z_linenum); in outzone()
2880 bool isdst = startoff != zp->z_stdoff; in outzone()
2892 startttisstd = zp->z_untilrule.r_todisstd; in outzone()
2893 startttisut = zp->z_untilrule.r_todisut; in outzone()
2894 starttime = zp->z_untiltime; in outzone()