Blame lib/time-internal.h

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