gnulib: upgrade to today's version
* tools/snippet/_Noreturn.h, tools/snippet/c++defs.h, tools/snippet/arg-nonnull.h, tools/snippet/warn-on-use.h: Rename to... * lib/_Noreturn.h, lib/c++defs.h, lib/arg-nonnull.h, lib/warn-on-use.h: ... these. * lib/filename.h, lib/getopt-cdefs.in.h, lib/getopt-core.h, lib/getopt-ext.h, lib/getopt-pfx-core.h, lib/getopt-pfx-ext.h, lib/localtime-buffer.c, lib/localtime-buffer.h, lib/malloca.c, lib/malloca.h, lib/malloca.valgrind, lib/stat-w32.c, lib/stat-w32.h, m4/eealloc.m4, m4/localtime-buffer.m4, m4/malloca.m4: New files. * lib/argp-help.c, lib/argp-parse.c, lib/error.c, lib/float.in.h, lib/getopt1.c, lib/getopt.c, lib/getopt.in.h, lib/getopt_int.h, lib/gettext.h, lib/gettimeofday.c, lib/intprops.h, lib/isatty.c, lib/limits.in.h, lib/localcharset.c, lib/Makefile.am, lib/mbrtowc.c, lib/mbsinit.c, lib/msvc-nothrow.c, lib/quotearg.c, lib/stat.c, lib/stdalign.in.h, lib/stdint.in.h, lib/string.in.h, lib/sys_stat.in.h, lib/sys_types.in.h, lib/tempname.c, lib/time.in.h, lib/unistd.in.h, lib/vasnprintf.c, lib/wchar.in.h, lib/wctype.in.h, lib/xalloc.h, lib/xalloc-oversized.h, m4/fcntl-o.m4, m4/float_h.m4, m4/getopt.m4, m4/gettimeofday.m4, m4/gnulib-common.m4, m4/gnulib-comp.m4, m4/include_next.m4, m4/largefile.m4, m4/lstat.m4, m4/mbrtowc.m4, m4/memchr.m4, m4/mkstemp.m4, m4/printf.m4, m4/sleep.m4, m4/stat.m4, m4/stdalign.m4, m4/stdint.m4, m4/strerror.m4, m4/string_h.m4, m4/sys_stat_h.m4, m4/sys_time_h.m4, m4/sys_types_h.m4, m4/time_h.m4, m4/unistd_h.m4, m4/wchar_h.m4, m4/wctype_h.m4, m4/wint_t.m4: Update.
This commit is contained in:
parent
aa8cf6ac92
commit
80d50c5665
81 changed files with 3458 additions and 1954 deletions
|
|
@ -113,12 +113,16 @@
|
|||
# define WEOF -1
|
||||
# endif
|
||||
#else
|
||||
/* mingw and MSVC define wint_t as 'unsigned short' in <crtdefs.h>.
|
||||
This is too small: ISO C 99 section 7.24.1.(2) says that wint_t must be
|
||||
"unchanged by default argument promotions". Override it. */
|
||||
/* mingw and MSVC define wint_t as 'unsigned short' in <crtdefs.h> or
|
||||
<stddef.h>. This is too small: ISO C 99 section 7.24.1.(2) says that
|
||||
wint_t must be "unchanged by default argument promotions". Override it. */
|
||||
# if @GNULIB_OVERRIDES_WINT_T@
|
||||
# if !GNULIB_defined_wint_t
|
||||
# include <crtdefs.h>
|
||||
# if @HAVE_CRTDEFS_H@
|
||||
# include <crtdefs.h>
|
||||
# else
|
||||
# include <stddef.h>
|
||||
# endif
|
||||
typedef unsigned int rpl_wint_t;
|
||||
# undef wint_t
|
||||
# define wint_t rpl_wint_t
|
||||
|
|
@ -1036,6 +1040,38 @@ _GL_WARN_ON_USE (wcswidth, "wcswidth is unportable - "
|
|||
#endif
|
||||
|
||||
|
||||
/* Convert *TP to a date and time wide string. See
|
||||
<http://pubs.opengroup.org/onlinepubs/9699919799/functions/wcsftime.html>. */
|
||||
#if @GNULIB_WCSFTIME@
|
||||
# if @REPLACE_WCSFTIME@
|
||||
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
|
||||
# undef wcsftime
|
||||
# define wcsftime rpl_wcsftime
|
||||
# endif
|
||||
_GL_FUNCDECL_RPL (wcsftime, size_t, (wchar_t *__buf, size_t __bufsize,
|
||||
const wchar_t *__fmt, const struct tm *__tp)
|
||||
_GL_ARG_NONNULL ((1, 3, 4)));
|
||||
_GL_CXXALIAS_RPL (wcsftime, size_t, (wchar_t *__buf, size_t __bufsize,
|
||||
const wchar_t *__fmt, const struct tm *__tp));
|
||||
# else
|
||||
# if !@HAVE_WCSFTIME@
|
||||
_GL_FUNCDECL_SYS (wcsftime, size_t, (wchar_t *__buf, size_t __bufsize,
|
||||
const wchar_t *__fmt, const struct tm *__tp)
|
||||
_GL_ARG_NONNULL ((1, 3, 4)));
|
||||
# endif
|
||||
_GL_CXXALIAS_SYS (wcsftime, size_t, (wchar_t *__buf, size_t __bufsize,
|
||||
const wchar_t *__fmt, const struct tm *__tp));
|
||||
# endif
|
||||
_GL_CXXALIASWARN (wcsftime);
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
# undef wcsftime
|
||||
# if HAVE_RAW_DECL_WCSFTIME
|
||||
_GL_WARN_ON_USE (wcsftime, "wcsftime is unportable - "
|
||||
"use gnulib module wcsftime for portability");
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* _@GUARD_PREFIX@_WCHAR_H */
|
||||
#endif /* _@GUARD_PREFIX@_WCHAR_H */
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue