A representation of the contents of a TZif file. Ideally this would have no size limits; the following sizes should suffice for practical use. This struct should not be too large, as instances are put on the stack and stacks are relatively small on some platforms. See tzfile.h for more about the sizes. */
| 499 | would have no size limits; the following sizes should suffice for |
| 500 | practical use. This struct should not be too large, as instances |
| 501 | are put on the stack and stacks are relatively small on some platforms. |
| 502 | See tzfile.h for more about the sizes. */ |
| 503 | struct state { |
| 504 | #if TZ_RUNTIME_LEAPS |
| 505 | int leapcnt; |
| 506 | #endif |
| 507 | int timecnt; |
| 508 | int typecnt; |
| 509 | int charcnt; |
| 510 | bool goahead; |
| 511 | time_t ats[TZ_MAX_TIMES]; |
| 512 | unsigned char types[TZ_MAX_TIMES]; |
| 513 | struct ttinfo ttis[TZ_MAX_TYPES]; |
| 514 | char chars[max(max(TZ_MAX_CHARS + CHARS_EXTRA, sizeof "UTC"), |
| 515 | 2 * (TZNAME_MAXIMUM + 1))]; |
| 516 | #if TZ_RUNTIME_LEAPS |
| 517 | struct lsinfo lsis[TZ_MAX_LEAPS]; |
| 518 | #endif |
| 519 | }; |
| 520 | |
| 521 | static int |
nothing calls this directly
no outgoing calls
no test coverage detected