Lines Matching refs:sp
115 static void generate_transitions OF((register struct state * ZCONST sp,
124 static int Parse_TZ OF((ZCONST char *name, register struct state * ZCONST sp));
218 static void generate_transitions(sp, start, end)
219 register struct state * ZCONST sp;
227 long stdoffset = -sp->ttis[0].tt_gmtoff;
228 long dstoffset = -sp->ttis[1].tt_gmtoff;
235 sp->timecnt = 2 * (LAST_GOOD_YEAR - EPOCH_YEAR + 1);
236 atp = sp->ats;
237 typep = sp->types;
393 static int Parse_TZ(name, sp)
395 register struct state * ZCONST sp;
443 sp->typecnt = 2; /* standard time and DST */
444 sp->ttis[0].tt_gmtoff = -stdoffset;
445 sp->ttis[0].tt_isdst = 0;
446 sp->ttis[0].tt_abbrind = 0;
447 sp->ttis[1].tt_gmtoff = -dstoffset;
448 sp->ttis[1].tt_isdst = 1;
449 sp->ttis[1].tt_abbrind = stdlen + 1;
450 generate_transitions(sp, &start, &end);
454 sp->typecnt = 1; /* only standard time */
455 sp->timecnt = 0;
456 sp->ttis[0].tt_gmtoff = -stdoffset;
457 sp->ttis[0].tt_isdst = 0;
458 sp->ttis[0].tt_abbrind = 0;
460 sp->charcnt = stdlen + 1;
462 sp->charcnt += dstlen + 1;
463 if ((size_t) sp->charcnt > sizeof(sp->chars))
465 cp = sp->chars;