/* Copyright (C) 1995-2025 Free Software Foundation, Inc. This file is part of the GNU C Library. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, see <https://www.gnu.org/licenses/>. */#ifdef HAVE_CONFIG_H#include<config.h>#endif#include<byteswap.h>#include<langinfo.h>#include<stdlib.h>#include<string.h>#include<wchar.h>#include<stdint.h>#include<sys/uio.h>#include<assert.h>#include"localedef.h"#include"linereader.h"#include"localeinfo.h"#include"locfile.h"/* Entry describing an entry of the era specification. */structera_data{int32_tdirection;int32_toffset;int32_tstart_date[3];int32_tstop_date[3];constchar*name;constchar*format;uint32_t*wname;uint32_t*wformat;};/* The real definition of the struct for the LC_TIME locale. */