Lines Matching refs:tmp
206 timelib_posix_trans_info *tmp = timelib_posix_trans_info_ctor(); in read_trans_spec_mwd() local
208 tmp->type = TIMELIB_POSIX_TRANS_TYPE_MWD; in read_trans_spec_mwd()
213 tmp->mwd.month = read_number(ptr); in read_trans_spec_mwd()
214 if (tmp->mwd.month == TIMELIB_UNSET) { in read_trans_spec_mwd()
224 tmp->mwd.week = read_number(ptr); in read_trans_spec_mwd()
225 if (tmp->mwd.week == TIMELIB_UNSET) { in read_trans_spec_mwd()
235 tmp->mwd.dow = read_number(ptr); in read_trans_spec_mwd()
236 if (tmp->mwd.dow == TIMELIB_UNSET) { in read_trans_spec_mwd()
240 return tmp; in read_trans_spec_mwd()
243 timelib_posix_trans_info_dtor(tmp); in read_trans_spec_mwd()
250 timelib_posix_trans_info *tmp; in read_transition_spec() local
253 tmp = read_trans_spec_mwd(ptr); in read_transition_spec()
254 if (!tmp) { in read_transition_spec()
258 tmp = timelib_posix_trans_info_ctor(); in read_transition_spec()
261 tmp->type = TIMELIB_POSIX_TRANS_TYPE_JULIAN_NO_FEB29; in read_transition_spec()
265 tmp->days = read_number(ptr); in read_transition_spec()
266 if (tmp->days == TIMELIB_UNSET) { in read_transition_spec()
274 tmp->hour = read_offset(ptr); in read_transition_spec()
275 if (tmp->hour == TIMELIB_UNSET) { in read_transition_spec()
279 tmp->hour = -tmp->hour; in read_transition_spec()
282 return tmp; in read_transition_spec()
285 timelib_posix_trans_info_dtor(tmp); in read_transition_spec()
291 timelib_posix_trans_info *tmp; in timelib_posix_trans_info_ctor() local
293 tmp = timelib_calloc(1, sizeof(timelib_posix_trans_info)); in timelib_posix_trans_info_ctor()
294 tmp->type = TIMELIB_POSIX_TRANS_TYPE_JULIAN_FEB29; in timelib_posix_trans_info_ctor()
295 tmp->hour = 2 * 3600; in timelib_posix_trans_info_ctor()
297 return tmp; in timelib_posix_trans_info_ctor()
325 timelib_posix_str *tmp = timelib_calloc(1, sizeof(timelib_posix_str)); in timelib_parse_posix_str() local
329 tmp->std = read_description(&ptr); in timelib_parse_posix_str()
330 if (!tmp->std) { in timelib_parse_posix_str()
331 timelib_posix_str_dtor(tmp); in timelib_parse_posix_str()
336 tmp->std_offset = read_offset(&ptr); in timelib_parse_posix_str()
337 if (tmp->std_offset == TIMELIB_UNSET) { in timelib_parse_posix_str()
338 timelib_posix_str_dtor(tmp); in timelib_parse_posix_str()
345 return tmp; in timelib_parse_posix_str()
349 tmp->dst_offset = tmp->std_offset + 3600; in timelib_parse_posix_str()
351 tmp->dst = read_description(&ptr); in timelib_parse_posix_str()
352 if (!tmp->dst) { in timelib_parse_posix_str()
353 timelib_posix_str_dtor(tmp); in timelib_parse_posix_str()
360 tmp->dst_offset = read_offset(&ptr); in timelib_parse_posix_str()
361 if (tmp->dst_offset == TIMELIB_UNSET) { in timelib_parse_posix_str()
362 timelib_posix_str_dtor(tmp); in timelib_parse_posix_str()
370 timelib_posix_str_dtor(tmp); in timelib_parse_posix_str()
377 tmp->dst_begin = read_transition_spec(&ptr); in timelib_parse_posix_str()
378 if (!tmp->dst_begin) { in timelib_parse_posix_str()
379 timelib_posix_str_dtor(tmp); in timelib_parse_posix_str()
386 timelib_posix_str_dtor(tmp); in timelib_parse_posix_str()
393 tmp->dst_end = read_transition_spec(&ptr); in timelib_parse_posix_str()
394 if (!tmp->dst_end) { in timelib_parse_posix_str()
395 timelib_posix_str_dtor(tmp); in timelib_parse_posix_str()
401 timelib_posix_str_dtor(tmp); in timelib_parse_posix_str()
405 return tmp; in timelib_parse_posix_str()