Hash :
8f4b4e52
Author :
Date :
2024-02-06T17:08:16
nstrftime, fprintftime: Simplify. * lib/strftime.c: Renamed from lib/nstrftime.c. (my_strftime): Don't define here. * lib/nstrftime.c: New file. * lib/fprintftime.c (my_strftime): New macro. Include strftime.c, not nstrftime.c. * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Don't define my_strftime in config.h. * modules/nstrftime (Files): Add lib/strftime.c. * modules/fprintftime (Files): Likewise. * config/srclist.txt: Update comment regarding glibc/time/strftime.c.
/* Generate time strings directly to the output.
Copyright (C) 2005-2024 Free Software Foundation, Inc.
This file 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, either version 3 of the License,
or (at your option) any later version.
This file 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/>. */
#define my_strftime fprintftime
#define FPRINTFTIME 1
#include "strftime.c"