Lines Matching refs:in

8  * in the Software without restriction, including without limitation the rights
13 * The above copyright notice and this permission notice shall be included in
334 Scanner in;
338 memset(&in, 0, sizeof(in));
339 in.errors = timelib_malloc(sizeof(timelib_error_container));
340 in.errors->warning_count = 0;
341 in.errors->warning_messages = NULL;
342 in.errors->error_count = 0;
343 in.errors->error_messages = NULL;
354 add_error(&in, "Empty string");
356 *errors = in.errors;
358 timelib_error_container_dtor(in.errors);
365 in.str = timelib_malloc((e - s) + YYMAXFILL);
366 memset(in.str, 0, (e - s) + YYMAXFILL);
367 memcpy(in.str, s, (e - s));
368 in.lim = in.str + (e - s) + YYMAXFILL;
369 in.cur = in.str;
372 in.begin = timelib_time_ctor();
373 in.begin->y = TIMELIB_UNSET;
374 in.begin->d = TIMELIB_UNSET;
375 in.begin->m = TIMELIB_UNSET;
376 in.begin->h = TIMELIB_UNSET;
377 in.begin->i = TIMELIB_UNSET;
378 in.begin->s = TIMELIB_UNSET;
379 in.begin->us = 0;
380 in.begin->z = 0;
381 in.begin->dst = 0;
382 in.begin->is_localtime = 0;
383 in.begin->zone_type = TIMELIB_ZONETYPE_OFFSET;
385 in.end = timelib_time_ctor();
386 in.end->y = TIMELIB_UNSET;
387 in.end->d = TIMELIB_UNSET;
388 in.end->m = TIMELIB_UNSET;
389 in.end->h = TIMELIB_UNSET;
390 in.end->i = TIMELIB_UNSET;
391 in.end->s = TIMELIB_UNSET;
392 in.end->us = 0;
393 in.end->z = 0;
394 in.end->dst = 0;
395 in.end->is_localtime = 0;
396 in.end->zone_type = TIMELIB_ZONETYPE_OFFSET;
398 in.period = timelib_rel_time_ctor();
399 in.period->y = 0;
400 in.period->d = 0;
401 in.period->m = 0;
402 in.period->h = 0;
403 in.period->i = 0;
404 in.period->s = 0;
405 in.period->weekday = 0;
406 in.period->weekday_behavior = 0;
407 in.period->first_last_day_of = 0;
408 in.period->days = TIMELIB_UNSET;
410 in.recurrences = 1;
413 t = scan(&in);
419 timelib_free(in.str);
421 *errors = in.errors;
423 timelib_error_container_dtor(in.errors);
425 if (in.have_begin_date) {
426 *begin = in.begin;
428 timelib_time_dtor(in.begin);
430 if (in.have_end_date) {
431 *end = in.end;
433 timelib_time_dtor(in.end);
435 if (in.have_period) {
436 *period = in.period;
438 timelib_rel_time_dtor(in.period);
440 if (in.have_recurrences) {
441 *recurrences = in.recurrences;