Blame lib/time-internal.h

Packit 8f70b4
/* Time internal interface
Packit 8f70b4
Packit 8f70b4
   Copyright 2015-2018 Free Software Foundation, Inc.
Packit 8f70b4
Packit 8f70b4
   This program is free software; you can redistribute it and/or modify
Packit 8f70b4
   it under the terms of the GNU General Public License as published by
Packit 8f70b4
   the Free Software Foundation; either version 3, or (at your option)
Packit 8f70b4
   any later version.
Packit 8f70b4
Packit 8f70b4
   This program is distributed in the hope that it will be useful,
Packit 8f70b4
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 8f70b4
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit 8f70b4
   GNU General Public License for more details.
Packit 8f70b4
Packit 8f70b4
   You should have received a copy of the GNU General Public License along
Packit 8f70b4
   with this program; if not, see <https://www.gnu.org/licenses/>.  */
Packit 8f70b4
Packit 8f70b4
/* Written by Paul Eggert.  */
Packit 8f70b4
Packit 8f70b4
/* A time zone rule.  */
Packit 8f70b4
struct tm_zone
Packit 8f70b4
{
Packit 8f70b4
  /* More abbreviations, should they be needed.  Their TZ_IS_SET
Packit 8f70b4
     members are zero.  */
Packit 8f70b4
  struct tm_zone *next;
Packit 8f70b4
Packit 8f70b4
#if HAVE_TZNAME && !HAVE_TM_ZONE
Packit 8f70b4
  /* Copies of recent strings taken from tzname[0] and tzname[1].
Packit 8f70b4
     The copies are in ABBRS, so that they survive tzset.  Null if unknown.  */
Packit 8f70b4
  char *tzname_copy[2];
Packit 8f70b4
#endif
Packit 8f70b4
Packit 8f70b4
  /* If nonzero, the rule represents the TZ environment variable set
Packit 8f70b4
     to the first "abbreviation" (this may be the empty string).
Packit 8f70b4
     Otherwise, it represents an unset TZ.  */
Packit 8f70b4
  char tz_is_set;
Packit 8f70b4
Packit 8f70b4
  /* A sequence of null-terminated strings packed next to each other.
Packit 8f70b4
     The strings are followed by an extra null byte.  If TZ_IS_SET,
Packit 8f70b4
     there must be at least one string and the first string (which is
Packit 8f70b4
     actually a TZ environment value) may be empty.  Otherwise all
Packit 8f70b4
     strings must be nonempty.
Packit 8f70b4
Packit 8f70b4
     Abbreviations are stored here because otherwise the values of
Packit 8f70b4
     tm_zone and/or tzname would be dead after changing TZ and calling
Packit 8f70b4
     tzset.  Abbreviations never move once allocated, and are live
Packit 8f70b4
     until tzfree is called.  */
Packit 8f70b4
  char abbrs[FLEXIBLE_ARRAY_MEMBER];
Packit 8f70b4
};