Lines Matching refs:location
107 memcpy(tz->location.country_code, *tzf, 2); in read_php_preamble()
108 tz->location.country_code[2] = '\0'; in read_php_preamble()
142 tz->location.country_code[0] = '?'; in read_tzif_preamble()
143 tz->location.country_code[1] = '?'; in read_tzif_preamble()
144 tz->location.country_code[2] = '\0'; in read_tzif_preamble()
452 tz->location.latitude = timelib_conv_int_unsigned(buffer[0]); in read_location()
453 tz->location.latitude = (tz->location.latitude / 100000) - 90; in read_location()
454 tz->location.longitude = timelib_conv_int_unsigned(buffer[1]); in read_location()
455 tz->location.longitude = (tz->location.longitude / 100000) - 180; in read_location()
459 tz->location.comments = timelib_malloc(comments_len + 1); in read_location()
460 memcpy(tz->location.comments, *tzf, comments_len); in read_location()
461 tz->location.comments[comments_len] = '\0'; in read_location()
467 tz->location.latitude = 0; in set_default_location_and_comments()
468 tz->location.longitude = 0; in set_default_location_and_comments()
469 tz->location.comments = timelib_malloc(2); in set_default_location_and_comments()
470 tz->location.comments[0] = '?'; in set_default_location_and_comments()
471 tz->location.comments[1] = '\0'; in set_default_location_and_comments()
515 printf("Country Code: %s\n", tz->location.country_code); in timelib_dump_tzinfo()
516 printf("Geo Location: %f,%f\n", tz->location.latitude, tz->location.longitude); in timelib_dump_tzinfo()
517 printf("Comments:\n%s\n", tz->location.comments); in timelib_dump_tzinfo()
736 TIMELIB_TIME_FREE(tz->location.comments); in timelib_tzinfo_dtor()