mirror of
https://git.zap.org.au/git/trader.git
synced 2024-12-04 14:46:45 -05:00
Update all auto-generated files
These files have been created by running ./build-aux/bootstrap with Gnulib as at commit 99ce3a004a2974c71f510f5df5bc6be7e2811d30 (with a date stamp of Tue Jan 2 09:19:44 2024 -0800), Autoconf 2.71, Automake 1.16.5, Gettext 0.21 and pkgconf 1.8.1.
This commit is contained in:
parent
6498e1aed7
commit
f486eeff04
80
Makefile.in
80
Makefile.in
@ -17,12 +17,12 @@
|
||||
#########################################################################
|
||||
# #
|
||||
# Star Traders: A Game of Interstellar Trading #
|
||||
# Copyright (C) 1990-2022, John Zaitseff #
|
||||
# Copyright (C) 1990-2024, John Zaitseff #
|
||||
# #
|
||||
#########################################################################
|
||||
|
||||
# Author: John Zaitseff <J.Zaitseff@zap.org.au>
|
||||
# $Id: 7d56c2f130d0668fbcf3875eb7c726cb49ef52a6 $
|
||||
# $Id: 03ab756a159662f2f40309afc7fc0d05258744b9 $
|
||||
#
|
||||
# This file, Makefile.am, contains the top-level Makefile for Star
|
||||
# Traders. It needs to be processed by automake to produce the
|
||||
@ -119,14 +119,15 @@ subdir = .
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/00gnulib.m4 \
|
||||
$(top_srcdir)/m4/absolute-header.m4 $(top_srcdir)/m4/assert.m4 \
|
||||
$(top_srcdir)/m4/assert_h.m4 \
|
||||
$(top_srcdir)/m4/ax_c___attribute__.m4 \
|
||||
$(top_srcdir)/m4/ax_cflags_warn_all.m4 \
|
||||
$(top_srcdir)/m4/ax_compiler_vendor.m4 \
|
||||
$(top_srcdir)/m4/ax_prepend_flag.m4 \
|
||||
$(top_srcdir)/m4/ax_require_defined.m4 \
|
||||
$(top_srcdir)/m4/ax_with_curses.m4 $(top_srcdir)/m4/btowc.m4 \
|
||||
$(top_srcdir)/m4/codeset.m4 $(top_srcdir)/m4/config-h.m4 \
|
||||
$(top_srcdir)/m4/extensions.m4 \
|
||||
$(top_srcdir)/m4/c-bool.m4 $(top_srcdir)/m4/codeset.m4 \
|
||||
$(top_srcdir)/m4/config-h.m4 $(top_srcdir)/m4/extensions.m4 \
|
||||
$(top_srcdir)/m4/extern-inline.m4 $(top_srcdir)/m4/free.m4 \
|
||||
$(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/gettimeofday.m4 \
|
||||
$(top_srcdir)/m4/gnulib-common.m4 \
|
||||
@ -144,9 +145,9 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/00gnulib.m4 \
|
||||
$(top_srcdir)/m4/mbsrtowcs.m4 $(top_srcdir)/m4/mbstate_t.m4 \
|
||||
$(top_srcdir)/m4/mbtowc.m4 $(top_srcdir)/m4/memchr.m4 \
|
||||
$(top_srcdir)/m4/mmap-anon.m4 $(top_srcdir)/m4/monetary_h.m4 \
|
||||
$(top_srcdir)/m4/multiarch.m4 $(top_srcdir)/m4/nocrash.m4 \
|
||||
$(top_srcdir)/m4/off_t.m4 $(top_srcdir)/m4/setlocale_null.m4 \
|
||||
$(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/stdbool.m4 \
|
||||
$(top_srcdir)/m4/multiarch.m4 $(top_srcdir)/m4/musl.m4 \
|
||||
$(top_srcdir)/m4/nocrash.m4 $(top_srcdir)/m4/off_t.m4 \
|
||||
$(top_srcdir)/m4/setlocale_null.m4 $(top_srcdir)/m4/ssize_t.m4 \
|
||||
$(top_srcdir)/m4/stddef_h.m4 $(top_srcdir)/m4/stdint.m4 \
|
||||
$(top_srcdir)/m4/stdio_h.m4 $(top_srcdir)/m4/stdlib_h.m4 \
|
||||
$(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/sys_socket_h.m4 \
|
||||
@ -284,6 +285,7 @@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||
APPLE_UNIVERSAL_BUILD = @APPLE_UNIVERSAL_BUILD@
|
||||
AR = @AR@
|
||||
ARFLAGS = @ARFLAGS@
|
||||
ASSERT_H = @ASSERT_H@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
@ -395,6 +397,7 @@ GL_GNULIB_GETOPT_POSIX = @GL_GNULIB_GETOPT_POSIX@
|
||||
GL_GNULIB_GETPAGESIZE = @GL_GNULIB_GETPAGESIZE@
|
||||
GL_GNULIB_GETPASS = @GL_GNULIB_GETPASS@
|
||||
GL_GNULIB_GETPASS_GNU = @GL_GNULIB_GETPASS_GNU@
|
||||
GL_GNULIB_GETPROGNAME = @GL_GNULIB_GETPROGNAME@
|
||||
GL_GNULIB_GETSUBOPT = @GL_GNULIB_GETSUBOPT@
|
||||
GL_GNULIB_GETTIMEOFDAY = @GL_GNULIB_GETTIMEOFDAY@
|
||||
GL_GNULIB_GETUMASK = @GL_GNULIB_GETUMASK@
|
||||
@ -408,6 +411,7 @@ GL_GNULIB_ISATTY = @GL_GNULIB_ISATTY@
|
||||
GL_GNULIB_ISWBLANK = @GL_GNULIB_ISWBLANK@
|
||||
GL_GNULIB_ISWCTYPE = @GL_GNULIB_ISWCTYPE@
|
||||
GL_GNULIB_ISWDIGIT = @GL_GNULIB_ISWDIGIT@
|
||||
GL_GNULIB_ISWPUNCT = @GL_GNULIB_ISWPUNCT@
|
||||
GL_GNULIB_ISWXDIGIT = @GL_GNULIB_ISWXDIGIT@
|
||||
GL_GNULIB_LCHMOD = @GL_GNULIB_LCHMOD@
|
||||
GL_GNULIB_LCHOWN = @GL_GNULIB_LCHOWN@
|
||||
@ -439,6 +443,8 @@ GL_GNULIB_MBSSEP = @GL_GNULIB_MBSSEP@
|
||||
GL_GNULIB_MBSSPN = @GL_GNULIB_MBSSPN@
|
||||
GL_GNULIB_MBSSTR = @GL_GNULIB_MBSSTR@
|
||||
GL_GNULIB_MBSTOK_R = @GL_GNULIB_MBSTOK_R@
|
||||
GL_GNULIB_MBSTOWCS = @GL_GNULIB_MBSTOWCS@
|
||||
GL_GNULIB_MBSZERO = @GL_GNULIB_MBSZERO@
|
||||
GL_GNULIB_MBTOWC = @GL_GNULIB_MBTOWC@
|
||||
GL_GNULIB_MDA_ACCESS = @GL_GNULIB_MDA_ACCESS@
|
||||
GL_GNULIB_MDA_CHDIR = @GL_GNULIB_MDA_CHDIR@
|
||||
@ -483,6 +489,7 @@ GL_GNULIB_MEMCHR = @GL_GNULIB_MEMCHR@
|
||||
GL_GNULIB_MEMMEM = @GL_GNULIB_MEMMEM@
|
||||
GL_GNULIB_MEMPCPY = @GL_GNULIB_MEMPCPY@
|
||||
GL_GNULIB_MEMRCHR = @GL_GNULIB_MEMRCHR@
|
||||
GL_GNULIB_MEMSET_EXPLICIT = @GL_GNULIB_MEMSET_EXPLICIT@
|
||||
GL_GNULIB_MKDIR = @GL_GNULIB_MKDIR@
|
||||
GL_GNULIB_MKDIRAT = @GL_GNULIB_MKDIRAT@
|
||||
GL_GNULIB_MKDTEMP = @GL_GNULIB_MKDTEMP@
|
||||
@ -517,6 +524,7 @@ GL_GNULIB_PUTENV = @GL_GNULIB_PUTENV@
|
||||
GL_GNULIB_PUTS = @GL_GNULIB_PUTS@
|
||||
GL_GNULIB_PWRITE = @GL_GNULIB_PWRITE@
|
||||
GL_GNULIB_QSORT_R = @GL_GNULIB_QSORT_R@
|
||||
GL_GNULIB_RAND = @GL_GNULIB_RAND@
|
||||
GL_GNULIB_RANDOM = @GL_GNULIB_RANDOM@
|
||||
GL_GNULIB_RANDOM_R = @GL_GNULIB_RANDOM_R@
|
||||
GL_GNULIB_RAWMEMCHR = @GL_GNULIB_RAWMEMCHR@
|
||||
@ -577,6 +585,7 @@ GL_GNULIB_STRVERSCMP = @GL_GNULIB_STRVERSCMP@
|
||||
GL_GNULIB_SYMLINK = @GL_GNULIB_SYMLINK@
|
||||
GL_GNULIB_SYMLINKAT = @GL_GNULIB_SYMLINKAT@
|
||||
GL_GNULIB_SYSTEM_POSIX = @GL_GNULIB_SYSTEM_POSIX@
|
||||
GL_GNULIB_TIME = @GL_GNULIB_TIME@
|
||||
GL_GNULIB_TIMEGM = @GL_GNULIB_TIMEGM@
|
||||
GL_GNULIB_TIMESPEC_GET = @GL_GNULIB_TIMESPEC_GET@
|
||||
GL_GNULIB_TIMESPEC_GETRES = @GL_GNULIB_TIMESPEC_GETRES@
|
||||
@ -638,6 +647,7 @@ GL_GNULIB_WCTOMB = @GL_GNULIB_WCTOMB@
|
||||
GL_GNULIB_WCTRANS = @GL_GNULIB_WCTRANS@
|
||||
GL_GNULIB_WCTYPE = @GL_GNULIB_WCTYPE@
|
||||
GL_GNULIB_WCWIDTH = @GL_GNULIB_WCWIDTH@
|
||||
GL_GNULIB_WGETCWD = @GL_GNULIB_WGETCWD@
|
||||
GL_GNULIB_WMEMCHR = @GL_GNULIB_WMEMCHR@
|
||||
GL_GNULIB_WMEMCMP = @GL_GNULIB_WMEMCMP@
|
||||
GL_GNULIB_WMEMCPY = @GL_GNULIB_WMEMCPY@
|
||||
@ -649,8 +659,8 @@ GL_GNULIB__EXIT = @GL_GNULIB__EXIT@
|
||||
GMSGFMT = @GMSGFMT@
|
||||
GMSGFMT_015 = @GMSGFMT_015@
|
||||
GNULIBHEADERS_OVERRIDE_WINT_T = @GNULIBHEADERS_OVERRIDE_WINT_T@
|
||||
GNULIB_GETTIMEOFDAY = @GNULIB_GETTIMEOFDAY@
|
||||
GREP = @GREP@
|
||||
HARD_LOCALE_LIB = @HARD_LOCALE_LIB@
|
||||
HAVE_ALIGNED_ALLOC = @HAVE_ALIGNED_ALLOC@
|
||||
HAVE_ATOLL = @HAVE_ATOLL@
|
||||
HAVE_BTOWC = @HAVE_BTOWC@
|
||||
@ -678,6 +688,7 @@ HAVE_DECL_GETLOGIN = @HAVE_DECL_GETLOGIN@
|
||||
HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
|
||||
HAVE_DECL_GETPAGESIZE = @HAVE_DECL_GETPAGESIZE@
|
||||
HAVE_DECL_GETUSERSHELL = @HAVE_DECL_GETUSERSHELL@
|
||||
HAVE_DECL_GETW = @HAVE_DECL_GETW@
|
||||
HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
|
||||
HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
|
||||
HAVE_DECL_INITSTATE = @HAVE_DECL_INITSTATE@
|
||||
@ -685,6 +696,8 @@ HAVE_DECL_LOCALTIME_R = @HAVE_DECL_LOCALTIME_R@
|
||||
HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
|
||||
HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
|
||||
HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@
|
||||
HAVE_DECL_PROGRAM_INVOCATION_NAME = @HAVE_DECL_PROGRAM_INVOCATION_NAME@
|
||||
HAVE_DECL_PUTW = @HAVE_DECL_PUTW@
|
||||
HAVE_DECL_SETENV = @HAVE_DECL_SETENV@
|
||||
HAVE_DECL_SETHOSTNAME = @HAVE_DECL_SETHOSTNAME@
|
||||
HAVE_DECL_SETSTATE = @HAVE_DECL_SETSTATE@
|
||||
@ -733,11 +746,14 @@ HAVE_GETLOGIN = @HAVE_GETLOGIN@
|
||||
HAVE_GETOPT_H = @HAVE_GETOPT_H@
|
||||
HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@
|
||||
HAVE_GETPASS = @HAVE_GETPASS@
|
||||
HAVE_GETPROGNAME = @HAVE_GETPROGNAME@
|
||||
HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
|
||||
HAVE_GETTIMEOFDAY = @HAVE_GETTIMEOFDAY@
|
||||
HAVE_GETUMASK = @HAVE_GETUMASK@
|
||||
HAVE_GRANTPT = @HAVE_GRANTPT@
|
||||
HAVE_GROUP_MEMBER = @HAVE_GROUP_MEMBER@
|
||||
HAVE_IMAXABS = @HAVE_IMAXABS@
|
||||
HAVE_IMAXDIV = @HAVE_IMAXDIV@
|
||||
HAVE_IMAXDIV_T = @HAVE_IMAXDIV_T@
|
||||
HAVE_INITSTATE = @HAVE_INITSTATE@
|
||||
HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
|
||||
@ -757,6 +773,7 @@ HAVE_MBSNRTOWCS = @HAVE_MBSNRTOWCS@
|
||||
HAVE_MBSRTOWCS = @HAVE_MBSRTOWCS@
|
||||
HAVE_MBTOWC = @HAVE_MBTOWC@
|
||||
HAVE_MEMPCPY = @HAVE_MEMPCPY@
|
||||
HAVE_MEMSET_EXPLICIT = @HAVE_MEMSET_EXPLICIT@
|
||||
HAVE_MKDIRAT = @HAVE_MKDIRAT@
|
||||
HAVE_MKDTEMP = @HAVE_MKDTEMP@
|
||||
HAVE_MKFIFO = @HAVE_MKFIFO@
|
||||
@ -835,6 +852,7 @@ HAVE_TIMESPEC_GET = @HAVE_TIMESPEC_GET@
|
||||
HAVE_TIMESPEC_GETRES = @HAVE_TIMESPEC_GETRES@
|
||||
HAVE_TIMEZONE_T = @HAVE_TIMEZONE_T@
|
||||
HAVE_UNISTD_H = @HAVE_UNISTD_H@
|
||||
HAVE_UNISTRING_WOE32DLL_H = @HAVE_UNISTRING_WOE32DLL_H@
|
||||
HAVE_UNLINKAT = @HAVE_UNLINKAT@
|
||||
HAVE_UNLOCKPT = @HAVE_UNLOCKPT@
|
||||
HAVE_USLEEP = @HAVE_USLEEP@
|
||||
@ -883,7 +901,6 @@ HAVE_WMEMMOVE = @HAVE_WMEMMOVE@
|
||||
HAVE_WMEMPCPY = @HAVE_WMEMPCPY@
|
||||
HAVE_WMEMSET = @HAVE_WMEMSET@
|
||||
HAVE_XLOCALE_H = @HAVE_XLOCALE_H@
|
||||
HAVE__BOOL = @HAVE__BOOL@
|
||||
HAVE__EXIT = @HAVE__EXIT@
|
||||
ICONV_CONST = @ICONV_CONST@
|
||||
ICONV_H = @ICONV_H@
|
||||
@ -898,6 +915,10 @@ INT32_MAX_LT_INTMAX_MAX = @INT32_MAX_LT_INTMAX_MAX@
|
||||
INT64_MAX_EQ_LONG_MAX = @INT64_MAX_EQ_LONG_MAX@
|
||||
INTLLIBS = @INTLLIBS@
|
||||
INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
|
||||
LC_COLLATE_IMPLEMENTED = @LC_COLLATE_IMPLEMENTED@
|
||||
LC_MONETARY_IMPLEMENTED = @LC_MONETARY_IMPLEMENTED@
|
||||
LC_NUMERIC_IMPLEMENTED = @LC_NUMERIC_IMPLEMENTED@
|
||||
LC_TIME_IMPLEMENTED = @LC_TIME_IMPLEMENTED@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBGNU_LIBDEPS = @LIBGNU_LIBDEPS@
|
||||
LIBGNU_LTLIBDEPS = @LIBGNU_LTLIBDEPS@
|
||||
@ -925,11 +946,14 @@ LTLIBINTL = @LTLIBINTL@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
MAINT = @MAINT@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MBRTOWC_LIB = @MBRTOWC_LIB@
|
||||
MKDIR_P = @MKDIR_P@
|
||||
MONETARY_H = @MONETARY_H@
|
||||
MSGFMT = @MSGFMT@
|
||||
MSGMERGE = @MSGMERGE@
|
||||
MSGMERGE_FOR_MSGFMT_OPTION = @MSGMERGE_FOR_MSGFMT_OPTION@
|
||||
NEXT_ASSERT_H = @NEXT_ASSERT_H@
|
||||
NEXT_AS_FIRST_DIRECTIVE_ASSERT_H = @NEXT_AS_FIRST_DIRECTIVE_ASSERT_H@
|
||||
NEXT_AS_FIRST_DIRECTIVE_GETOPT_H = @NEXT_AS_FIRST_DIRECTIVE_GETOPT_H@
|
||||
NEXT_AS_FIRST_DIRECTIVE_ICONV_H = @NEXT_AS_FIRST_DIRECTIVE_ICONV_H@
|
||||
NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H = @NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H@
|
||||
@ -999,6 +1023,7 @@ REPLACE_CTIME = @REPLACE_CTIME@
|
||||
REPLACE_DPRINTF = @REPLACE_DPRINTF@
|
||||
REPLACE_DUP = @REPLACE_DUP@
|
||||
REPLACE_DUP2 = @REPLACE_DUP2@
|
||||
REPLACE_DUP3 = @REPLACE_DUP3@
|
||||
REPLACE_DUPLOCALE = @REPLACE_DUPLOCALE@
|
||||
REPLACE_EXECL = @REPLACE_EXECL@
|
||||
REPLACE_EXECLE = @REPLACE_EXECLE@
|
||||
@ -1008,9 +1033,11 @@ REPLACE_EXECVE = @REPLACE_EXECVE@
|
||||
REPLACE_EXECVP = @REPLACE_EXECVP@
|
||||
REPLACE_EXECVPE = @REPLACE_EXECVPE@
|
||||
REPLACE_FACCESSAT = @REPLACE_FACCESSAT@
|
||||
REPLACE_FCHDIR = @REPLACE_FCHDIR@
|
||||
REPLACE_FCHMODAT = @REPLACE_FCHMODAT@
|
||||
REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@
|
||||
REPLACE_FCLOSE = @REPLACE_FCLOSE@
|
||||
REPLACE_FDATASYNC = @REPLACE_FDATASYNC@
|
||||
REPLACE_FDOPEN = @REPLACE_FDOPEN@
|
||||
REPLACE_FFLUSH = @REPLACE_FFLUSH@
|
||||
REPLACE_FFSLL = @REPLACE_FFSLL@
|
||||
@ -1033,22 +1060,29 @@ REPLACE_GETCWD = @REPLACE_GETCWD@
|
||||
REPLACE_GETDELIM = @REPLACE_GETDELIM@
|
||||
REPLACE_GETDOMAINNAME = @REPLACE_GETDOMAINNAME@
|
||||
REPLACE_GETDTABLESIZE = @REPLACE_GETDTABLESIZE@
|
||||
REPLACE_GETENTROPY = @REPLACE_GETENTROPY@
|
||||
REPLACE_GETGROUPS = @REPLACE_GETGROUPS@
|
||||
REPLACE_GETLINE = @REPLACE_GETLINE@
|
||||
REPLACE_GETLOADAVG = @REPLACE_GETLOADAVG@
|
||||
REPLACE_GETLOGIN_R = @REPLACE_GETLOGIN_R@
|
||||
REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@
|
||||
REPLACE_GETPASS = @REPLACE_GETPASS@
|
||||
REPLACE_GETPASS_FOR_GETPASS_GNU = @REPLACE_GETPASS_FOR_GETPASS_GNU@
|
||||
REPLACE_GETPROGNAME = @REPLACE_GETPROGNAME@
|
||||
REPLACE_GETSUBOPT = @REPLACE_GETSUBOPT@
|
||||
REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
|
||||
REPLACE_GMTIME = @REPLACE_GMTIME@
|
||||
REPLACE_ICONV = @REPLACE_ICONV@
|
||||
REPLACE_ICONV_OPEN = @REPLACE_ICONV_OPEN@
|
||||
REPLACE_ICONV_UTF = @REPLACE_ICONV_UTF@
|
||||
REPLACE_IMAXABS = @REPLACE_IMAXABS@
|
||||
REPLACE_IMAXDIV = @REPLACE_IMAXDIV@
|
||||
REPLACE_INITSTATE = @REPLACE_INITSTATE@
|
||||
REPLACE_ISATTY = @REPLACE_ISATTY@
|
||||
REPLACE_ISWBLANK = @REPLACE_ISWBLANK@
|
||||
REPLACE_ISWCNTRL = @REPLACE_ISWCNTRL@
|
||||
REPLACE_ISWDIGIT = @REPLACE_ISWDIGIT@
|
||||
REPLACE_ISWPUNCT = @REPLACE_ISWPUNCT@
|
||||
REPLACE_ISWXDIGIT = @REPLACE_ISWXDIGIT@
|
||||
REPLACE_LCHOWN = @REPLACE_LCHOWN@
|
||||
REPLACE_LINK = @REPLACE_LINK@
|
||||
@ -1066,14 +1100,19 @@ REPLACE_MBSINIT = @REPLACE_MBSINIT@
|
||||
REPLACE_MBSNRTOWCS = @REPLACE_MBSNRTOWCS@
|
||||
REPLACE_MBSRTOWCS = @REPLACE_MBSRTOWCS@
|
||||
REPLACE_MBSTATE_T = @REPLACE_MBSTATE_T@
|
||||
REPLACE_MBSTOWCS = @REPLACE_MBSTOWCS@
|
||||
REPLACE_MBTOWC = @REPLACE_MBTOWC@
|
||||
REPLACE_MB_CUR_MAX = @REPLACE_MB_CUR_MAX@
|
||||
REPLACE_MEMCHR = @REPLACE_MEMCHR@
|
||||
REPLACE_MEMMEM = @REPLACE_MEMMEM@
|
||||
REPLACE_MEMPCPY = @REPLACE_MEMPCPY@
|
||||
REPLACE_MKDIR = @REPLACE_MKDIR@
|
||||
REPLACE_MKFIFO = @REPLACE_MKFIFO@
|
||||
REPLACE_MKFIFOAT = @REPLACE_MKFIFOAT@
|
||||
REPLACE_MKNOD = @REPLACE_MKNOD@
|
||||
REPLACE_MKNODAT = @REPLACE_MKNODAT@
|
||||
REPLACE_MKOSTEMP = @REPLACE_MKOSTEMP@
|
||||
REPLACE_MKOSTEMPS = @REPLACE_MKOSTEMPS@
|
||||
REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
|
||||
REPLACE_MKTIME = @REPLACE_MKTIME@
|
||||
REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@
|
||||
@ -1081,8 +1120,10 @@ REPLACE_NEWLOCALE = @REPLACE_NEWLOCALE@
|
||||
REPLACE_NULL = @REPLACE_NULL@
|
||||
REPLACE_OBSTACK_PRINTF = @REPLACE_OBSTACK_PRINTF@
|
||||
REPLACE_PERROR = @REPLACE_PERROR@
|
||||
REPLACE_PIPE2 = @REPLACE_PIPE2@
|
||||
REPLACE_POPEN = @REPLACE_POPEN@
|
||||
REPLACE_POSIX_MEMALIGN = @REPLACE_POSIX_MEMALIGN@
|
||||
REPLACE_POSIX_OPENPT = @REPLACE_POSIX_OPENPT@
|
||||
REPLACE_PREAD = @REPLACE_PREAD@
|
||||
REPLACE_PRINTF = @REPLACE_PRINTF@
|
||||
REPLACE_PTSNAME = @REPLACE_PTSNAME@
|
||||
@ -1090,6 +1131,7 @@ REPLACE_PTSNAME_R = @REPLACE_PTSNAME_R@
|
||||
REPLACE_PUTENV = @REPLACE_PUTENV@
|
||||
REPLACE_PWRITE = @REPLACE_PWRITE@
|
||||
REPLACE_QSORT_R = @REPLACE_QSORT_R@
|
||||
REPLACE_RAND = @REPLACE_RAND@
|
||||
REPLACE_RANDOM = @REPLACE_RANDOM@
|
||||
REPLACE_RANDOM_R = @REPLACE_RANDOM_R@
|
||||
REPLACE_READ = @REPLACE_READ@
|
||||
@ -1104,6 +1146,7 @@ REPLACE_RENAME = @REPLACE_RENAME@
|
||||
REPLACE_RENAMEAT = @REPLACE_RENAMEAT@
|
||||
REPLACE_RMDIR = @REPLACE_RMDIR@
|
||||
REPLACE_SETENV = @REPLACE_SETENV@
|
||||
REPLACE_SETHOSTNAME = @REPLACE_SETHOSTNAME@
|
||||
REPLACE_SETLOCALE = @REPLACE_SETLOCALE@
|
||||
REPLACE_SETSTATE = @REPLACE_SETSTATE@
|
||||
REPLACE_SLEEP = @REPLACE_SLEEP@
|
||||
@ -1112,6 +1155,7 @@ REPLACE_SPRINTF = @REPLACE_SPRINTF@
|
||||
REPLACE_STAT = @REPLACE_STAT@
|
||||
REPLACE_STDIO_READ_FUNCS = @REPLACE_STDIO_READ_FUNCS@
|
||||
REPLACE_STDIO_WRITE_FUNCS = @REPLACE_STDIO_WRITE_FUNCS@
|
||||
REPLACE_STPCPY = @REPLACE_STPCPY@
|
||||
REPLACE_STPNCPY = @REPLACE_STPNCPY@
|
||||
REPLACE_STRCASESTR = @REPLACE_STRCASESTR@
|
||||
REPLACE_STRCHRNUL = @REPLACE_STRCHRNUL@
|
||||
@ -1137,9 +1181,12 @@ REPLACE_STRTOULL = @REPLACE_STRTOULL@
|
||||
REPLACE_STRTOUMAX = @REPLACE_STRTOUMAX@
|
||||
REPLACE_STRUCT_LCONV = @REPLACE_STRUCT_LCONV@
|
||||
REPLACE_STRUCT_TIMEVAL = @REPLACE_STRUCT_TIMEVAL@
|
||||
REPLACE_STRVERSCMP = @REPLACE_STRVERSCMP@
|
||||
REPLACE_SYMLINK = @REPLACE_SYMLINK@
|
||||
REPLACE_SYMLINKAT = @REPLACE_SYMLINKAT@
|
||||
REPLACE_TIME = @REPLACE_TIME@
|
||||
REPLACE_TIMEGM = @REPLACE_TIMEGM@
|
||||
REPLACE_TIMESPEC_GET = @REPLACE_TIMESPEC_GET@
|
||||
REPLACE_TMPFILE = @REPLACE_TMPFILE@
|
||||
REPLACE_TOWLOWER = @REPLACE_TOWLOWER@
|
||||
REPLACE_TRUNCATE = @REPLACE_TRUNCATE@
|
||||
@ -1157,21 +1204,30 @@ REPLACE_VPRINTF = @REPLACE_VPRINTF@
|
||||
REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@
|
||||
REPLACE_VSPRINTF = @REPLACE_VSPRINTF@
|
||||
REPLACE_WCRTOMB = @REPLACE_WCRTOMB@
|
||||
REPLACE_WCSCMP = @REPLACE_WCSCMP@
|
||||
REPLACE_WCSFTIME = @REPLACE_WCSFTIME@
|
||||
REPLACE_WCSNCMP = @REPLACE_WCSNCMP@
|
||||
REPLACE_WCSNRTOMBS = @REPLACE_WCSNRTOMBS@
|
||||
REPLACE_WCSRTOMBS = @REPLACE_WCSRTOMBS@
|
||||
REPLACE_WCSSTR = @REPLACE_WCSSTR@
|
||||
REPLACE_WCSTOK = @REPLACE_WCSTOK@
|
||||
REPLACE_WCSWIDTH = @REPLACE_WCSWIDTH@
|
||||
REPLACE_WCTOB = @REPLACE_WCTOB@
|
||||
REPLACE_WCTOMB = @REPLACE_WCTOMB@
|
||||
REPLACE_WCTRANS = @REPLACE_WCTRANS@
|
||||
REPLACE_WCTYPE = @REPLACE_WCTYPE@
|
||||
REPLACE_WCWIDTH = @REPLACE_WCWIDTH@
|
||||
REPLACE_WMEMCMP = @REPLACE_WMEMCMP@
|
||||
REPLACE_WMEMPCPY = @REPLACE_WMEMPCPY@
|
||||
REPLACE_WRITE = @REPLACE_WRITE@
|
||||
REPLACE__EXIT = @REPLACE__EXIT@
|
||||
SCHED_YIELD_LIB = @SCHED_YIELD_LIB@
|
||||
SED = @SED@
|
||||
SETLOCALE_NULL_LIB = @SETLOCALE_NULL_LIB@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
|
||||
SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
|
||||
STDBOOL_H = @STDBOOL_H@
|
||||
STDDEF_H = @STDDEF_H@
|
||||
STDINT_H = @STDINT_H@
|
||||
STRIP = @STRIP@
|
||||
@ -1206,7 +1262,6 @@ am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
appdatadir = @appdatadir@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
@ -1242,6 +1297,7 @@ libexecdir = @libexecdir@
|
||||
localedir = @localedir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
metainfodir = @metainfodir@
|
||||
mkdir_p = @mkdir_p@
|
||||
oldincludedir = @oldincludedir@
|
||||
pdfdir = @pdfdir@
|
||||
@ -1264,8 +1320,8 @@ SUBDIRS = lib src po data doc m4
|
||||
# Additional files to distribute
|
||||
EXTRA_DIST = \
|
||||
build-aux/bootstrap \
|
||||
build-aux/msgfmt-appdata \
|
||||
build-aux/msgfmt-desktop \
|
||||
build-aux/msgfmt-metainfo \
|
||||
lib/obsolete-strings.c \
|
||||
lib/xopen-source.h
|
||||
|
||||
|
38
aclocal.m4
vendored
38
aclocal.m4
vendored
@ -506,8 +506,8 @@ AC_DEFUN([AM_NLS],
|
||||
AC_SUBST([USE_NLS])
|
||||
])
|
||||
|
||||
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
|
||||
# serial 11 (pkg-config-0.29.1)
|
||||
# pkg.m4 - Macros to locate and use pkg-config. -*- Autoconf -*-
|
||||
# serial 12 (pkg-config-0.29.2)
|
||||
|
||||
dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
|
||||
dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com>
|
||||
@ -549,7 +549,7 @@ dnl
|
||||
dnl See the "Since" comment for each macro you use to see what version
|
||||
dnl of the macros you require.
|
||||
m4_defun([PKG_PREREQ],
|
||||
[m4_define([PKG_MACROS_VERSION], [0.29.1])
|
||||
[m4_define([PKG_MACROS_VERSION], [0.29.2])
|
||||
m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1,
|
||||
[m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])])
|
||||
])dnl PKG_PREREQ
|
||||
@ -594,7 +594,7 @@ dnl Check to see whether a particular set of modules exists. Similar to
|
||||
dnl PKG_CHECK_MODULES(), but does not set variables or print errors.
|
||||
dnl
|
||||
dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
|
||||
dnl only at the first occurence in configure.ac, so if the first place
|
||||
dnl only at the first occurrence in configure.ac, so if the first place
|
||||
dnl it's called might be skipped (such as if it is within an "if", you
|
||||
dnl have to call PKG_CHECK_EXISTS manually
|
||||
AC_DEFUN([PKG_CHECK_EXISTS],
|
||||
@ -650,7 +650,7 @@ AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
|
||||
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
|
||||
|
||||
pkg_failed=no
|
||||
AC_MSG_CHECKING([for $1])
|
||||
AC_MSG_CHECKING([for $2])
|
||||
|
||||
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
|
||||
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
|
||||
@ -660,17 +660,17 @@ and $1[]_LIBS to avoid the need to call pkg-config.
|
||||
See the pkg-config man page for more details.])
|
||||
|
||||
if test $pkg_failed = yes; then
|
||||
AC_MSG_RESULT([no])
|
||||
AC_MSG_RESULT([no])
|
||||
_PKG_SHORT_ERRORS_SUPPORTED
|
||||
if test $_pkg_short_errors_supported = yes; then
|
||||
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
|
||||
else
|
||||
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
|
||||
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
|
||||
else
|
||||
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
|
||||
fi
|
||||
# Put the nasty error message in config.log where it belongs
|
||||
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
|
||||
# Put the nasty error message in config.log where it belongs
|
||||
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
|
||||
|
||||
m4_default([$4], [AC_MSG_ERROR(
|
||||
m4_default([$4], [AC_MSG_ERROR(
|
||||
[Package requirements ($2) were not met:
|
||||
|
||||
$$1_PKG_ERRORS
|
||||
@ -681,8 +681,8 @@ installed software in a non-standard prefix.
|
||||
_PKG_TEXT])[]dnl
|
||||
])
|
||||
elif test $pkg_failed = untried; then
|
||||
AC_MSG_RESULT([no])
|
||||
m4_default([$4], [AC_MSG_FAILURE(
|
||||
AC_MSG_RESULT([no])
|
||||
m4_default([$4], [AC_MSG_FAILURE(
|
||||
[The pkg-config script could not be found or is too old. Make sure it
|
||||
is in your PATH or set the PKG_CONFIG environment variable to the full
|
||||
path to pkg-config.
|
||||
@ -692,10 +692,10 @@ _PKG_TEXT
|
||||
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
|
||||
])
|
||||
else
|
||||
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
|
||||
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
|
||||
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
|
||||
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
|
||||
AC_MSG_RESULT([yes])
|
||||
$3
|
||||
$3
|
||||
fi[]dnl
|
||||
])dnl PKG_CHECK_MODULES
|
||||
|
||||
@ -2597,6 +2597,7 @@ AC_SUBST([am__untar])
|
||||
m4_include([m4/00gnulib.m4])
|
||||
m4_include([m4/absolute-header.m4])
|
||||
m4_include([m4/assert.m4])
|
||||
m4_include([m4/assert_h.m4])
|
||||
m4_include([m4/ax_c___attribute__.m4])
|
||||
m4_include([m4/ax_cflags_warn_all.m4])
|
||||
m4_include([m4/ax_compiler_vendor.m4])
|
||||
@ -2604,6 +2605,7 @@ m4_include([m4/ax_prepend_flag.m4])
|
||||
m4_include([m4/ax_require_defined.m4])
|
||||
m4_include([m4/ax_with_curses.m4])
|
||||
m4_include([m4/btowc.m4])
|
||||
m4_include([m4/c-bool.m4])
|
||||
m4_include([m4/codeset.m4])
|
||||
m4_include([m4/config-h.m4])
|
||||
m4_include([m4/extensions.m4])
|
||||
@ -2639,11 +2641,11 @@ m4_include([m4/memchr.m4])
|
||||
m4_include([m4/mmap-anon.m4])
|
||||
m4_include([m4/monetary_h.m4])
|
||||
m4_include([m4/multiarch.m4])
|
||||
m4_include([m4/musl.m4])
|
||||
m4_include([m4/nocrash.m4])
|
||||
m4_include([m4/off_t.m4])
|
||||
m4_include([m4/setlocale_null.m4])
|
||||
m4_include([m4/ssize_t.m4])
|
||||
m4_include([m4/stdbool.m4])
|
||||
m4_include([m4/stddef_h.m4])
|
||||
m4_include([m4/stdint.m4])
|
||||
m4_include([m4/stdio_h.m4])
|
||||
|
@ -2,7 +2,7 @@
|
||||
# Output a system dependent set of variables, describing how to set the
|
||||
# run time search path of shared libraries in an executable.
|
||||
#
|
||||
# Copyright 1996-2022 Free Software Foundation, Inc.
|
||||
# Copyright 1996-2024 Free Software Foundation, Inc.
|
||||
# Taken from GNU libtool, 2001
|
||||
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
|
||||
#
|
||||
|
474
config.h.in
474
config.h.in
@ -1,5 +1,9 @@
|
||||
/* config.h.in. Generated from configure.ac by autoheader. */
|
||||
|
||||
/* Witness that <config.h> has been included. */
|
||||
#define _GL_CONFIG_H_INCLUDED 1
|
||||
|
||||
|
||||
/* Define to the number of bits in type 'ptrdiff_t'. */
|
||||
#undef BITSIZEOF_PTRDIFF_T
|
||||
|
||||
@ -86,6 +90,9 @@
|
||||
/* Define to 1 when the gnulib module mbsrtowcs should be tested. */
|
||||
#undef GNULIB_TEST_MBSRTOWCS
|
||||
|
||||
/* Define to 1 when the gnulib module mbszero should be tested. */
|
||||
#undef GNULIB_TEST_MBSZERO
|
||||
|
||||
/* Define to 1 when the gnulib module mbtowc should be tested. */
|
||||
#undef GNULIB_TEST_MBTOWC
|
||||
|
||||
@ -171,6 +178,12 @@
|
||||
/* Define to 1 if library supports certain obsolete features */
|
||||
#undef HAVE_CURSES_OBSOLETE
|
||||
|
||||
/* Define to 1 if bool, true and false work as per C2023. */
|
||||
#undef HAVE_C_BOOL
|
||||
|
||||
/* Define to 1 if the static_assert keyword works. */
|
||||
#undef HAVE_C_STATIC_ASSERT
|
||||
|
||||
/* Define to 1 if C supports variable-length arrays. */
|
||||
#undef HAVE_C_VARARRAYS
|
||||
|
||||
@ -198,6 +211,10 @@
|
||||
*/
|
||||
#undef HAVE_DECL_GCVT
|
||||
|
||||
/* Define to 1 if you have the declaration of `getw', and to 0 if you don't.
|
||||
*/
|
||||
#undef HAVE_DECL_GETW
|
||||
|
||||
/* Define to 1 if you have the declaration of `mbrtowc', and to 0 if you
|
||||
don't. */
|
||||
#undef HAVE_DECL_MBRTOWC
|
||||
@ -210,6 +227,10 @@
|
||||
don't. */
|
||||
#undef HAVE_DECL_MBSRTOWCS
|
||||
|
||||
/* Define to 1 if you have the declaration of `putw', and to 0 if you don't.
|
||||
*/
|
||||
#undef HAVE_DECL_PUTW
|
||||
|
||||
/* Define to 1 if you have the declaration of `towlower', and to 0 if you
|
||||
don't. */
|
||||
#undef HAVE_DECL_TOWLOWER
|
||||
@ -328,6 +349,9 @@
|
||||
/* Define to 1 if 'wint_t' is a signed integer type. */
|
||||
#undef HAVE_SIGNED_WINT_T
|
||||
|
||||
/* Define to 1 if you have the <stdbool.h> header file. */
|
||||
#undef HAVE_STDBOOL_H
|
||||
|
||||
/* Define to 1 if you have the <stdint.h> header file. */
|
||||
#undef HAVE_STDINT_H
|
||||
|
||||
@ -376,6 +400,9 @@
|
||||
/* Define to 1 if you have the <unistd.h> header file. */
|
||||
#undef HAVE_UNISTD_H
|
||||
|
||||
/* Define to 1 if you have the <unistring/woe32dll.h> header file. */
|
||||
#undef HAVE_UNISTRING_WOE32DLL_H
|
||||
|
||||
/* Define to 1 if the system has the type 'unsigned long long int'. */
|
||||
#undef HAVE_UNSIGNED_LONG_LONG_INT
|
||||
|
||||
@ -411,9 +438,6 @@
|
||||
/* Define to 1 if you have the <xlocale.h> header file. */
|
||||
#undef HAVE_XLOCALE_H
|
||||
|
||||
/* Define to 1 if the system has the type `_Bool'. */
|
||||
#undef HAVE__BOOL
|
||||
|
||||
/* define if your compiler has __attribute__ */
|
||||
#undef HAVE___ATTRIBUTE__
|
||||
|
||||
@ -476,7 +500,8 @@
|
||||
# define _GL_EXTERN_INLINE_STDHEADER_BUG
|
||||
#endif
|
||||
#if ((__GNUC__ \
|
||||
? defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__ \
|
||||
? (defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__ \
|
||||
&& !defined __PCC__) \
|
||||
: (199901L <= __STDC_VERSION__ \
|
||||
&& !defined __HP_cc \
|
||||
&& !defined __PGI \
|
||||
@ -486,6 +511,7 @@
|
||||
# define _GL_EXTERN_INLINE extern inline
|
||||
# define _GL_EXTERN_INLINE_IN_USE
|
||||
#elif (2 < __GNUC__ + (7 <= __GNUC_MINOR__) && !defined __STRICT_ANSI__ \
|
||||
&& !defined __PCC__ \
|
||||
&& !defined _GL_EXTERN_INLINE_STDHEADER_BUG)
|
||||
# if defined __GNUC_GNU_INLINE__ && __GNUC_GNU_INLINE__
|
||||
/* __gnu_inline__ suppresses a GCC 4.2 diagnostic. */
|
||||
@ -568,6 +594,9 @@
|
||||
#endif
|
||||
|
||||
|
||||
/* Define to 1 on musl libc. */
|
||||
#undef MUSL_LIBC
|
||||
|
||||
/* Define to 1 if assertions should be disabled. */
|
||||
#undef NDEBUG
|
||||
|
||||
@ -685,11 +714,15 @@
|
||||
#ifndef __STDC_WANT_IEC_60559_DFP_EXT__
|
||||
# undef __STDC_WANT_IEC_60559_DFP_EXT__
|
||||
#endif
|
||||
/* Enable extensions specified by C23 Annex F. */
|
||||
#ifndef __STDC_WANT_IEC_60559_EXT__
|
||||
# undef __STDC_WANT_IEC_60559_EXT__
|
||||
#endif
|
||||
/* Enable extensions specified by ISO/IEC TS 18661-4:2015. */
|
||||
#ifndef __STDC_WANT_IEC_60559_FUNCS_EXT__
|
||||
# undef __STDC_WANT_IEC_60559_FUNCS_EXT__
|
||||
#endif
|
||||
/* Enable extensions specified by ISO/IEC TS 18661-3:2015. */
|
||||
/* Enable extensions specified by C23 Annex H and ISO/IEC TS 18661-3:2015. */
|
||||
#ifndef __STDC_WANT_IEC_60559_TYPES_EXT__
|
||||
# undef __STDC_WANT_IEC_60559_TYPES_EXT__
|
||||
#endif
|
||||
@ -757,6 +790,11 @@
|
||||
AIX system header files and several gnulib header files use precisely
|
||||
this syntax with 'extern'. */
|
||||
# define _Noreturn [[noreturn]]
|
||||
# elif (defined __clang__ && __clang_major__ < 16 \
|
||||
&& defined _GL_WORK_AROUND_LLVM_BUG_59792)
|
||||
/* Compile with -D_GL_WORK_AROUND_LLVM_BUG_59792 to work around
|
||||
that rare LLVM bug, though you may get many false-alarm warnings. */
|
||||
# define _Noreturn
|
||||
# elif ((!defined __cplusplus || defined __clang__) \
|
||||
&& (201112 <= (defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) \
|
||||
|| (!defined __STRICT_ANSI__ \
|
||||
@ -824,7 +862,7 @@
|
||||
&& (!defined __clang_minor__ \
|
||||
|| (defined __apple_build_version__ \
|
||||
? 6000000 <= __apple_build_version__ \
|
||||
: 3 < __clang_major__ + (5 <= __clang_minor__))))
|
||||
: 5 <= __clang_major__)))
|
||||
# define _GL_HAS_ATTRIBUTE(attr) __has_attribute (__##attr##__)
|
||||
#else
|
||||
# define _GL_HAS_ATTRIBUTE(attr) _GL_ATTR_##attr
|
||||
@ -858,16 +896,30 @@
|
||||
# define _GL_ATTR_warn_unused_result _GL_GNUC_PREREQ (3, 4)
|
||||
#endif
|
||||
|
||||
#ifdef __has_c_attribute
|
||||
# if ((defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) <= 201710 \
|
||||
&& _GL_GNUC_PREREQ (4, 6))
|
||||
# pragma GCC diagnostic ignored "-Wpedantic"
|
||||
# endif
|
||||
# define _GL_HAS_C_ATTRIBUTE(attr) __has_c_attribute (__##attr##__)
|
||||
/* Use __has_c_attribute if available. However, do not use with
|
||||
pre-C23 GCC, which can issue false positives if -Wpedantic. */
|
||||
#if (defined __has_c_attribute \
|
||||
&& ! (_GL_GNUC_PREREQ (4, 6) \
|
||||
&& (defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) <= 201710))
|
||||
# define _GL_HAVE___HAS_C_ATTRIBUTE 1
|
||||
#else
|
||||
# define _GL_HAS_C_ATTRIBUTE(attr) 0
|
||||
# define _GL_HAVE___HAS_C_ATTRIBUTE 0
|
||||
#endif
|
||||
|
||||
/* Define if, in a function declaration, the attributes in bracket syntax
|
||||
[[...]] must come before the attributes in __attribute__((...)) syntax.
|
||||
If this is defined, it is best to avoid the bracket syntax, so that the
|
||||
various _GL_ATTRIBUTE_* can be cumulated on the same declaration in any
|
||||
order. */
|
||||
#ifdef __cplusplus
|
||||
# if defined __clang__
|
||||
# define _GL_BRACKET_BEFORE_ATTRIBUTE 1
|
||||
# endif
|
||||
#else
|
||||
# if defined __GNUC__ && !defined __clang__
|
||||
# define _GL_BRACKET_BEFORE_ATTRIBUTE 1
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* _GL_ATTRIBUTE_ALLOC_SIZE ((N)) declares that the Nth argument of the function
|
||||
is the size of the returned memory block.
|
||||
@ -875,29 +927,35 @@
|
||||
by the Nth argument of the function is the size of the returned memory block.
|
||||
*/
|
||||
/* Applies to: function, pointer to function, function types. */
|
||||
#if _GL_HAS_ATTRIBUTE (alloc_size)
|
||||
# define _GL_ATTRIBUTE_ALLOC_SIZE(args) __attribute__ ((__alloc_size__ args))
|
||||
#else
|
||||
# define _GL_ATTRIBUTE_ALLOC_SIZE(args)
|
||||
#ifndef _GL_ATTRIBUTE_ALLOC_SIZE
|
||||
# if _GL_HAS_ATTRIBUTE (alloc_size)
|
||||
# define _GL_ATTRIBUTE_ALLOC_SIZE(args) __attribute__ ((__alloc_size__ args))
|
||||
# else
|
||||
# define _GL_ATTRIBUTE_ALLOC_SIZE(args)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* _GL_ATTRIBUTE_ALWAYS_INLINE tells that the compiler should always inline the
|
||||
function and report an error if it cannot do so. */
|
||||
/* Applies to: function. */
|
||||
#if _GL_HAS_ATTRIBUTE (always_inline)
|
||||
# define _GL_ATTRIBUTE_ALWAYS_INLINE __attribute__ ((__always_inline__))
|
||||
#else
|
||||
# define _GL_ATTRIBUTE_ALWAYS_INLINE
|
||||
#ifndef _GL_ATTRIBUTE_ALWAYS_INLINE
|
||||
# if _GL_HAS_ATTRIBUTE (always_inline)
|
||||
# define _GL_ATTRIBUTE_ALWAYS_INLINE __attribute__ ((__always_inline__))
|
||||
# else
|
||||
# define _GL_ATTRIBUTE_ALWAYS_INLINE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* _GL_ATTRIBUTE_ARTIFICIAL declares that the function is not important to show
|
||||
in stack traces when debugging. The compiler should omit the function from
|
||||
stack traces. */
|
||||
/* Applies to: function. */
|
||||
#if _GL_HAS_ATTRIBUTE (artificial)
|
||||
# define _GL_ATTRIBUTE_ARTIFICIAL __attribute__ ((__artificial__))
|
||||
#else
|
||||
# define _GL_ATTRIBUTE_ARTIFICIAL
|
||||
#ifndef _GL_ATTRIBUTE_ARTIFICIAL
|
||||
# if _GL_HAS_ATTRIBUTE (artificial)
|
||||
# define _GL_ATTRIBUTE_ARTIFICIAL __attribute__ ((__artificial__))
|
||||
# else
|
||||
# define _GL_ATTRIBUTE_ARTIFICIAL
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* _GL_ATTRIBUTE_COLD declares that the function is rarely executed. */
|
||||
@ -905,14 +963,16 @@
|
||||
/* Avoid __attribute__ ((cold)) on MinGW; see thread starting at
|
||||
<https://lists.gnu.org/r/emacs-devel/2019-04/msg01152.html>.
|
||||
Also, Oracle Studio 12.6 requires 'cold' not '__cold__'. */
|
||||
#if _GL_HAS_ATTRIBUTE (cold) && !defined __MINGW32__
|
||||
# ifndef __SUNPRO_C
|
||||
# define _GL_ATTRIBUTE_COLD __attribute__ ((__cold__))
|
||||
#ifndef _GL_ATTRIBUTE_COLD
|
||||
# if _GL_HAS_ATTRIBUTE (cold) && !defined __MINGW32__
|
||||
# ifndef __SUNPRO_C
|
||||
# define _GL_ATTRIBUTE_COLD __attribute__ ((__cold__))
|
||||
# else
|
||||
# define _GL_ATTRIBUTE_COLD __attribute__ ((cold))
|
||||
# endif
|
||||
# else
|
||||
# define _GL_ATTRIBUTE_COLD __attribute__ ((cold))
|
||||
# define _GL_ATTRIBUTE_COLD
|
||||
# endif
|
||||
#else
|
||||
# define _GL_ATTRIBUTE_COLD
|
||||
#endif
|
||||
|
||||
/* _GL_ATTRIBUTE_CONST declares that it is OK for a compiler to omit duplicate
|
||||
@ -922,10 +982,12 @@
|
||||
forever, and does not call longjmp.
|
||||
(This attribute is stricter than _GL_ATTRIBUTE_PURE.) */
|
||||
/* Applies to: functions. */
|
||||
#if _GL_HAS_ATTRIBUTE (const)
|
||||
# define _GL_ATTRIBUTE_CONST __attribute__ ((__const__))
|
||||
#else
|
||||
# define _GL_ATTRIBUTE_CONST
|
||||
#ifndef _GL_ATTRIBUTE_CONST
|
||||
# if _GL_HAS_ATTRIBUTE (const)
|
||||
# define _GL_ATTRIBUTE_CONST __attribute__ ((__const__))
|
||||
# else
|
||||
# define _GL_ATTRIBUTE_CONST
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* _GL_ATTRIBUTE_DEALLOC (F, I) declares that the function returns pointers
|
||||
@ -934,16 +996,25 @@
|
||||
_GL_ATTRIBUTE_DEALLOC_FREE declares that the function returns pointers that
|
||||
can be freed via 'free'; it can be used only after declaring 'free'. */
|
||||
/* Applies to: functions. Cannot be used on inline functions. */
|
||||
#if _GL_GNUC_PREREQ (11, 0)
|
||||
# define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f, i)))
|
||||
#else
|
||||
# define _GL_ATTRIBUTE_DEALLOC(f, i)
|
||||
#ifndef _GL_ATTRIBUTE_DEALLOC
|
||||
# if _GL_GNUC_PREREQ (11, 0)
|
||||
# define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f, i)))
|
||||
# else
|
||||
# define _GL_ATTRIBUTE_DEALLOC(f, i)
|
||||
# endif
|
||||
#endif
|
||||
/* If gnulib's <string.h> or <wchar.h> has already defined this macro, continue
|
||||
to use this earlier definition, since <stdlib.h> may not have been included
|
||||
yet. */
|
||||
#ifndef _GL_ATTRIBUTE_DEALLOC_FREE
|
||||
# define _GL_ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_DEALLOC (free, 1)
|
||||
# if defined __cplusplus && defined __GNUC__ && !defined __clang__
|
||||
/* Work around GCC bug <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108231> */
|
||||
# define _GL_ATTRIBUTE_DEALLOC_FREE \
|
||||
_GL_ATTRIBUTE_DEALLOC ((void (*) (void *)) free, 1)
|
||||
# else
|
||||
# define _GL_ATTRIBUTE_DEALLOC_FREE \
|
||||
_GL_ATTRIBUTE_DEALLOC (free, 1)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* _GL_ATTRIBUTE_DEPRECATED: Declares that an entity is deprecated.
|
||||
@ -954,12 +1025,20 @@
|
||||
- enumeration, enumeration item,
|
||||
- typedef,
|
||||
in C++ also: namespace, class, template specialization. */
|
||||
#if _GL_HAS_C_ATTRIBUTE (deprecated)
|
||||
# define _GL_ATTRIBUTE_DEPRECATED [[__deprecated__]]
|
||||
#elif _GL_HAS_ATTRIBUTE (deprecated)
|
||||
# define _GL_ATTRIBUTE_DEPRECATED __attribute__ ((__deprecated__))
|
||||
#else
|
||||
# define _GL_ATTRIBUTE_DEPRECATED
|
||||
#ifndef _GL_ATTRIBUTE_DEPRECATED
|
||||
# ifndef _GL_BRACKET_BEFORE_ATTRIBUTE
|
||||
# if _GL_HAVE___HAS_C_ATTRIBUTE
|
||||
# if __has_c_attribute (__deprecated__)
|
||||
# define _GL_ATTRIBUTE_DEPRECATED [[__deprecated__]]
|
||||
# endif
|
||||
# endif
|
||||
# endif
|
||||
# if !defined _GL_ATTRIBUTE_DEPRECATED && _GL_HAS_ATTRIBUTE (deprecated)
|
||||
# define _GL_ATTRIBUTE_DEPRECATED __attribute__ ((__deprecated__))
|
||||
# endif
|
||||
# ifndef _GL_ATTRIBUTE_DEPRECATED
|
||||
# define _GL_ATTRIBUTE_DEPRECATED
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* _GL_ATTRIBUTE_ERROR(msg) requests an error if a function is called and
|
||||
@ -967,24 +1046,28 @@
|
||||
_GL_ATTRIBUTE_WARNING(msg) requests a warning if a function is called and
|
||||
the function call is not optimized away. */
|
||||
/* Applies to: functions. */
|
||||
#if _GL_HAS_ATTRIBUTE (error)
|
||||
# define _GL_ATTRIBUTE_ERROR(msg) __attribute__ ((__error__ (msg)))
|
||||
# define _GL_ATTRIBUTE_WARNING(msg) __attribute__ ((__warning__ (msg)))
|
||||
#elif _GL_HAS_ATTRIBUTE (diagnose_if)
|
||||
# define _GL_ATTRIBUTE_ERROR(msg) __attribute__ ((__diagnose_if__ (1, msg, "error")))
|
||||
# define _GL_ATTRIBUTE_WARNING(msg) __attribute__ ((__diagnose_if__ (1, msg, "warning")))
|
||||
#else
|
||||
# define _GL_ATTRIBUTE_ERROR(msg)
|
||||
# define _GL_ATTRIBUTE_WARNING(msg)
|
||||
#if !(defined _GL_ATTRIBUTE_ERROR && defined _GL_ATTRIBUTE_WARNING)
|
||||
# if _GL_HAS_ATTRIBUTE (error)
|
||||
# define _GL_ATTRIBUTE_ERROR(msg) __attribute__ ((__error__ (msg)))
|
||||
# define _GL_ATTRIBUTE_WARNING(msg) __attribute__ ((__warning__ (msg)))
|
||||
# elif _GL_HAS_ATTRIBUTE (diagnose_if)
|
||||
# define _GL_ATTRIBUTE_ERROR(msg) __attribute__ ((__diagnose_if__ (1, msg, "error")))
|
||||
# define _GL_ATTRIBUTE_WARNING(msg) __attribute__ ((__diagnose_if__ (1, msg, "warning")))
|
||||
# else
|
||||
# define _GL_ATTRIBUTE_ERROR(msg)
|
||||
# define _GL_ATTRIBUTE_WARNING(msg)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* _GL_ATTRIBUTE_EXTERNALLY_VISIBLE declares that the entity should remain
|
||||
visible to debuggers etc., even with '-fwhole-program'. */
|
||||
/* Applies to: functions, variables. */
|
||||
#if _GL_HAS_ATTRIBUTE (externally_visible)
|
||||
# define _GL_ATTRIBUTE_EXTERNALLY_VISIBLE __attribute__ ((externally_visible))
|
||||
#else
|
||||
# define _GL_ATTRIBUTE_EXTERNALLY_VISIBLE
|
||||
#ifndef _GL_ATTRIBUTE_EXTERNALLY_VISIBLE
|
||||
# if _GL_HAS_ATTRIBUTE (externally_visible)
|
||||
# define _GL_ATTRIBUTE_EXTERNALLY_VISIBLE __attribute__ ((externally_visible))
|
||||
# else
|
||||
# define _GL_ATTRIBUTE_EXTERNALLY_VISIBLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* _GL_ATTRIBUTE_FALLTHROUGH declares that it is not a programming mistake if
|
||||
@ -992,12 +1075,18 @@
|
||||
'default' label. The compiler should not warn in this case. */
|
||||
/* Applies to: Empty statement (;), inside a 'switch' statement. */
|
||||
/* Always expands to something. */
|
||||
#if _GL_HAS_C_ATTRIBUTE (fallthrough)
|
||||
# define _GL_ATTRIBUTE_FALLTHROUGH [[__fallthrough__]]
|
||||
#elif _GL_HAS_ATTRIBUTE (fallthrough)
|
||||
# define _GL_ATTRIBUTE_FALLTHROUGH __attribute__ ((__fallthrough__))
|
||||
#else
|
||||
# define _GL_ATTRIBUTE_FALLTHROUGH ((void) 0)
|
||||
#ifndef _GL_ATTRIBUTE_FALLTHROUGH
|
||||
# if _GL_HAVE___HAS_C_ATTRIBUTE
|
||||
# if __has_c_attribute (__fallthrough__)
|
||||
# define _GL_ATTRIBUTE_FALLTHROUGH [[__fallthrough__]]
|
||||
# endif
|
||||
# endif
|
||||
# if !defined _GL_ATTRIBUTE_FALLTHROUGH && _GL_HAS_ATTRIBUTE (fallthrough)
|
||||
# define _GL_ATTRIBUTE_FALLTHROUGH __attribute__ ((__fallthrough__))
|
||||
# endif
|
||||
# ifndef _GL_ATTRIBUTE_FALLTHROUGH
|
||||
# define _GL_ATTRIBUTE_FALLTHROUGH ((void) 0)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* _GL_ATTRIBUTE_FORMAT ((ARCHETYPE, STRING-INDEX, FIRST-TO-CHECK))
|
||||
@ -1011,10 +1100,12 @@
|
||||
If FIRST-TO-CHECK is not 0, arguments starting at FIRST-TO_CHECK
|
||||
are suitable for the format string. */
|
||||
/* Applies to: functions. */
|
||||
#if _GL_HAS_ATTRIBUTE (format)
|
||||
# define _GL_ATTRIBUTE_FORMAT(spec) __attribute__ ((__format__ spec))
|
||||
#else
|
||||
# define _GL_ATTRIBUTE_FORMAT(spec)
|
||||
#ifndef _GL_ATTRIBUTE_FORMAT
|
||||
# if _GL_HAS_ATTRIBUTE (format)
|
||||
# define _GL_ATTRIBUTE_FORMAT(spec) __attribute__ ((__format__ spec))
|
||||
# else
|
||||
# define _GL_ATTRIBUTE_FORMAT(spec)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* _GL_ATTRIBUTE_LEAF declares that if the function is called from some other
|
||||
@ -1022,19 +1113,23 @@
|
||||
exception handling. This declaration lets the compiler optimize that unit
|
||||
more aggressively. */
|
||||
/* Applies to: functions. */
|
||||
#if _GL_HAS_ATTRIBUTE (leaf)
|
||||
# define _GL_ATTRIBUTE_LEAF __attribute__ ((__leaf__))
|
||||
#else
|
||||
# define _GL_ATTRIBUTE_LEAF
|
||||
#ifndef _GL_ATTRIBUTE_LEAF
|
||||
# if _GL_HAS_ATTRIBUTE (leaf)
|
||||
# define _GL_ATTRIBUTE_LEAF __attribute__ ((__leaf__))
|
||||
# else
|
||||
# define _GL_ATTRIBUTE_LEAF
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* _GL_ATTRIBUTE_MALLOC declares that the function returns a pointer to freshly
|
||||
allocated memory. */
|
||||
/* Applies to: functions. */
|
||||
#if _GL_HAS_ATTRIBUTE (malloc)
|
||||
# define _GL_ATTRIBUTE_MALLOC __attribute__ ((__malloc__))
|
||||
#else
|
||||
# define _GL_ATTRIBUTE_MALLOC
|
||||
#ifndef _GL_ATTRIBUTE_MALLOC
|
||||
# if _GL_HAS_ATTRIBUTE (malloc)
|
||||
# define _GL_ATTRIBUTE_MALLOC __attribute__ ((__malloc__))
|
||||
# else
|
||||
# define _GL_ATTRIBUTE_MALLOC
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* _GL_ATTRIBUTE_MAY_ALIAS declares that pointers to the type may point to the
|
||||
@ -1042,10 +1137,12 @@
|
||||
strict aliasing optimization. */
|
||||
/* Applies to: types. */
|
||||
/* Oracle Studio 12.6 mishandles may_alias despite __has_attribute OK. */
|
||||
#if _GL_HAS_ATTRIBUTE (may_alias) && !defined __SUNPRO_C
|
||||
# define _GL_ATTRIBUTE_MAY_ALIAS __attribute__ ((__may_alias__))
|
||||
#else
|
||||
# define _GL_ATTRIBUTE_MAY_ALIAS
|
||||
#ifndef _GL_ATTRIBUTE_MAY_ALIAS
|
||||
# if _GL_HAS_ATTRIBUTE (may_alias) && !defined __SUNPRO_C
|
||||
# define _GL_ATTRIBUTE_MAY_ALIAS __attribute__ ((__may_alias__))
|
||||
# else
|
||||
# define _GL_ATTRIBUTE_MAY_ALIAS
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* _GL_ATTRIBUTE_MAYBE_UNUSED declares that it is not a programming mistake if
|
||||
@ -1057,15 +1154,29 @@
|
||||
- enumeration, enumeration item,
|
||||
- typedef,
|
||||
in C++ also: class. */
|
||||
/* In C++ and C2x, this is spelled [[__maybe_unused__]].
|
||||
/* In C++ and C23, this is spelled [[__maybe_unused__]].
|
||||
GCC's syntax is __attribute__ ((__unused__)).
|
||||
clang supports both syntaxes. */
|
||||
#if _GL_HAS_C_ATTRIBUTE (maybe_unused)
|
||||
# define _GL_ATTRIBUTE_MAYBE_UNUSED [[__maybe_unused__]]
|
||||
#else
|
||||
# define _GL_ATTRIBUTE_MAYBE_UNUSED _GL_ATTRIBUTE_UNUSED
|
||||
clang supports both syntaxes. Except that with clang ≥ 6, < 10, in C++ mode,
|
||||
__has_c_attribute (__maybe_unused__) yields true but the use of
|
||||
[[__maybe_unused__]] nevertheless produces a warning. */
|
||||
#ifndef _GL_ATTRIBUTE_MAYBE_UNUSED
|
||||
# ifndef _GL_BRACKET_BEFORE_ATTRIBUTE
|
||||
# if defined __clang__ && defined __cplusplus
|
||||
# if !defined __apple_build_version__ && __clang_major__ >= 10
|
||||
# define _GL_ATTRIBUTE_MAYBE_UNUSED [[__maybe_unused__]]
|
||||
# endif
|
||||
# elif _GL_HAVE___HAS_C_ATTRIBUTE
|
||||
# if __has_c_attribute (__maybe_unused__)
|
||||
# define _GL_ATTRIBUTE_MAYBE_UNUSED [[__maybe_unused__]]
|
||||
# endif
|
||||
# endif
|
||||
# endif
|
||||
# ifndef _GL_ATTRIBUTE_MAYBE_UNUSED
|
||||
# define _GL_ATTRIBUTE_MAYBE_UNUSED _GL_ATTRIBUTE_UNUSED
|
||||
# endif
|
||||
#endif
|
||||
/* Alternative spelling of this macro, for convenience. */
|
||||
/* Alternative spelling of this macro, for convenience and for
|
||||
compatibility with glibc/include/libc-symbols.h. */
|
||||
#define _GL_UNUSED _GL_ATTRIBUTE_MAYBE_UNUSED
|
||||
/* Earlier spellings of this macro. */
|
||||
#define _UNUSED_PARAMETER_ _GL_ATTRIBUTE_MAYBE_UNUSED
|
||||
@ -1074,21 +1185,40 @@
|
||||
discard the return value. The compiler may warn if the caller does not use
|
||||
the return value, unless the caller uses something like ignore_value. */
|
||||
/* Applies to: function, enumeration, class. */
|
||||
#if _GL_HAS_C_ATTRIBUTE (nodiscard)
|
||||
# define _GL_ATTRIBUTE_NODISCARD [[__nodiscard__]]
|
||||
#elif _GL_HAS_ATTRIBUTE (warn_unused_result)
|
||||
# define _GL_ATTRIBUTE_NODISCARD __attribute__ ((__warn_unused_result__))
|
||||
#else
|
||||
# define _GL_ATTRIBUTE_NODISCARD
|
||||
#ifndef _GL_ATTRIBUTE_NODISCARD
|
||||
# ifndef _GL_BRACKET_BEFORE_ATTRIBUTE
|
||||
# if defined __clang__ && defined __cplusplus
|
||||
/* With clang up to 15.0.6 (at least), in C++ mode, [[__nodiscard__]] produces
|
||||
a warning.
|
||||
The 1000 below means a yet unknown threshold. When clang++ version X
|
||||
starts supporting [[__nodiscard__]] without warning about it, you can
|
||||
replace the 1000 with X. */
|
||||
# if __clang_major__ >= 1000
|
||||
# define _GL_ATTRIBUTE_NODISCARD [[__nodiscard__]]
|
||||
# endif
|
||||
# elif _GL_HAVE___HAS_C_ATTRIBUTE
|
||||
# if __has_c_attribute (__nodiscard__)
|
||||
# define _GL_ATTRIBUTE_NODISCARD [[__nodiscard__]]
|
||||
# endif
|
||||
# endif
|
||||
# endif
|
||||
# if !defined _GL_ATTRIBUTE_NODISCARD && _GL_HAS_ATTRIBUTE (warn_unused_result)
|
||||
# define _GL_ATTRIBUTE_NODISCARD __attribute__ ((__warn_unused_result__))
|
||||
# endif
|
||||
# ifndef _GL_ATTRIBUTE_NODISCARD
|
||||
# define _GL_ATTRIBUTE_NODISCARD
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* _GL_ATTRIBUTE_NOINLINE tells that the compiler should not inline the
|
||||
function. */
|
||||
/* Applies to: functions. */
|
||||
#if _GL_HAS_ATTRIBUTE (noinline)
|
||||
# define _GL_ATTRIBUTE_NOINLINE __attribute__ ((__noinline__))
|
||||
#else
|
||||
# define _GL_ATTRIBUTE_NOINLINE
|
||||
#ifndef _GL_ATTRIBUTE_NOINLINE
|
||||
# if _GL_HAS_ATTRIBUTE (noinline)
|
||||
# define _GL_ATTRIBUTE_NOINLINE __attribute__ ((__noinline__))
|
||||
# else
|
||||
# define _GL_ATTRIBUTE_NOINLINE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* _GL_ATTRIBUTE_NONNULL ((N1, N2,...)) declares that the arguments N1, N2,...
|
||||
@ -1096,20 +1226,24 @@
|
||||
_GL_ATTRIBUTE_NONNULL () declares that all pointer arguments must not be
|
||||
null. */
|
||||
/* Applies to: functions. */
|
||||
#if _GL_HAS_ATTRIBUTE (nonnull)
|
||||
# define _GL_ATTRIBUTE_NONNULL(args) __attribute__ ((__nonnull__ args))
|
||||
#else
|
||||
# define _GL_ATTRIBUTE_NONNULL(args)
|
||||
#ifndef _GL_ATTRIBUTE_NONNULL
|
||||
# if _GL_HAS_ATTRIBUTE (nonnull)
|
||||
# define _GL_ATTRIBUTE_NONNULL(args) __attribute__ ((__nonnull__ args))
|
||||
# else
|
||||
# define _GL_ATTRIBUTE_NONNULL(args)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* _GL_ATTRIBUTE_NONSTRING declares that the contents of a character array is
|
||||
not meant to be NUL-terminated. */
|
||||
/* Applies to: struct/union members and variables that are arrays of element
|
||||
type '[[un]signed] char'. */
|
||||
#if _GL_HAS_ATTRIBUTE (nonstring)
|
||||
# define _GL_ATTRIBUTE_NONSTRING __attribute__ ((__nonstring__))
|
||||
#else
|
||||
# define _GL_ATTRIBUTE_NONSTRING
|
||||
#ifndef _GL_ATTRIBUTE_NONSTRING
|
||||
# if _GL_HAS_ATTRIBUTE (nonstring)
|
||||
# define _GL_ATTRIBUTE_NONSTRING __attribute__ ((__nonstring__))
|
||||
# else
|
||||
# define _GL_ATTRIBUTE_NONSTRING
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* There is no _GL_ATTRIBUTE_NORETURN; use _Noreturn instead. */
|
||||
@ -1117,10 +1251,26 @@
|
||||
/* _GL_ATTRIBUTE_NOTHROW declares that the function does not throw exceptions.
|
||||
*/
|
||||
/* Applies to: functions. */
|
||||
#if _GL_HAS_ATTRIBUTE (nothrow) && !defined __cplusplus
|
||||
# define _GL_ATTRIBUTE_NOTHROW __attribute__ ((__nothrow__))
|
||||
#else
|
||||
# define _GL_ATTRIBUTE_NOTHROW
|
||||
/* After a function's parameter list, this attribute must come first, before
|
||||
other attributes. */
|
||||
#ifndef _GL_ATTRIBUTE_NOTHROW
|
||||
# if defined __cplusplus
|
||||
# if _GL_GNUC_PREREQ (2, 8) || __clang_major >= 4
|
||||
# if __cplusplus >= 201103L
|
||||
# define _GL_ATTRIBUTE_NOTHROW noexcept (true)
|
||||
# else
|
||||
# define _GL_ATTRIBUTE_NOTHROW throw ()
|
||||
# endif
|
||||
# else
|
||||
# define _GL_ATTRIBUTE_NOTHROW
|
||||
# endif
|
||||
# else
|
||||
# if _GL_HAS_ATTRIBUTE (nothrow)
|
||||
# define _GL_ATTRIBUTE_NOTHROW __attribute__ ((__nothrow__))
|
||||
# else
|
||||
# define _GL_ATTRIBUTE_NOTHROW
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* _GL_ATTRIBUTE_PACKED declares:
|
||||
@ -1129,10 +1279,12 @@
|
||||
minimizing the memory required. */
|
||||
/* Applies to: struct members, struct, union,
|
||||
in C++ also: class. */
|
||||
#if _GL_HAS_ATTRIBUTE (packed)
|
||||
# define _GL_ATTRIBUTE_PACKED __attribute__ ((__packed__))
|
||||
#else
|
||||
# define _GL_ATTRIBUTE_PACKED
|
||||
#ifndef _GL_ATTRIBUTE_PACKED
|
||||
# if _GL_HAS_ATTRIBUTE (packed)
|
||||
# define _GL_ATTRIBUTE_PACKED __attribute__ ((__packed__))
|
||||
# else
|
||||
# define _GL_ATTRIBUTE_PACKED
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* _GL_ATTRIBUTE_PURE declares that It is OK for a compiler to omit duplicate
|
||||
@ -1142,19 +1294,23 @@
|
||||
observable state, and always returns exactly once.
|
||||
(This attribute is looser than _GL_ATTRIBUTE_CONST.) */
|
||||
/* Applies to: functions. */
|
||||
#if _GL_HAS_ATTRIBUTE (pure)
|
||||
# define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__))
|
||||
#else
|
||||
# define _GL_ATTRIBUTE_PURE
|
||||
#ifndef _GL_ATTRIBUTE_PURE
|
||||
# if _GL_HAS_ATTRIBUTE (pure)
|
||||
# define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__))
|
||||
# else
|
||||
# define _GL_ATTRIBUTE_PURE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* _GL_ATTRIBUTE_RETURNS_NONNULL declares that the function's return value is
|
||||
a non-NULL pointer. */
|
||||
/* Applies to: functions. */
|
||||
#if _GL_HAS_ATTRIBUTE (returns_nonnull)
|
||||
# define _GL_ATTRIBUTE_RETURNS_NONNULL __attribute__ ((__returns_nonnull__))
|
||||
#else
|
||||
# define _GL_ATTRIBUTE_RETURNS_NONNULL
|
||||
#ifndef _GL_ATTRIBUTE_RETURNS_NONNULL
|
||||
# if _GL_HAS_ATTRIBUTE (returns_nonnull)
|
||||
# define _GL_ATTRIBUTE_RETURNS_NONNULL __attribute__ ((__returns_nonnull__))
|
||||
# else
|
||||
# define _GL_ATTRIBUTE_RETURNS_NONNULL
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* _GL_ATTRIBUTE_SENTINEL(pos) declares that the variadic function expects a
|
||||
@ -1162,17 +1318,21 @@
|
||||
_GL_ATTRIBUTE_SENTINEL () - The last argument is NULL (requires C99).
|
||||
_GL_ATTRIBUTE_SENTINEL ((N)) - The (N+1)st argument from the end is NULL. */
|
||||
/* Applies to: functions. */
|
||||
#if _GL_HAS_ATTRIBUTE (sentinel)
|
||||
# define _GL_ATTRIBUTE_SENTINEL(pos) __attribute__ ((__sentinel__ pos))
|
||||
#else
|
||||
# define _GL_ATTRIBUTE_SENTINEL(pos)
|
||||
#ifndef _GL_ATTRIBUTE_SENTINEL
|
||||
# if _GL_HAS_ATTRIBUTE (sentinel)
|
||||
# define _GL_ATTRIBUTE_SENTINEL(pos) __attribute__ ((__sentinel__ pos))
|
||||
# else
|
||||
# define _GL_ATTRIBUTE_SENTINEL(pos)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* A helper macro. Don't use it directly. */
|
||||
#if _GL_HAS_ATTRIBUTE (unused)
|
||||
# define _GL_ATTRIBUTE_UNUSED __attribute__ ((__unused__))
|
||||
#else
|
||||
# define _GL_ATTRIBUTE_UNUSED
|
||||
#ifndef _GL_ATTRIBUTE_UNUSED
|
||||
# if _GL_HAS_ATTRIBUTE (unused)
|
||||
# define _GL_ATTRIBUTE_UNUSED __attribute__ ((__unused__))
|
||||
# else
|
||||
# define _GL_ATTRIBUTE_UNUSED
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
||||
@ -1182,10 +1342,24 @@
|
||||
/* Applies to: label (both in C and C++). */
|
||||
/* Note that g++ < 4.5 does not support the '__attribute__ ((__unused__)) ;'
|
||||
syntax. But clang does. */
|
||||
#if !(defined __cplusplus && !_GL_GNUC_PREREQ (4, 5)) || defined __clang__
|
||||
# define _GL_UNUSED_LABEL _GL_ATTRIBUTE_UNUSED
|
||||
#ifndef _GL_UNUSED_LABEL
|
||||
# if !(defined __cplusplus && !_GL_GNUC_PREREQ (4, 5)) || defined __clang__
|
||||
# define _GL_UNUSED_LABEL _GL_ATTRIBUTE_UNUSED
|
||||
# else
|
||||
# define _GL_UNUSED_LABEL
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
||||
/* In C++, there is the concept of "language linkage", that encompasses
|
||||
name mangling and function calling conventions.
|
||||
The following macros start and end a block of "C" linkage. */
|
||||
#ifdef __cplusplus
|
||||
# define _GL_BEGIN_C_LINKAGE extern "C" {
|
||||
# define _GL_END_C_LINKAGE }
|
||||
#else
|
||||
# define _GL_UNUSED_LABEL
|
||||
# define _GL_BEGIN_C_LINKAGE
|
||||
# define _GL_END_C_LINKAGE
|
||||
#endif
|
||||
|
||||
|
||||
@ -1270,6 +1444,40 @@
|
||||
# endif
|
||||
|
||||
|
||||
#ifndef HAVE_C_BOOL
|
||||
# if !defined __cplusplus && !defined __bool_true_false_are_defined
|
||||
# if HAVE_STDBOOL_H
|
||||
# include <stdbool.h>
|
||||
# else
|
||||
# if defined __SUNPRO_C
|
||||
# error "<stdbool.h> is not usable with this configuration. To make it usable, add -D_STDC_C99= to $CC."
|
||||
# else
|
||||
# error "<stdbool.h> does not exist on this platform. Use gnulib module 'stdbool-c99' instead of gnulib module 'stdbool'."
|
||||
# endif
|
||||
# endif
|
||||
# endif
|
||||
# if !true
|
||||
# define true (!false)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if (!defined HAVE_C_STATIC_ASSERT && !defined assert \
|
||||
&& (!defined __cplusplus \
|
||||
|| (__cpp_static_assert < 201411 \
|
||||
&& __GNUG__ < 6 && __clang_major__ < 6)))
|
||||
#include <assert.h>
|
||||
#undef/**/assert
|
||||
#ifdef __sgi
|
||||
#undef/**/__ASSERT_H__
|
||||
#endif
|
||||
/* Solaris 11.4 <assert.h> defines static_assert as a macro with 2 arguments.
|
||||
We need it also to be invocable with a single argument. */
|
||||
#if defined __sun && (__STDC_VERSION__ - 0 >= 201112L) && !defined __cplusplus
|
||||
#undef/**/static_assert
|
||||
#define static_assert _Static_assert
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
/* Redefine _XOPEN_SOURCE as required */
|
||||
#include <xopen-source.h>
|
||||
|
223
data/Makefile.in
223
data/Makefile.in
@ -17,12 +17,12 @@
|
||||
#########################################################################
|
||||
# #
|
||||
# Star Traders: A Game of Interstellar Trading #
|
||||
# Copyright (C) 1990-2022, John Zaitseff #
|
||||
# Copyright (C) 1990-2024, John Zaitseff #
|
||||
# #
|
||||
#########################################################################
|
||||
|
||||
# Author: John Zaitseff <J.Zaitseff@zap.org.au>
|
||||
# $Id: aa5cc943e75f49631c9f26e99894eec23ba6dbb6 $
|
||||
# $Id: 8a36117fbba4fb820f42a9d9864eb1530a2656c5 $
|
||||
#
|
||||
# This file, data/Makefile.am, contains the non-code data directory
|
||||
# Makefile for Star Traders. It needs to be processed by automake to
|
||||
@ -120,14 +120,15 @@ subdir = data
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/00gnulib.m4 \
|
||||
$(top_srcdir)/m4/absolute-header.m4 $(top_srcdir)/m4/assert.m4 \
|
||||
$(top_srcdir)/m4/assert_h.m4 \
|
||||
$(top_srcdir)/m4/ax_c___attribute__.m4 \
|
||||
$(top_srcdir)/m4/ax_cflags_warn_all.m4 \
|
||||
$(top_srcdir)/m4/ax_compiler_vendor.m4 \
|
||||
$(top_srcdir)/m4/ax_prepend_flag.m4 \
|
||||
$(top_srcdir)/m4/ax_require_defined.m4 \
|
||||
$(top_srcdir)/m4/ax_with_curses.m4 $(top_srcdir)/m4/btowc.m4 \
|
||||
$(top_srcdir)/m4/codeset.m4 $(top_srcdir)/m4/config-h.m4 \
|
||||
$(top_srcdir)/m4/extensions.m4 \
|
||||
$(top_srcdir)/m4/c-bool.m4 $(top_srcdir)/m4/codeset.m4 \
|
||||
$(top_srcdir)/m4/config-h.m4 $(top_srcdir)/m4/extensions.m4 \
|
||||
$(top_srcdir)/m4/extern-inline.m4 $(top_srcdir)/m4/free.m4 \
|
||||
$(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/gettimeofday.m4 \
|
||||
$(top_srcdir)/m4/gnulib-common.m4 \
|
||||
@ -145,9 +146,9 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/00gnulib.m4 \
|
||||
$(top_srcdir)/m4/mbsrtowcs.m4 $(top_srcdir)/m4/mbstate_t.m4 \
|
||||
$(top_srcdir)/m4/mbtowc.m4 $(top_srcdir)/m4/memchr.m4 \
|
||||
$(top_srcdir)/m4/mmap-anon.m4 $(top_srcdir)/m4/monetary_h.m4 \
|
||||
$(top_srcdir)/m4/multiarch.m4 $(top_srcdir)/m4/nocrash.m4 \
|
||||
$(top_srcdir)/m4/off_t.m4 $(top_srcdir)/m4/setlocale_null.m4 \
|
||||
$(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/stdbool.m4 \
|
||||
$(top_srcdir)/m4/multiarch.m4 $(top_srcdir)/m4/musl.m4 \
|
||||
$(top_srcdir)/m4/nocrash.m4 $(top_srcdir)/m4/off_t.m4 \
|
||||
$(top_srcdir)/m4/setlocale_null.m4 $(top_srcdir)/m4/ssize_t.m4 \
|
||||
$(top_srcdir)/m4/stddef_h.m4 $(top_srcdir)/m4/stdint.m4 \
|
||||
$(top_srcdir)/m4/stdio_h.m4 $(top_srcdir)/m4/stdlib_h.m4 \
|
||||
$(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/sys_socket_h.m4 \
|
||||
@ -163,13 +164,14 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/00gnulib.m4 \
|
||||
$(top_srcdir)/m4/zzgnulib.m4 $(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
DIST_COMMON = $(srcdir)/Makefile.am $(dist_appdata_DATA) \
|
||||
$(dist_desktop_DATA) $(dist_icons128_DATA) \
|
||||
$(dist_icons16_DATA) $(dist_icons22_DATA) $(dist_icons24_DATA) \
|
||||
DIST_COMMON = $(srcdir)/Makefile.am $(dist_desktop_DATA) \
|
||||
$(dist_icons128_DATA) $(dist_icons16_DATA) \
|
||||
$(dist_icons22_DATA) $(dist_icons24_DATA) \
|
||||
$(dist_icons256_DATA) $(dist_icons32_DATA) \
|
||||
$(dist_icons48_DATA) $(dist_icons512_DATA) \
|
||||
$(dist_icons64_DATA) $(dist_icons96_DATA) \
|
||||
$(dist_iconsscalable_DATA) $(am__DIST_COMMON)
|
||||
$(dist_iconsscalable_DATA) $(dist_metainfo_DATA) \
|
||||
$(am__DIST_COMMON)
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_HEADER = $(top_builddir)/config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
@ -220,19 +222,19 @@ am__uninstall_files_from_dir = { \
|
||||
|| { echo " ( cd '$$dir' && rm -f" $$files ")"; \
|
||||
$(am__cd) "$$dir" && rm -f $$files; }; \
|
||||
}
|
||||
am__installdirs = "$(DESTDIR)$(appdatadir)" "$(DESTDIR)$(desktopdir)" \
|
||||
"$(DESTDIR)$(icons128dir)" "$(DESTDIR)$(icons16dir)" \
|
||||
"$(DESTDIR)$(icons22dir)" "$(DESTDIR)$(icons24dir)" \
|
||||
"$(DESTDIR)$(icons256dir)" "$(DESTDIR)$(icons32dir)" \
|
||||
"$(DESTDIR)$(icons48dir)" "$(DESTDIR)$(icons512dir)" \
|
||||
"$(DESTDIR)$(icons64dir)" "$(DESTDIR)$(icons96dir)" \
|
||||
"$(DESTDIR)$(iconsscalabledir)"
|
||||
DATA = $(dist_appdata_DATA) $(dist_desktop_DATA) $(dist_icons128_DATA) \
|
||||
$(dist_icons16_DATA) $(dist_icons22_DATA) $(dist_icons24_DATA) \
|
||||
am__installdirs = "$(DESTDIR)$(desktopdir)" "$(DESTDIR)$(icons128dir)" \
|
||||
"$(DESTDIR)$(icons16dir)" "$(DESTDIR)$(icons22dir)" \
|
||||
"$(DESTDIR)$(icons24dir)" "$(DESTDIR)$(icons256dir)" \
|
||||
"$(DESTDIR)$(icons32dir)" "$(DESTDIR)$(icons48dir)" \
|
||||
"$(DESTDIR)$(icons512dir)" "$(DESTDIR)$(icons64dir)" \
|
||||
"$(DESTDIR)$(icons96dir)" "$(DESTDIR)$(iconsscalabledir)" \
|
||||
"$(DESTDIR)$(metainfodir)"
|
||||
DATA = $(dist_desktop_DATA) $(dist_icons128_DATA) $(dist_icons16_DATA) \
|
||||
$(dist_icons22_DATA) $(dist_icons24_DATA) \
|
||||
$(dist_icons256_DATA) $(dist_icons32_DATA) \
|
||||
$(dist_icons48_DATA) $(dist_icons512_DATA) \
|
||||
$(dist_icons64_DATA) $(dist_icons96_DATA) \
|
||||
$(dist_iconsscalable_DATA)
|
||||
$(dist_iconsscalable_DATA) $(dist_metainfo_DATA)
|
||||
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
|
||||
am__DIST_COMMON = $(srcdir)/Makefile.in README
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
@ -242,6 +244,7 @@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||
APPLE_UNIVERSAL_BUILD = @APPLE_UNIVERSAL_BUILD@
|
||||
AR = @AR@
|
||||
ARFLAGS = @ARFLAGS@
|
||||
ASSERT_H = @ASSERT_H@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
@ -353,6 +356,7 @@ GL_GNULIB_GETOPT_POSIX = @GL_GNULIB_GETOPT_POSIX@
|
||||
GL_GNULIB_GETPAGESIZE = @GL_GNULIB_GETPAGESIZE@
|
||||
GL_GNULIB_GETPASS = @GL_GNULIB_GETPASS@
|
||||
GL_GNULIB_GETPASS_GNU = @GL_GNULIB_GETPASS_GNU@
|
||||
GL_GNULIB_GETPROGNAME = @GL_GNULIB_GETPROGNAME@
|
||||
GL_GNULIB_GETSUBOPT = @GL_GNULIB_GETSUBOPT@
|
||||
GL_GNULIB_GETTIMEOFDAY = @GL_GNULIB_GETTIMEOFDAY@
|
||||
GL_GNULIB_GETUMASK = @GL_GNULIB_GETUMASK@
|
||||
@ -366,6 +370,7 @@ GL_GNULIB_ISATTY = @GL_GNULIB_ISATTY@
|
||||
GL_GNULIB_ISWBLANK = @GL_GNULIB_ISWBLANK@
|
||||
GL_GNULIB_ISWCTYPE = @GL_GNULIB_ISWCTYPE@
|
||||
GL_GNULIB_ISWDIGIT = @GL_GNULIB_ISWDIGIT@
|
||||
GL_GNULIB_ISWPUNCT = @GL_GNULIB_ISWPUNCT@
|
||||
GL_GNULIB_ISWXDIGIT = @GL_GNULIB_ISWXDIGIT@
|
||||
GL_GNULIB_LCHMOD = @GL_GNULIB_LCHMOD@
|
||||
GL_GNULIB_LCHOWN = @GL_GNULIB_LCHOWN@
|
||||
@ -397,6 +402,8 @@ GL_GNULIB_MBSSEP = @GL_GNULIB_MBSSEP@
|
||||
GL_GNULIB_MBSSPN = @GL_GNULIB_MBSSPN@
|
||||
GL_GNULIB_MBSSTR = @GL_GNULIB_MBSSTR@
|
||||
GL_GNULIB_MBSTOK_R = @GL_GNULIB_MBSTOK_R@
|
||||
GL_GNULIB_MBSTOWCS = @GL_GNULIB_MBSTOWCS@
|
||||
GL_GNULIB_MBSZERO = @GL_GNULIB_MBSZERO@
|
||||
GL_GNULIB_MBTOWC = @GL_GNULIB_MBTOWC@
|
||||
GL_GNULIB_MDA_ACCESS = @GL_GNULIB_MDA_ACCESS@
|
||||
GL_GNULIB_MDA_CHDIR = @GL_GNULIB_MDA_CHDIR@
|
||||
@ -441,6 +448,7 @@ GL_GNULIB_MEMCHR = @GL_GNULIB_MEMCHR@
|
||||
GL_GNULIB_MEMMEM = @GL_GNULIB_MEMMEM@
|
||||
GL_GNULIB_MEMPCPY = @GL_GNULIB_MEMPCPY@
|
||||
GL_GNULIB_MEMRCHR = @GL_GNULIB_MEMRCHR@
|
||||
GL_GNULIB_MEMSET_EXPLICIT = @GL_GNULIB_MEMSET_EXPLICIT@
|
||||
GL_GNULIB_MKDIR = @GL_GNULIB_MKDIR@
|
||||
GL_GNULIB_MKDIRAT = @GL_GNULIB_MKDIRAT@
|
||||
GL_GNULIB_MKDTEMP = @GL_GNULIB_MKDTEMP@
|
||||
@ -475,6 +483,7 @@ GL_GNULIB_PUTENV = @GL_GNULIB_PUTENV@
|
||||
GL_GNULIB_PUTS = @GL_GNULIB_PUTS@
|
||||
GL_GNULIB_PWRITE = @GL_GNULIB_PWRITE@
|
||||
GL_GNULIB_QSORT_R = @GL_GNULIB_QSORT_R@
|
||||
GL_GNULIB_RAND = @GL_GNULIB_RAND@
|
||||
GL_GNULIB_RANDOM = @GL_GNULIB_RANDOM@
|
||||
GL_GNULIB_RANDOM_R = @GL_GNULIB_RANDOM_R@
|
||||
GL_GNULIB_RAWMEMCHR = @GL_GNULIB_RAWMEMCHR@
|
||||
@ -535,6 +544,7 @@ GL_GNULIB_STRVERSCMP = @GL_GNULIB_STRVERSCMP@
|
||||
GL_GNULIB_SYMLINK = @GL_GNULIB_SYMLINK@
|
||||
GL_GNULIB_SYMLINKAT = @GL_GNULIB_SYMLINKAT@
|
||||
GL_GNULIB_SYSTEM_POSIX = @GL_GNULIB_SYSTEM_POSIX@
|
||||
GL_GNULIB_TIME = @GL_GNULIB_TIME@
|
||||
GL_GNULIB_TIMEGM = @GL_GNULIB_TIMEGM@
|
||||
GL_GNULIB_TIMESPEC_GET = @GL_GNULIB_TIMESPEC_GET@
|
||||
GL_GNULIB_TIMESPEC_GETRES = @GL_GNULIB_TIMESPEC_GETRES@
|
||||
@ -596,6 +606,7 @@ GL_GNULIB_WCTOMB = @GL_GNULIB_WCTOMB@
|
||||
GL_GNULIB_WCTRANS = @GL_GNULIB_WCTRANS@
|
||||
GL_GNULIB_WCTYPE = @GL_GNULIB_WCTYPE@
|
||||
GL_GNULIB_WCWIDTH = @GL_GNULIB_WCWIDTH@
|
||||
GL_GNULIB_WGETCWD = @GL_GNULIB_WGETCWD@
|
||||
GL_GNULIB_WMEMCHR = @GL_GNULIB_WMEMCHR@
|
||||
GL_GNULIB_WMEMCMP = @GL_GNULIB_WMEMCMP@
|
||||
GL_GNULIB_WMEMCPY = @GL_GNULIB_WMEMCPY@
|
||||
@ -607,8 +618,8 @@ GL_GNULIB__EXIT = @GL_GNULIB__EXIT@
|
||||
GMSGFMT = @GMSGFMT@
|
||||
GMSGFMT_015 = @GMSGFMT_015@
|
||||
GNULIBHEADERS_OVERRIDE_WINT_T = @GNULIBHEADERS_OVERRIDE_WINT_T@
|
||||
GNULIB_GETTIMEOFDAY = @GNULIB_GETTIMEOFDAY@
|
||||
GREP = @GREP@
|
||||
HARD_LOCALE_LIB = @HARD_LOCALE_LIB@
|
||||
HAVE_ALIGNED_ALLOC = @HAVE_ALIGNED_ALLOC@
|
||||
HAVE_ATOLL = @HAVE_ATOLL@
|
||||
HAVE_BTOWC = @HAVE_BTOWC@
|
||||
@ -636,6 +647,7 @@ HAVE_DECL_GETLOGIN = @HAVE_DECL_GETLOGIN@
|
||||
HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
|
||||
HAVE_DECL_GETPAGESIZE = @HAVE_DECL_GETPAGESIZE@
|
||||
HAVE_DECL_GETUSERSHELL = @HAVE_DECL_GETUSERSHELL@
|
||||
HAVE_DECL_GETW = @HAVE_DECL_GETW@
|
||||
HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
|
||||
HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
|
||||
HAVE_DECL_INITSTATE = @HAVE_DECL_INITSTATE@
|
||||
@ -643,6 +655,8 @@ HAVE_DECL_LOCALTIME_R = @HAVE_DECL_LOCALTIME_R@
|
||||
HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
|
||||
HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
|
||||
HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@
|
||||
HAVE_DECL_PROGRAM_INVOCATION_NAME = @HAVE_DECL_PROGRAM_INVOCATION_NAME@
|
||||
HAVE_DECL_PUTW = @HAVE_DECL_PUTW@
|
||||
HAVE_DECL_SETENV = @HAVE_DECL_SETENV@
|
||||
HAVE_DECL_SETHOSTNAME = @HAVE_DECL_SETHOSTNAME@
|
||||
HAVE_DECL_SETSTATE = @HAVE_DECL_SETSTATE@
|
||||
@ -691,11 +705,14 @@ HAVE_GETLOGIN = @HAVE_GETLOGIN@
|
||||
HAVE_GETOPT_H = @HAVE_GETOPT_H@
|
||||
HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@
|
||||
HAVE_GETPASS = @HAVE_GETPASS@
|
||||
HAVE_GETPROGNAME = @HAVE_GETPROGNAME@
|
||||
HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
|
||||
HAVE_GETTIMEOFDAY = @HAVE_GETTIMEOFDAY@
|
||||
HAVE_GETUMASK = @HAVE_GETUMASK@
|
||||
HAVE_GRANTPT = @HAVE_GRANTPT@
|
||||
HAVE_GROUP_MEMBER = @HAVE_GROUP_MEMBER@
|
||||
HAVE_IMAXABS = @HAVE_IMAXABS@
|
||||
HAVE_IMAXDIV = @HAVE_IMAXDIV@
|
||||
HAVE_IMAXDIV_T = @HAVE_IMAXDIV_T@
|
||||
HAVE_INITSTATE = @HAVE_INITSTATE@
|
||||
HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
|
||||
@ -715,6 +732,7 @@ HAVE_MBSNRTOWCS = @HAVE_MBSNRTOWCS@
|
||||
HAVE_MBSRTOWCS = @HAVE_MBSRTOWCS@
|
||||
HAVE_MBTOWC = @HAVE_MBTOWC@
|
||||
HAVE_MEMPCPY = @HAVE_MEMPCPY@
|
||||
HAVE_MEMSET_EXPLICIT = @HAVE_MEMSET_EXPLICIT@
|
||||
HAVE_MKDIRAT = @HAVE_MKDIRAT@
|
||||
HAVE_MKDTEMP = @HAVE_MKDTEMP@
|
||||
HAVE_MKFIFO = @HAVE_MKFIFO@
|
||||
@ -793,6 +811,7 @@ HAVE_TIMESPEC_GET = @HAVE_TIMESPEC_GET@
|
||||
HAVE_TIMESPEC_GETRES = @HAVE_TIMESPEC_GETRES@
|
||||
HAVE_TIMEZONE_T = @HAVE_TIMEZONE_T@
|
||||
HAVE_UNISTD_H = @HAVE_UNISTD_H@
|
||||
HAVE_UNISTRING_WOE32DLL_H = @HAVE_UNISTRING_WOE32DLL_H@
|
||||
HAVE_UNLINKAT = @HAVE_UNLINKAT@
|
||||
HAVE_UNLOCKPT = @HAVE_UNLOCKPT@
|
||||
HAVE_USLEEP = @HAVE_USLEEP@
|
||||
@ -841,7 +860,6 @@ HAVE_WMEMMOVE = @HAVE_WMEMMOVE@
|
||||
HAVE_WMEMPCPY = @HAVE_WMEMPCPY@
|
||||
HAVE_WMEMSET = @HAVE_WMEMSET@
|
||||
HAVE_XLOCALE_H = @HAVE_XLOCALE_H@
|
||||
HAVE__BOOL = @HAVE__BOOL@
|
||||
HAVE__EXIT = @HAVE__EXIT@
|
||||
ICONV_CONST = @ICONV_CONST@
|
||||
ICONV_H = @ICONV_H@
|
||||
@ -856,6 +874,10 @@ INT32_MAX_LT_INTMAX_MAX = @INT32_MAX_LT_INTMAX_MAX@
|
||||
INT64_MAX_EQ_LONG_MAX = @INT64_MAX_EQ_LONG_MAX@
|
||||
INTLLIBS = @INTLLIBS@
|
||||
INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
|
||||
LC_COLLATE_IMPLEMENTED = @LC_COLLATE_IMPLEMENTED@
|
||||
LC_MONETARY_IMPLEMENTED = @LC_MONETARY_IMPLEMENTED@
|
||||
LC_NUMERIC_IMPLEMENTED = @LC_NUMERIC_IMPLEMENTED@
|
||||
LC_TIME_IMPLEMENTED = @LC_TIME_IMPLEMENTED@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBGNU_LIBDEPS = @LIBGNU_LIBDEPS@
|
||||
LIBGNU_LTLIBDEPS = @LIBGNU_LTLIBDEPS@
|
||||
@ -883,11 +905,14 @@ LTLIBINTL = @LTLIBINTL@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
MAINT = @MAINT@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MBRTOWC_LIB = @MBRTOWC_LIB@
|
||||
MKDIR_P = @MKDIR_P@
|
||||
MONETARY_H = @MONETARY_H@
|
||||
MSGFMT = @MSGFMT@
|
||||
MSGMERGE = @MSGMERGE@
|
||||
MSGMERGE_FOR_MSGFMT_OPTION = @MSGMERGE_FOR_MSGFMT_OPTION@
|
||||
NEXT_ASSERT_H = @NEXT_ASSERT_H@
|
||||
NEXT_AS_FIRST_DIRECTIVE_ASSERT_H = @NEXT_AS_FIRST_DIRECTIVE_ASSERT_H@
|
||||
NEXT_AS_FIRST_DIRECTIVE_GETOPT_H = @NEXT_AS_FIRST_DIRECTIVE_GETOPT_H@
|
||||
NEXT_AS_FIRST_DIRECTIVE_ICONV_H = @NEXT_AS_FIRST_DIRECTIVE_ICONV_H@
|
||||
NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H = @NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H@
|
||||
@ -957,6 +982,7 @@ REPLACE_CTIME = @REPLACE_CTIME@
|
||||
REPLACE_DPRINTF = @REPLACE_DPRINTF@
|
||||
REPLACE_DUP = @REPLACE_DUP@
|
||||
REPLACE_DUP2 = @REPLACE_DUP2@
|
||||
REPLACE_DUP3 = @REPLACE_DUP3@
|
||||
REPLACE_DUPLOCALE = @REPLACE_DUPLOCALE@
|
||||
REPLACE_EXECL = @REPLACE_EXECL@
|
||||
REPLACE_EXECLE = @REPLACE_EXECLE@
|
||||
@ -966,9 +992,11 @@ REPLACE_EXECVE = @REPLACE_EXECVE@
|
||||
REPLACE_EXECVP = @REPLACE_EXECVP@
|
||||
REPLACE_EXECVPE = @REPLACE_EXECVPE@
|
||||
REPLACE_FACCESSAT = @REPLACE_FACCESSAT@
|
||||
REPLACE_FCHDIR = @REPLACE_FCHDIR@
|
||||
REPLACE_FCHMODAT = @REPLACE_FCHMODAT@
|
||||
REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@
|
||||
REPLACE_FCLOSE = @REPLACE_FCLOSE@
|
||||
REPLACE_FDATASYNC = @REPLACE_FDATASYNC@
|
||||
REPLACE_FDOPEN = @REPLACE_FDOPEN@
|
||||
REPLACE_FFLUSH = @REPLACE_FFLUSH@
|
||||
REPLACE_FFSLL = @REPLACE_FFSLL@
|
||||
@ -991,22 +1019,29 @@ REPLACE_GETCWD = @REPLACE_GETCWD@
|
||||
REPLACE_GETDELIM = @REPLACE_GETDELIM@
|
||||
REPLACE_GETDOMAINNAME = @REPLACE_GETDOMAINNAME@
|
||||
REPLACE_GETDTABLESIZE = @REPLACE_GETDTABLESIZE@
|
||||
REPLACE_GETENTROPY = @REPLACE_GETENTROPY@
|
||||
REPLACE_GETGROUPS = @REPLACE_GETGROUPS@
|
||||
REPLACE_GETLINE = @REPLACE_GETLINE@
|
||||
REPLACE_GETLOADAVG = @REPLACE_GETLOADAVG@
|
||||
REPLACE_GETLOGIN_R = @REPLACE_GETLOGIN_R@
|
||||
REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@
|
||||
REPLACE_GETPASS = @REPLACE_GETPASS@
|
||||
REPLACE_GETPASS_FOR_GETPASS_GNU = @REPLACE_GETPASS_FOR_GETPASS_GNU@
|
||||
REPLACE_GETPROGNAME = @REPLACE_GETPROGNAME@
|
||||
REPLACE_GETSUBOPT = @REPLACE_GETSUBOPT@
|
||||
REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
|
||||
REPLACE_GMTIME = @REPLACE_GMTIME@
|
||||
REPLACE_ICONV = @REPLACE_ICONV@
|
||||
REPLACE_ICONV_OPEN = @REPLACE_ICONV_OPEN@
|
||||
REPLACE_ICONV_UTF = @REPLACE_ICONV_UTF@
|
||||
REPLACE_IMAXABS = @REPLACE_IMAXABS@
|
||||
REPLACE_IMAXDIV = @REPLACE_IMAXDIV@
|
||||
REPLACE_INITSTATE = @REPLACE_INITSTATE@
|
||||
REPLACE_ISATTY = @REPLACE_ISATTY@
|
||||
REPLACE_ISWBLANK = @REPLACE_ISWBLANK@
|
||||
REPLACE_ISWCNTRL = @REPLACE_ISWCNTRL@
|
||||
REPLACE_ISWDIGIT = @REPLACE_ISWDIGIT@
|
||||
REPLACE_ISWPUNCT = @REPLACE_ISWPUNCT@
|
||||
REPLACE_ISWXDIGIT = @REPLACE_ISWXDIGIT@
|
||||
REPLACE_LCHOWN = @REPLACE_LCHOWN@
|
||||
REPLACE_LINK = @REPLACE_LINK@
|
||||
@ -1024,14 +1059,19 @@ REPLACE_MBSINIT = @REPLACE_MBSINIT@
|
||||
REPLACE_MBSNRTOWCS = @REPLACE_MBSNRTOWCS@
|
||||
REPLACE_MBSRTOWCS = @REPLACE_MBSRTOWCS@
|
||||
REPLACE_MBSTATE_T = @REPLACE_MBSTATE_T@
|
||||
REPLACE_MBSTOWCS = @REPLACE_MBSTOWCS@
|
||||
REPLACE_MBTOWC = @REPLACE_MBTOWC@
|
||||
REPLACE_MB_CUR_MAX = @REPLACE_MB_CUR_MAX@
|
||||
REPLACE_MEMCHR = @REPLACE_MEMCHR@
|
||||
REPLACE_MEMMEM = @REPLACE_MEMMEM@
|
||||
REPLACE_MEMPCPY = @REPLACE_MEMPCPY@
|
||||
REPLACE_MKDIR = @REPLACE_MKDIR@
|
||||
REPLACE_MKFIFO = @REPLACE_MKFIFO@
|
||||
REPLACE_MKFIFOAT = @REPLACE_MKFIFOAT@
|
||||
REPLACE_MKNOD = @REPLACE_MKNOD@
|
||||
REPLACE_MKNODAT = @REPLACE_MKNODAT@
|
||||
REPLACE_MKOSTEMP = @REPLACE_MKOSTEMP@
|
||||
REPLACE_MKOSTEMPS = @REPLACE_MKOSTEMPS@
|
||||
REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
|
||||
REPLACE_MKTIME = @REPLACE_MKTIME@
|
||||
REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@
|
||||
@ -1039,8 +1079,10 @@ REPLACE_NEWLOCALE = @REPLACE_NEWLOCALE@
|
||||
REPLACE_NULL = @REPLACE_NULL@
|
||||
REPLACE_OBSTACK_PRINTF = @REPLACE_OBSTACK_PRINTF@
|
||||
REPLACE_PERROR = @REPLACE_PERROR@
|
||||
REPLACE_PIPE2 = @REPLACE_PIPE2@
|
||||
REPLACE_POPEN = @REPLACE_POPEN@
|
||||
REPLACE_POSIX_MEMALIGN = @REPLACE_POSIX_MEMALIGN@
|
||||
REPLACE_POSIX_OPENPT = @REPLACE_POSIX_OPENPT@
|
||||
REPLACE_PREAD = @REPLACE_PREAD@
|
||||
REPLACE_PRINTF = @REPLACE_PRINTF@
|
||||
REPLACE_PTSNAME = @REPLACE_PTSNAME@
|
||||
@ -1048,6 +1090,7 @@ REPLACE_PTSNAME_R = @REPLACE_PTSNAME_R@
|
||||
REPLACE_PUTENV = @REPLACE_PUTENV@
|
||||
REPLACE_PWRITE = @REPLACE_PWRITE@
|
||||
REPLACE_QSORT_R = @REPLACE_QSORT_R@
|
||||
REPLACE_RAND = @REPLACE_RAND@
|
||||
REPLACE_RANDOM = @REPLACE_RANDOM@
|
||||
REPLACE_RANDOM_R = @REPLACE_RANDOM_R@
|
||||
REPLACE_READ = @REPLACE_READ@
|
||||
@ -1062,6 +1105,7 @@ REPLACE_RENAME = @REPLACE_RENAME@
|
||||
REPLACE_RENAMEAT = @REPLACE_RENAMEAT@
|
||||
REPLACE_RMDIR = @REPLACE_RMDIR@
|
||||
REPLACE_SETENV = @REPLACE_SETENV@
|
||||
REPLACE_SETHOSTNAME = @REPLACE_SETHOSTNAME@
|
||||
REPLACE_SETLOCALE = @REPLACE_SETLOCALE@
|
||||
REPLACE_SETSTATE = @REPLACE_SETSTATE@
|
||||
REPLACE_SLEEP = @REPLACE_SLEEP@
|
||||
@ -1070,6 +1114,7 @@ REPLACE_SPRINTF = @REPLACE_SPRINTF@
|
||||
REPLACE_STAT = @REPLACE_STAT@
|
||||
REPLACE_STDIO_READ_FUNCS = @REPLACE_STDIO_READ_FUNCS@
|
||||
REPLACE_STDIO_WRITE_FUNCS = @REPLACE_STDIO_WRITE_FUNCS@
|
||||
REPLACE_STPCPY = @REPLACE_STPCPY@
|
||||
REPLACE_STPNCPY = @REPLACE_STPNCPY@
|
||||
REPLACE_STRCASESTR = @REPLACE_STRCASESTR@
|
||||
REPLACE_STRCHRNUL = @REPLACE_STRCHRNUL@
|
||||
@ -1095,9 +1140,12 @@ REPLACE_STRTOULL = @REPLACE_STRTOULL@
|
||||
REPLACE_STRTOUMAX = @REPLACE_STRTOUMAX@
|
||||
REPLACE_STRUCT_LCONV = @REPLACE_STRUCT_LCONV@
|
||||
REPLACE_STRUCT_TIMEVAL = @REPLACE_STRUCT_TIMEVAL@
|
||||
REPLACE_STRVERSCMP = @REPLACE_STRVERSCMP@
|
||||
REPLACE_SYMLINK = @REPLACE_SYMLINK@
|
||||
REPLACE_SYMLINKAT = @REPLACE_SYMLINKAT@
|
||||
REPLACE_TIME = @REPLACE_TIME@
|
||||
REPLACE_TIMEGM = @REPLACE_TIMEGM@
|
||||
REPLACE_TIMESPEC_GET = @REPLACE_TIMESPEC_GET@
|
||||
REPLACE_TMPFILE = @REPLACE_TMPFILE@
|
||||
REPLACE_TOWLOWER = @REPLACE_TOWLOWER@
|
||||
REPLACE_TRUNCATE = @REPLACE_TRUNCATE@
|
||||
@ -1115,21 +1163,30 @@ REPLACE_VPRINTF = @REPLACE_VPRINTF@
|
||||
REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@
|
||||
REPLACE_VSPRINTF = @REPLACE_VSPRINTF@
|
||||
REPLACE_WCRTOMB = @REPLACE_WCRTOMB@
|
||||
REPLACE_WCSCMP = @REPLACE_WCSCMP@
|
||||
REPLACE_WCSFTIME = @REPLACE_WCSFTIME@
|
||||
REPLACE_WCSNCMP = @REPLACE_WCSNCMP@
|
||||
REPLACE_WCSNRTOMBS = @REPLACE_WCSNRTOMBS@
|
||||
REPLACE_WCSRTOMBS = @REPLACE_WCSRTOMBS@
|
||||
REPLACE_WCSSTR = @REPLACE_WCSSTR@
|
||||
REPLACE_WCSTOK = @REPLACE_WCSTOK@
|
||||
REPLACE_WCSWIDTH = @REPLACE_WCSWIDTH@
|
||||
REPLACE_WCTOB = @REPLACE_WCTOB@
|
||||
REPLACE_WCTOMB = @REPLACE_WCTOMB@
|
||||
REPLACE_WCTRANS = @REPLACE_WCTRANS@
|
||||
REPLACE_WCTYPE = @REPLACE_WCTYPE@
|
||||
REPLACE_WCWIDTH = @REPLACE_WCWIDTH@
|
||||
REPLACE_WMEMCMP = @REPLACE_WMEMCMP@
|
||||
REPLACE_WMEMPCPY = @REPLACE_WMEMPCPY@
|
||||
REPLACE_WRITE = @REPLACE_WRITE@
|
||||
REPLACE__EXIT = @REPLACE__EXIT@
|
||||
SCHED_YIELD_LIB = @SCHED_YIELD_LIB@
|
||||
SED = @SED@
|
||||
SETLOCALE_NULL_LIB = @SETLOCALE_NULL_LIB@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
|
||||
SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
|
||||
STDBOOL_H = @STDBOOL_H@
|
||||
STDDEF_H = @STDDEF_H@
|
||||
STDINT_H = @STDINT_H@
|
||||
STRIP = @STRIP@
|
||||
@ -1164,7 +1221,6 @@ am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
appdatadir = @appdatadir@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
@ -1200,6 +1256,7 @@ libexecdir = @libexecdir@
|
||||
localedir = @localedir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
metainfodir = @metainfodir@
|
||||
mkdir_p = @mkdir_p@
|
||||
oldincludedir = @oldincludedir@
|
||||
pdfdir = @pdfdir@
|
||||
@ -1215,8 +1272,8 @@ target_alias = @target_alias@
|
||||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
dist_desktop_DATA = trader.desktop
|
||||
dist_appdata_DATA = trader.appdata.xml
|
||||
dist_desktop_DATA = au.org.zap.trader.desktop
|
||||
dist_metainfo_DATA = au.org.zap.trader.metainfo.xml
|
||||
icons16dir = ${iconsdir}/16x16/apps
|
||||
icons22dir = ${iconsdir}/22x22/apps
|
||||
icons24dir = ${iconsdir}/24x24/apps
|
||||
@ -1240,9 +1297,9 @@ dist_icons256_DATA = icons-256/trader.png
|
||||
dist_icons512_DATA = icons-512/trader.png
|
||||
dist_iconsscalable_DATA = trader.svg
|
||||
EXTRA_DIST = \
|
||||
README \
|
||||
trader.desktop.in \
|
||||
trader.appdata.xml.in
|
||||
README \
|
||||
au.org.zap.trader.desktop.in \
|
||||
au.org.zap.trader.metainfo.xml.in
|
||||
|
||||
all: all-am
|
||||
|
||||
@ -1276,27 +1333,6 @@ $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
|
||||
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(am__aclocal_m4_deps):
|
||||
install-dist_appdataDATA: $(dist_appdata_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
@list='$(dist_appdata_DATA)'; test -n "$(appdatadir)" || list=; \
|
||||
if test -n "$$list"; then \
|
||||
echo " $(MKDIR_P) '$(DESTDIR)$(appdatadir)'"; \
|
||||
$(MKDIR_P) "$(DESTDIR)$(appdatadir)" || exit 1; \
|
||||
fi; \
|
||||
for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
echo "$$d$$p"; \
|
||||
done | $(am__base_list) | \
|
||||
while read files; do \
|
||||
echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(appdatadir)'"; \
|
||||
$(INSTALL_DATA) $$files "$(DESTDIR)$(appdatadir)" || exit $$?; \
|
||||
done
|
||||
|
||||
uninstall-dist_appdataDATA:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(dist_appdata_DATA)'; test -n "$(appdatadir)" || list=; \
|
||||
files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
|
||||
dir='$(DESTDIR)$(appdatadir)'; $(am__uninstall_files_from_dir)
|
||||
install-dist_desktopDATA: $(dist_desktop_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
@list='$(dist_desktop_DATA)'; test -n "$(desktopdir)" || list=; \
|
||||
@ -1549,6 +1585,27 @@ uninstall-dist_iconsscalableDATA:
|
||||
@list='$(dist_iconsscalable_DATA)'; test -n "$(iconsscalabledir)" || list=; \
|
||||
files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
|
||||
dir='$(DESTDIR)$(iconsscalabledir)'; $(am__uninstall_files_from_dir)
|
||||
install-dist_metainfoDATA: $(dist_metainfo_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
@list='$(dist_metainfo_DATA)'; test -n "$(metainfodir)" || list=; \
|
||||
if test -n "$$list"; then \
|
||||
echo " $(MKDIR_P) '$(DESTDIR)$(metainfodir)'"; \
|
||||
$(MKDIR_P) "$(DESTDIR)$(metainfodir)" || exit 1; \
|
||||
fi; \
|
||||
for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
echo "$$d$$p"; \
|
||||
done | $(am__base_list) | \
|
||||
while read files; do \
|
||||
echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(metainfodir)'"; \
|
||||
$(INSTALL_DATA) $$files "$(DESTDIR)$(metainfodir)" || exit $$?; \
|
||||
done
|
||||
|
||||
uninstall-dist_metainfoDATA:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(dist_metainfo_DATA)'; test -n "$(metainfodir)" || list=; \
|
||||
files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
|
||||
dir='$(DESTDIR)$(metainfodir)'; $(am__uninstall_files_from_dir)
|
||||
tags TAGS:
|
||||
|
||||
ctags CTAGS:
|
||||
@ -1592,7 +1649,7 @@ check-am: all-am
|
||||
check: check-am
|
||||
all-am: Makefile $(DATA)
|
||||
installdirs:
|
||||
for dir in "$(DESTDIR)$(appdatadir)" "$(DESTDIR)$(desktopdir)" "$(DESTDIR)$(icons128dir)" "$(DESTDIR)$(icons16dir)" "$(DESTDIR)$(icons22dir)" "$(DESTDIR)$(icons24dir)" "$(DESTDIR)$(icons256dir)" "$(DESTDIR)$(icons32dir)" "$(DESTDIR)$(icons48dir)" "$(DESTDIR)$(icons512dir)" "$(DESTDIR)$(icons64dir)" "$(DESTDIR)$(icons96dir)" "$(DESTDIR)$(iconsscalabledir)"; do \
|
||||
for dir in "$(DESTDIR)$(desktopdir)" "$(DESTDIR)$(icons128dir)" "$(DESTDIR)$(icons16dir)" "$(DESTDIR)$(icons22dir)" "$(DESTDIR)$(icons24dir)" "$(DESTDIR)$(icons256dir)" "$(DESTDIR)$(icons32dir)" "$(DESTDIR)$(icons48dir)" "$(DESTDIR)$(icons512dir)" "$(DESTDIR)$(icons64dir)" "$(DESTDIR)$(icons96dir)" "$(DESTDIR)$(iconsscalabledir)" "$(DESTDIR)$(metainfodir)"; do \
|
||||
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
|
||||
done
|
||||
install: install-am
|
||||
@ -1645,13 +1702,13 @@ info: info-am
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am: install-dist_appdataDATA install-dist_desktopDATA \
|
||||
install-dist_icons128DATA install-dist_icons16DATA \
|
||||
install-dist_icons22DATA install-dist_icons24DATA \
|
||||
install-dist_icons256DATA install-dist_icons32DATA \
|
||||
install-dist_icons48DATA install-dist_icons512DATA \
|
||||
install-dist_icons64DATA install-dist_icons96DATA \
|
||||
install-dist_iconsscalableDATA
|
||||
install-data-am: install-dist_desktopDATA install-dist_icons128DATA \
|
||||
install-dist_icons16DATA install-dist_icons22DATA \
|
||||
install-dist_icons24DATA install-dist_icons256DATA \
|
||||
install-dist_icons32DATA install-dist_icons48DATA \
|
||||
install-dist_icons512DATA install-dist_icons64DATA \
|
||||
install-dist_icons96DATA install-dist_iconsscalableDATA \
|
||||
install-dist_metainfoDATA
|
||||
|
||||
install-dvi: install-dvi-am
|
||||
|
||||
@ -1695,48 +1752,48 @@ ps: ps-am
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am: uninstall-dist_appdataDATA uninstall-dist_desktopDATA \
|
||||
uninstall-dist_icons128DATA uninstall-dist_icons16DATA \
|
||||
uninstall-dist_icons22DATA uninstall-dist_icons24DATA \
|
||||
uninstall-dist_icons256DATA uninstall-dist_icons32DATA \
|
||||
uninstall-dist_icons48DATA uninstall-dist_icons512DATA \
|
||||
uninstall-dist_icons64DATA uninstall-dist_icons96DATA \
|
||||
uninstall-dist_iconsscalableDATA
|
||||
uninstall-am: uninstall-dist_desktopDATA uninstall-dist_icons128DATA \
|
||||
uninstall-dist_icons16DATA uninstall-dist_icons22DATA \
|
||||
uninstall-dist_icons24DATA uninstall-dist_icons256DATA \
|
||||
uninstall-dist_icons32DATA uninstall-dist_icons48DATA \
|
||||
uninstall-dist_icons512DATA uninstall-dist_icons64DATA \
|
||||
uninstall-dist_icons96DATA uninstall-dist_iconsscalableDATA \
|
||||
uninstall-dist_metainfoDATA
|
||||
|
||||
.MAKE: install-am install-strip
|
||||
|
||||
.PHONY: all all-am check check-am clean clean-generic cscopelist-am \
|
||||
ctags-am distclean distclean-generic distdir dvi dvi-am html \
|
||||
html-am info info-am install install-am install-data \
|
||||
install-data-am install-dist_appdataDATA \
|
||||
install-dist_desktopDATA install-dist_icons128DATA \
|
||||
install-dist_icons16DATA install-dist_icons22DATA \
|
||||
install-dist_icons24DATA install-dist_icons256DATA \
|
||||
install-dist_icons32DATA install-dist_icons48DATA \
|
||||
install-dist_icons512DATA install-dist_icons64DATA \
|
||||
install-dist_icons96DATA install-dist_iconsscalableDATA \
|
||||
install-data-am install-dist_desktopDATA \
|
||||
install-dist_icons128DATA install-dist_icons16DATA \
|
||||
install-dist_icons22DATA install-dist_icons24DATA \
|
||||
install-dist_icons256DATA install-dist_icons32DATA \
|
||||
install-dist_icons48DATA install-dist_icons512DATA \
|
||||
install-dist_icons64DATA install-dist_icons96DATA \
|
||||
install-dist_iconsscalableDATA install-dist_metainfoDATA \
|
||||
install-dvi install-dvi-am install-exec install-exec-am \
|
||||
install-html install-html-am install-info install-info-am \
|
||||
install-man install-pdf install-pdf-am install-ps \
|
||||
install-ps-am install-strip installcheck installcheck-am \
|
||||
installdirs maintainer-clean maintainer-clean-generic \
|
||||
mostlyclean mostlyclean-generic pdf pdf-am ps ps-am tags-am \
|
||||
uninstall uninstall-am uninstall-dist_appdataDATA \
|
||||
uninstall-dist_desktopDATA uninstall-dist_icons128DATA \
|
||||
uninstall-dist_icons16DATA uninstall-dist_icons22DATA \
|
||||
uninstall-dist_icons24DATA uninstall-dist_icons256DATA \
|
||||
uninstall-dist_icons32DATA uninstall-dist_icons48DATA \
|
||||
uninstall-dist_icons512DATA uninstall-dist_icons64DATA \
|
||||
uninstall-dist_icons96DATA uninstall-dist_iconsscalableDATA
|
||||
uninstall uninstall-am uninstall-dist_desktopDATA \
|
||||
uninstall-dist_icons128DATA uninstall-dist_icons16DATA \
|
||||
uninstall-dist_icons22DATA uninstall-dist_icons24DATA \
|
||||
uninstall-dist_icons256DATA uninstall-dist_icons32DATA \
|
||||
uninstall-dist_icons48DATA uninstall-dist_icons512DATA \
|
||||
uninstall-dist_icons64DATA uninstall-dist_icons96DATA \
|
||||
uninstall-dist_iconsscalableDATA uninstall-dist_metainfoDATA
|
||||
|
||||
.PRECIOUS: Makefile
|
||||
|
||||
|
||||
trader.desktop: trader.desktop.in
|
||||
au.org.zap.trader.desktop: au.org.zap.trader.desktop.in
|
||||
$(top_srcdir)/build-aux/msgfmt-desktop -d $(top_srcdir)/po $< $@
|
||||
|
||||
trader.appdata.xml: trader.appdata.xml.in
|
||||
$(top_srcdir)/build-aux/msgfmt-appdata -d $(top_srcdir)/po $< $@
|
||||
au.org.zap.trader.metainfo.xml: au.org.zap.trader.metainfo.xml.in
|
||||
$(top_srcdir)/build-aux/msgfmt-metainfo -d $(top_srcdir)/po $< $@
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
|
@ -1,12 +1,12 @@
|
||||
#########################################################################
|
||||
# #
|
||||
# Star Traders: A Game of Interstellar Trading #
|
||||
# Copyright (C) 1990-2022, John Zaitseff #
|
||||
# Copyright (C) 1990-2024, John Zaitseff #
|
||||
# #
|
||||
#########################################################################
|
||||
|
||||
# Author: John Zaitseff <J.Zaitseff@zap.org.au>
|
||||
# $Id: 4c1800749e2b7be38d4fffc984e4992dd01d3a17 $
|
||||
# $Id: bdf35fbf2ef534a36aaef7389875ad416721ebc4 $
|
||||
|
||||
# This file provides a translated desktop entry for Star Traders and
|
||||
# conforms to the Desktop Entry Specification v1.5.
|
||||
@ -32,10 +32,13 @@ Name[fr]=Star Traders
|
||||
Name[hr]=Star Traders
|
||||
Name[hu]=Star Traders
|
||||
Name[nb]=Star Traders
|
||||
Name[pl]=Gwiezdni Traderzy
|
||||
Name[pt_BR]=Comerciantes Estelares
|
||||
Name[ro]=Star Traders
|
||||
Name[ru]=Звёздные торговцы
|
||||
Name[sr]=Звездани трговци
|
||||
Name[sv]=Star Traders
|
||||
Name[uk]=Зоряні торговці
|
||||
Name=Star Traders
|
||||
Comment[en@quot]=Play Star Traders, a simple game of interstellar trading
|
||||
Comment[en_AU]=Play Star Traders, a simple game of interstellar trading
|
||||
@ -50,10 +53,13 @@ Comment[fr]=Jouer à Star Traders, un simple jeu de commerce interstellaire
|
||||
Comment[hr]=Igrajte Star Traders, jednostavnu igru međuzvjezdanog trgovanja
|
||||
Comment[hu]=A Star Traders, egy egyszerű csillagközi kereskedelmi játék indítása
|
||||
Comment[nb]=Spill Star Traders, et enkelt spill med interstellar handel
|
||||
Comment[pl]=Zagraj w „Gwiezdni Traderzy”, prostą grę o handlu międzygwiezdnym
|
||||
Comment[pt_BR]=Jogue Comerciantes Estelares, um jogo simples de comércio interestelar
|
||||
Comment[ro]=Joacă Star Traders, un joc simplu de comerț interstelar
|
||||
Comment[ru]=Играть в «Звёздные торговцы», простую игру о межзвёздной торговле
|
||||
Comment[sr]=Играјте Звездане трговце, једноставну игру међузвезданог трговања
|
||||
Comment[sv]=Spela Star Traders, ett enkelt spel om interstellär handel
|
||||
Comment[uk]=Грати в «Зоряні торговці», просту гру про міжзоряну торгівлю
|
||||
Comment=Play Star Traders, a simple game of interstellar trading
|
||||
# TRANSLATORS: A list of keywords describing Star Traders. By all means
|
||||
# add your own keywords!
|
||||
@ -68,10 +74,13 @@ Keywords[eo]=ludo;kosmo;negoco;strategio;
|
||||
Keywords[fr]=jeu;interstellaire;commerce;stratégie;
|
||||
Keywords[hu]=játék;csillagközi;kereskedés;stratégia;
|
||||
Keywords[nb]=spill;interstellar;handel;strategi;
|
||||
Keywords[pl]=gra;międzygwiezdna;handel;strategia;
|
||||
Keywords[pt_BR]=jogo;interestelar;comércio;estratégia;
|
||||
Keywords[ro]=joc;interstelar;tranzacționare;strategie;
|
||||
Keywords[ru]=игра;межзвёздная;торговля;стратегия;
|
||||
Keywords[sr]=игра;међузвездано;трговање;стратегија;
|
||||
Keywords[sv]=spel;interstellär;handel;strategi;
|
||||
Keywords[uk]=гра;міжзоряна;торгівля;стратегія;
|
||||
Keywords=game;interstellar;trading;strategy;
|
||||
Icon=trader
|
||||
Exec=trader
|
@ -3,15 +3,15 @@
|
||||
*************************************************************************
|
||||
* *
|
||||
* Star Traders: A Game of Interstellar Trading *
|
||||
* Copyright (C) 1990-2022, John Zaitseff *
|
||||
* Copyright (C) 1990-2024, John Zaitseff *
|
||||
* *
|
||||
*************************************************************************
|
||||
|
||||
Author: John Zaitseff <J.Zaitseff@zap.org.au>
|
||||
$Id: 7ca702b2bb5b189a33f41aa29676f6237cb5b2cd $
|
||||
$Id: eafc0c313fc008dae94d7bb680545522fa173587 $
|
||||
|
||||
This file provides application metadata for Star Traders and conforms to
|
||||
the AppStream 0.12 specification.
|
||||
the AppStream 1.0 specification.
|
||||
|
||||
Copying and distribution of this file, with or without modification, are
|
||||
permitted in any medium without royalty provided the copyright notice and
|
||||
@ -21,10 +21,13 @@ warranty.
|
||||
<component type="console-application">
|
||||
<id>au.org.zap.trader</id>
|
||||
<name>Star Traders</name>
|
||||
<name xml:lang="uk">Зоряні торговці</name>
|
||||
<name xml:lang="sv">Star Traders</name>
|
||||
<name xml:lang="sr">Звездани трговци</name>
|
||||
<name xml:lang="ru">Звёздные торговцы</name>
|
||||
<name xml:lang="ro">Star Traders</name>
|
||||
<name xml:lang="pt_BR">Comerciantes Estelares</name>
|
||||
<name xml:lang="pl">Gwiezdni Traderzy</name>
|
||||
<name xml:lang="nb">Star Traders</name>
|
||||
<name xml:lang="hu">Star Traders</name>
|
||||
<name xml:lang="hr">Star Traders</name>
|
||||
@ -39,10 +42,13 @@ warranty.
|
||||
<name xml:lang="en_AU">Star Traders</name>
|
||||
<name xml:lang="en@quot">Star Traders</name>
|
||||
<summary>Play Star Traders, a simple game of interstellar trading</summary>
|
||||
<summary xml:lang="uk">Грати в «Зоряні торговці», просту гру про міжзоряну торгівлю</summary>
|
||||
<summary xml:lang="sv">Spela Star Traders, ett enkelt spel om interstellär handel</summary>
|
||||
<summary xml:lang="sr">Играјте Звездане трговце, једноставну игру међузвезданог трговања</summary>
|
||||
<summary xml:lang="ru">Играть в «Звёздные торговцы», простую игру о межзвёздной торговле</summary>
|
||||
<summary xml:lang="ro">Joacă Star Traders, un joc simplu de comerț interstelar</summary>
|
||||
<summary xml:lang="pt_BR">Jogue Comerciantes Estelares, um jogo simples de comércio interestelar</summary>
|
||||
<summary xml:lang="pl">Zagraj w „Gwiezdni Traderzy”, prostą grę o handlu międzygwiezdnym</summary>
|
||||
<summary xml:lang="nb">Spill Star Traders, et enkelt spill med interstellar handel</summary>
|
||||
<summary xml:lang="hu">A Star Traders, egy egyszerű csillagközi kereskedelmi játék indítása</summary>
|
||||
<summary xml:lang="hr">Igrajte Star Traders, jednostavnu igru međuzvjezdanog trgovanja</summary>
|
||||
@ -62,12 +68,15 @@ warranty.
|
||||
objective is to create companies, buy and sell shares, borrow and
|
||||
repay money, in order to become the wealthiest player (the winner).
|
||||
</p>
|
||||
<p xml:lang="uk">«Зоряні торговці» — це проста гра про міжзоряну торгівлю, де метою гри є створення компаній, купівля та продаж акцій, отримання та погашення кредиту, щоб стати найбагатшим гравцем-переможцем.</p>
|
||||
<p xml:lang="sv">Star Traders är ett enkelt spel om interstellär handel, där målet är att skapa företag, köpa och sälja aktier, låna och betala tillbaka pengar, allt för att bli den rikaste spelaren (vinnaren).</p>
|
||||
<p xml:lang="sr">Звездани трговци је једноставна игра међузвезданог трговања, где је циљ стварање компанија, куповина и продаја акција, позајмљивање и враћање новца, како би се постао најбогатији играч (победник).</p>
|
||||
<p xml:lang="ru">«Звёздные торговцы» — это простая игра о межзвёздной торговле, где целью игры является создание компаний, покупка и продажа акций, получение и погашение кредита, чтобы стать самым богатым игроком-победителем.</p>
|
||||
<p xml:lang="ro">„Star Traders” este un joc simplu de comerț interstelar, în care obiectivul este să creezi companii, să cumperi și să vinzi acțiuni, să împrumuți și să rambursezi bani, pentru a deveni cel mai bogat jucător (câștigătorul).</p>
|
||||
<p xml:lang="pt_BR">Comerciantes Estelares é um jogo simples de comércio interestelar, onde o objetivo é criar empresas, comprar e vender ações, pedir emprestado e devolver dinheiro, para se tornar o jogador mais rico (o vencedor).</p>
|
||||
<p xml:lang="pl">„Gwiezdni Traderzy” to prosta gra o handlu międzygwiezdnym, której celem jest tworzenie firm, kupno i sprzedaż akcji, zdobywanie i spłacanie pożyczek, aby stać się najbogatszym zwycięskim graczem.</p>
|
||||
<p xml:lang="nb">Star Traders er et enkelt spill med interstellar handel, der målet med spillet er å opprette firmaer, kjøpe og selge aksjer, låne og betale tilbake penger for å bli den rikeste spilleren (vinneren).</p>
|
||||
<p xml:lang="hu">A Star Traders egy egyszerű csillagközi kereskedelmi játék, ahol a játék célja társaságok létrehozása, részvények vásárlása és eladása, pénz kölcsönkérése és visszafizetése azért, hogy a leggazdagabb játékossá (győztessé) váljon.</p>
|
||||
<p xml:lang="hu">A Star Traders egy egyszerű csillagközi kereskedelmi játék, ahol a cél vállalatok létrehozása, részvények vásárlása és eladása, kölcsönök felvétele és visszafizetése, hogy a leggazdagabb játékossá (győztessé) váljon.</p>
|
||||
<p xml:lang="hr">„Star Traders” (Međuzvjezdani trgovci) je jednostavna igra međuzvjezadnog trgovanja, gdje je cilj igre stvarati tvrtke, kupovati i prodavati dionice te posuđivati i vraćati novac kako biste postali najbogatiji igrač (pobjednik).</p>
|
||||
<p xml:lang="fr">Star Traders est un simple jeu de commerce interstellaire où l'objectif consiste à créer des sociétés, acheter et vendre des actions, emprunter et rembourser de l'argent afin de devenir le joueur le plus riche (le gagnant).</p>
|
||||
<p xml:lang="fi">Tähtikauppiaat on yksinkertainen tähtienvälisen kaupan peli, jossa pelin tarkoitus on luoda yhtiöitä, ostaa ja myydä osakkeita, lainata ja maksaa takaisin rahaa, tarkoituksena tulla varakkaimmaksi pelaajaksi (voittaja).</p>
|
||||
@ -80,7 +89,7 @@ warranty.
|
||||
<p xml:lang="en_AU">Star Traders is a simple game of interstellar trading, where the objective is to create companies, buy and sell shares, borrow and repay money, in order to become the wealthiest player (the winner).</p>
|
||||
<p xml:lang="en@quot">Star Traders is a simple game of interstellar trading, where the objective is to create companies, buy and sell shares, borrow and repay money, in order to become the wealthiest player (the winner).</p>
|
||||
</description>
|
||||
<launchable type="desktop-id">trader.desktop</launchable>
|
||||
<launchable type="desktop-id">au.org.zap.trader.desktop</launchable>
|
||||
<provides>
|
||||
<binary>trader</binary>
|
||||
</provides>
|
||||
@ -90,10 +99,13 @@ warranty.
|
||||
</categories>
|
||||
<url type="homepage">https://www.zap.org.au/projects/trader/</url>
|
||||
<developer_name>John Zaitseff</developer_name>
|
||||
<developer_name xml:lang="uk">John Zaitseff</developer_name>
|
||||
<developer_name xml:lang="sv">John Zaitseff</developer_name>
|
||||
<developer_name xml:lang="sr">Џон Зајцеф (John Zaitseff)</developer_name>
|
||||
<developer_name xml:lang="ru">John Zaitseff</developer_name>
|
||||
<developer_name xml:lang="ro">John Zaitseff</developer_name>
|
||||
<developer_name xml:lang="pt_BR">John Zaitseff</developer_name>
|
||||
<developer_name xml:lang="pl">John Zaitseff</developer_name>
|
||||
<developer_name xml:lang="nb">John Zaitseff</developer_name>
|
||||
<developer_name xml:lang="hu">John Zaitseff</developer_name>
|
||||
<developer_name xml:lang="hr">John Zaitseff</developer_name>
|
||||
@ -107,12 +119,58 @@ warranty.
|
||||
<developer_name xml:lang="en_CA">John Zaitseff</developer_name>
|
||||
<developer_name xml:lang="en_AU">John Zaitseff</developer_name>
|
||||
<developer_name xml:lang="en@quot">John Zaitseff</developer_name>
|
||||
<developer id="j.zaitseff.zap.org.au">
|
||||
<name>John Zaitseff</name>
|
||||
<name xml:lang="uk">John Zaitseff</name>
|
||||
<name xml:lang="sv">John Zaitseff</name>
|
||||
<name xml:lang="sr">Џон Зајцеф (John Zaitseff)</name>
|
||||
<name xml:lang="ru">John Zaitseff</name>
|
||||
<name xml:lang="ro">John Zaitseff</name>
|
||||
<name xml:lang="pt_BR">John Zaitseff</name>
|
||||
<name xml:lang="pl">John Zaitseff</name>
|
||||
<name xml:lang="nb">John Zaitseff</name>
|
||||
<name xml:lang="hu">John Zaitseff</name>
|
||||
<name xml:lang="hr">John Zaitseff</name>
|
||||
<name xml:lang="fr">John Zaitseff</name>
|
||||
<name xml:lang="fi">John Zaitseff</name>
|
||||
<name xml:lang="eo">John Zaitseff</name>
|
||||
<name xml:lang="de">John Zaitseff</name>
|
||||
<name xml:lang="da">John Zaitseff</name>
|
||||
<name xml:lang="en_US">John Zaitseff</name>
|
||||
<name xml:lang="en_GB">John Zaitseff</name>
|
||||
<name xml:lang="en_CA">John Zaitseff</name>
|
||||
<name xml:lang="en_AU">John Zaitseff</name>
|
||||
<name xml:lang="en@quot">John Zaitseff</name>
|
||||
</developer>
|
||||
<icon type="remote" width="512" height="512">https://www.zap.org.au/projects/trader/icon.svg</icon>
|
||||
<icon type="remote" width="512" height="512">https://www.zap.org.au/projects/trader/icon.png</icon>
|
||||
<screenshots>
|
||||
<screenshot type="default">
|
||||
<caption>Star Traders screenshot</caption>
|
||||
<caption xml:lang="uk">Скріншот із гри «Зоряні торговці»</caption>
|
||||
<caption xml:lang="sv">Skärmdump från Star Traders</caption>
|
||||
<caption xml:lang="sr">Снимак екрана са Звездани трговци</caption>
|
||||
<caption xml:lang="ru">Скриншот из игры «Звёздные торговцы»</caption>
|
||||
<caption xml:lang="ro">Captură de ecran de la Star Traders</caption>
|
||||
<caption xml:lang="pt_BR">Captura de tela do Comerciantes Estelares</caption>
|
||||
<caption xml:lang="pl">Zrzut ekranu z gry „Gwiezdni Traderzy”</caption>
|
||||
<caption xml:lang="nb">Skjermbilde av Star Traders</caption>
|
||||
<caption xml:lang="hu">Star Traders képernyőkép</caption>
|
||||
<caption xml:lang="hr">Snimka zaslona „Star Traders” (Međuzvjezdani trgovci)</caption>
|
||||
<caption xml:lang="fr">Capture d'écran de Star Traders</caption>
|
||||
<caption xml:lang="fi">Kuvakaappaus Tähtikauppiaat</caption>
|
||||
<caption xml:lang="eo">Ekrankopio de Star Traders</caption>
|
||||
<caption xml:lang="de">Screenshot von Star Traders</caption>
|
||||
<caption xml:lang="da">Skærmbillede fra Star Traders</caption>
|
||||
<caption xml:lang="en_US">Star Traders screenshot</caption>
|
||||
<caption xml:lang="en_GB">Star Traders screenshot</caption>
|
||||
<caption xml:lang="en_CA">Star Traders screenshot</caption>
|
||||
<caption xml:lang="en_AU">Star Traders screenshot</caption>
|
||||
<caption xml:lang="en@quot">Star Traders screenshot</caption>
|
||||
<image>https://www.zap.org.au/projects/trader/screenshot.png</image>
|
||||
</screenshot>
|
||||
</screenshots>
|
||||
<metadata_license>FSFAP</metadata_license>
|
||||
<project_license>GPL-3.0+</project_license>
|
||||
<content_rating type="oars-1.0"/>
|
||||
<content_rating type="oars-1.1"/>
|
||||
</component>
|
@ -17,12 +17,12 @@
|
||||
#########################################################################
|
||||
# #
|
||||
# Star Traders: A Game of Interstellar Trading #
|
||||
# Copyright (C) 1990-2022, John Zaitseff #
|
||||
# Copyright (C) 1990-2024, John Zaitseff #
|
||||
# #
|
||||
#########################################################################
|
||||
|
||||
# Author: John Zaitseff <J.Zaitseff@zap.org.au>
|
||||
# $Id: 542b3c43fea5fa6dd900b10b99fa6ad1825e8676 $
|
||||
# $Id: baebbfcc15d10ba2f667871fafcdfceb402ee01b $
|
||||
#
|
||||
# This file, doc/Makefile.am, contains the documentation directory
|
||||
# Makefile for Star Traders. It needs to be processed by automake to
|
||||
@ -119,14 +119,15 @@ subdir = doc
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/00gnulib.m4 \
|
||||
$(top_srcdir)/m4/absolute-header.m4 $(top_srcdir)/m4/assert.m4 \
|
||||
$(top_srcdir)/m4/assert_h.m4 \
|
||||
$(top_srcdir)/m4/ax_c___attribute__.m4 \
|
||||
$(top_srcdir)/m4/ax_cflags_warn_all.m4 \
|
||||
$(top_srcdir)/m4/ax_compiler_vendor.m4 \
|
||||
$(top_srcdir)/m4/ax_prepend_flag.m4 \
|
||||
$(top_srcdir)/m4/ax_require_defined.m4 \
|
||||
$(top_srcdir)/m4/ax_with_curses.m4 $(top_srcdir)/m4/btowc.m4 \
|
||||
$(top_srcdir)/m4/codeset.m4 $(top_srcdir)/m4/config-h.m4 \
|
||||
$(top_srcdir)/m4/extensions.m4 \
|
||||
$(top_srcdir)/m4/c-bool.m4 $(top_srcdir)/m4/codeset.m4 \
|
||||
$(top_srcdir)/m4/config-h.m4 $(top_srcdir)/m4/extensions.m4 \
|
||||
$(top_srcdir)/m4/extern-inline.m4 $(top_srcdir)/m4/free.m4 \
|
||||
$(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/gettimeofday.m4 \
|
||||
$(top_srcdir)/m4/gnulib-common.m4 \
|
||||
@ -144,9 +145,9 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/00gnulib.m4 \
|
||||
$(top_srcdir)/m4/mbsrtowcs.m4 $(top_srcdir)/m4/mbstate_t.m4 \
|
||||
$(top_srcdir)/m4/mbtowc.m4 $(top_srcdir)/m4/memchr.m4 \
|
||||
$(top_srcdir)/m4/mmap-anon.m4 $(top_srcdir)/m4/monetary_h.m4 \
|
||||
$(top_srcdir)/m4/multiarch.m4 $(top_srcdir)/m4/nocrash.m4 \
|
||||
$(top_srcdir)/m4/off_t.m4 $(top_srcdir)/m4/setlocale_null.m4 \
|
||||
$(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/stdbool.m4 \
|
||||
$(top_srcdir)/m4/multiarch.m4 $(top_srcdir)/m4/musl.m4 \
|
||||
$(top_srcdir)/m4/nocrash.m4 $(top_srcdir)/m4/off_t.m4 \
|
||||
$(top_srcdir)/m4/setlocale_null.m4 $(top_srcdir)/m4/ssize_t.m4 \
|
||||
$(top_srcdir)/m4/stddef_h.m4 $(top_srcdir)/m4/stdint.m4 \
|
||||
$(top_srcdir)/m4/stdio_h.m4 $(top_srcdir)/m4/stdlib_h.m4 \
|
||||
$(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/sys_socket_h.m4 \
|
||||
@ -226,6 +227,7 @@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||
APPLE_UNIVERSAL_BUILD = @APPLE_UNIVERSAL_BUILD@
|
||||
AR = @AR@
|
||||
ARFLAGS = @ARFLAGS@
|
||||
ASSERT_H = @ASSERT_H@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
@ -337,6 +339,7 @@ GL_GNULIB_GETOPT_POSIX = @GL_GNULIB_GETOPT_POSIX@
|
||||
GL_GNULIB_GETPAGESIZE = @GL_GNULIB_GETPAGESIZE@
|
||||
GL_GNULIB_GETPASS = @GL_GNULIB_GETPASS@
|
||||
GL_GNULIB_GETPASS_GNU = @GL_GNULIB_GETPASS_GNU@
|
||||
GL_GNULIB_GETPROGNAME = @GL_GNULIB_GETPROGNAME@
|
||||
GL_GNULIB_GETSUBOPT = @GL_GNULIB_GETSUBOPT@
|
||||
GL_GNULIB_GETTIMEOFDAY = @GL_GNULIB_GETTIMEOFDAY@
|
||||
GL_GNULIB_GETUMASK = @GL_GNULIB_GETUMASK@
|
||||
@ -350,6 +353,7 @@ GL_GNULIB_ISATTY = @GL_GNULIB_ISATTY@
|
||||
GL_GNULIB_ISWBLANK = @GL_GNULIB_ISWBLANK@
|
||||
GL_GNULIB_ISWCTYPE = @GL_GNULIB_ISWCTYPE@
|
||||
GL_GNULIB_ISWDIGIT = @GL_GNULIB_ISWDIGIT@
|
||||
GL_GNULIB_ISWPUNCT = @GL_GNULIB_ISWPUNCT@
|
||||
GL_GNULIB_ISWXDIGIT = @GL_GNULIB_ISWXDIGIT@
|
||||
GL_GNULIB_LCHMOD = @GL_GNULIB_LCHMOD@
|
||||
GL_GNULIB_LCHOWN = @GL_GNULIB_LCHOWN@
|
||||
@ -381,6 +385,8 @@ GL_GNULIB_MBSSEP = @GL_GNULIB_MBSSEP@
|
||||
GL_GNULIB_MBSSPN = @GL_GNULIB_MBSSPN@
|
||||
GL_GNULIB_MBSSTR = @GL_GNULIB_MBSSTR@
|
||||
GL_GNULIB_MBSTOK_R = @GL_GNULIB_MBSTOK_R@
|
||||
GL_GNULIB_MBSTOWCS = @GL_GNULIB_MBSTOWCS@
|
||||
GL_GNULIB_MBSZERO = @GL_GNULIB_MBSZERO@
|
||||
GL_GNULIB_MBTOWC = @GL_GNULIB_MBTOWC@
|
||||
GL_GNULIB_MDA_ACCESS = @GL_GNULIB_MDA_ACCESS@
|
||||
GL_GNULIB_MDA_CHDIR = @GL_GNULIB_MDA_CHDIR@
|
||||
@ -425,6 +431,7 @@ GL_GNULIB_MEMCHR = @GL_GNULIB_MEMCHR@
|
||||
GL_GNULIB_MEMMEM = @GL_GNULIB_MEMMEM@
|
||||
GL_GNULIB_MEMPCPY = @GL_GNULIB_MEMPCPY@
|
||||
GL_GNULIB_MEMRCHR = @GL_GNULIB_MEMRCHR@
|
||||
GL_GNULIB_MEMSET_EXPLICIT = @GL_GNULIB_MEMSET_EXPLICIT@
|
||||
GL_GNULIB_MKDIR = @GL_GNULIB_MKDIR@
|
||||
GL_GNULIB_MKDIRAT = @GL_GNULIB_MKDIRAT@
|
||||
GL_GNULIB_MKDTEMP = @GL_GNULIB_MKDTEMP@
|
||||
@ -459,6 +466,7 @@ GL_GNULIB_PUTENV = @GL_GNULIB_PUTENV@
|
||||
GL_GNULIB_PUTS = @GL_GNULIB_PUTS@
|
||||
GL_GNULIB_PWRITE = @GL_GNULIB_PWRITE@
|
||||
GL_GNULIB_QSORT_R = @GL_GNULIB_QSORT_R@
|
||||
GL_GNULIB_RAND = @GL_GNULIB_RAND@
|
||||
GL_GNULIB_RANDOM = @GL_GNULIB_RANDOM@
|
||||
GL_GNULIB_RANDOM_R = @GL_GNULIB_RANDOM_R@
|
||||
GL_GNULIB_RAWMEMCHR = @GL_GNULIB_RAWMEMCHR@
|
||||
@ -519,6 +527,7 @@ GL_GNULIB_STRVERSCMP = @GL_GNULIB_STRVERSCMP@
|
||||
GL_GNULIB_SYMLINK = @GL_GNULIB_SYMLINK@
|
||||
GL_GNULIB_SYMLINKAT = @GL_GNULIB_SYMLINKAT@
|
||||
GL_GNULIB_SYSTEM_POSIX = @GL_GNULIB_SYSTEM_POSIX@
|
||||
GL_GNULIB_TIME = @GL_GNULIB_TIME@
|
||||
GL_GNULIB_TIMEGM = @GL_GNULIB_TIMEGM@
|
||||
GL_GNULIB_TIMESPEC_GET = @GL_GNULIB_TIMESPEC_GET@
|
||||
GL_GNULIB_TIMESPEC_GETRES = @GL_GNULIB_TIMESPEC_GETRES@
|
||||
@ -580,6 +589,7 @@ GL_GNULIB_WCTOMB = @GL_GNULIB_WCTOMB@
|
||||
GL_GNULIB_WCTRANS = @GL_GNULIB_WCTRANS@
|
||||
GL_GNULIB_WCTYPE = @GL_GNULIB_WCTYPE@
|
||||
GL_GNULIB_WCWIDTH = @GL_GNULIB_WCWIDTH@
|
||||
GL_GNULIB_WGETCWD = @GL_GNULIB_WGETCWD@
|
||||
GL_GNULIB_WMEMCHR = @GL_GNULIB_WMEMCHR@
|
||||
GL_GNULIB_WMEMCMP = @GL_GNULIB_WMEMCMP@
|
||||
GL_GNULIB_WMEMCPY = @GL_GNULIB_WMEMCPY@
|
||||
@ -591,8 +601,8 @@ GL_GNULIB__EXIT = @GL_GNULIB__EXIT@
|
||||
GMSGFMT = @GMSGFMT@
|
||||
GMSGFMT_015 = @GMSGFMT_015@
|
||||
GNULIBHEADERS_OVERRIDE_WINT_T = @GNULIBHEADERS_OVERRIDE_WINT_T@
|
||||
GNULIB_GETTIMEOFDAY = @GNULIB_GETTIMEOFDAY@
|
||||
GREP = @GREP@
|
||||
HARD_LOCALE_LIB = @HARD_LOCALE_LIB@
|
||||
HAVE_ALIGNED_ALLOC = @HAVE_ALIGNED_ALLOC@
|
||||
HAVE_ATOLL = @HAVE_ATOLL@
|
||||
HAVE_BTOWC = @HAVE_BTOWC@
|
||||
@ -620,6 +630,7 @@ HAVE_DECL_GETLOGIN = @HAVE_DECL_GETLOGIN@
|
||||
HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
|
||||
HAVE_DECL_GETPAGESIZE = @HAVE_DECL_GETPAGESIZE@
|
||||
HAVE_DECL_GETUSERSHELL = @HAVE_DECL_GETUSERSHELL@
|
||||
HAVE_DECL_GETW = @HAVE_DECL_GETW@
|
||||
HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
|
||||
HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
|
||||
HAVE_DECL_INITSTATE = @HAVE_DECL_INITSTATE@
|
||||
@ -627,6 +638,8 @@ HAVE_DECL_LOCALTIME_R = @HAVE_DECL_LOCALTIME_R@
|
||||
HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
|
||||
HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
|
||||
HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@
|
||||
HAVE_DECL_PROGRAM_INVOCATION_NAME = @HAVE_DECL_PROGRAM_INVOCATION_NAME@
|
||||
HAVE_DECL_PUTW = @HAVE_DECL_PUTW@
|
||||
HAVE_DECL_SETENV = @HAVE_DECL_SETENV@
|
||||
HAVE_DECL_SETHOSTNAME = @HAVE_DECL_SETHOSTNAME@
|
||||
HAVE_DECL_SETSTATE = @HAVE_DECL_SETSTATE@
|
||||
@ -675,11 +688,14 @@ HAVE_GETLOGIN = @HAVE_GETLOGIN@
|
||||
HAVE_GETOPT_H = @HAVE_GETOPT_H@
|
||||
HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@
|
||||
HAVE_GETPASS = @HAVE_GETPASS@
|
||||
HAVE_GETPROGNAME = @HAVE_GETPROGNAME@
|
||||
HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
|
||||
HAVE_GETTIMEOFDAY = @HAVE_GETTIMEOFDAY@
|
||||
HAVE_GETUMASK = @HAVE_GETUMASK@
|
||||
HAVE_GRANTPT = @HAVE_GRANTPT@
|
||||
HAVE_GROUP_MEMBER = @HAVE_GROUP_MEMBER@
|
||||
HAVE_IMAXABS = @HAVE_IMAXABS@
|
||||
HAVE_IMAXDIV = @HAVE_IMAXDIV@
|
||||
HAVE_IMAXDIV_T = @HAVE_IMAXDIV_T@
|
||||
HAVE_INITSTATE = @HAVE_INITSTATE@
|
||||
HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
|
||||
@ -699,6 +715,7 @@ HAVE_MBSNRTOWCS = @HAVE_MBSNRTOWCS@
|
||||
HAVE_MBSRTOWCS = @HAVE_MBSRTOWCS@
|
||||
HAVE_MBTOWC = @HAVE_MBTOWC@
|
||||
HAVE_MEMPCPY = @HAVE_MEMPCPY@
|
||||
HAVE_MEMSET_EXPLICIT = @HAVE_MEMSET_EXPLICIT@
|
||||
HAVE_MKDIRAT = @HAVE_MKDIRAT@
|
||||
HAVE_MKDTEMP = @HAVE_MKDTEMP@
|
||||
HAVE_MKFIFO = @HAVE_MKFIFO@
|
||||
@ -777,6 +794,7 @@ HAVE_TIMESPEC_GET = @HAVE_TIMESPEC_GET@
|
||||
HAVE_TIMESPEC_GETRES = @HAVE_TIMESPEC_GETRES@
|
||||
HAVE_TIMEZONE_T = @HAVE_TIMEZONE_T@
|
||||
HAVE_UNISTD_H = @HAVE_UNISTD_H@
|
||||
HAVE_UNISTRING_WOE32DLL_H = @HAVE_UNISTRING_WOE32DLL_H@
|
||||
HAVE_UNLINKAT = @HAVE_UNLINKAT@
|
||||
HAVE_UNLOCKPT = @HAVE_UNLOCKPT@
|
||||
HAVE_USLEEP = @HAVE_USLEEP@
|
||||
@ -825,7 +843,6 @@ HAVE_WMEMMOVE = @HAVE_WMEMMOVE@
|
||||
HAVE_WMEMPCPY = @HAVE_WMEMPCPY@
|
||||
HAVE_WMEMSET = @HAVE_WMEMSET@
|
||||
HAVE_XLOCALE_H = @HAVE_XLOCALE_H@
|
||||
HAVE__BOOL = @HAVE__BOOL@
|
||||
HAVE__EXIT = @HAVE__EXIT@
|
||||
ICONV_CONST = @ICONV_CONST@
|
||||
ICONV_H = @ICONV_H@
|
||||
@ -840,6 +857,10 @@ INT32_MAX_LT_INTMAX_MAX = @INT32_MAX_LT_INTMAX_MAX@
|
||||
INT64_MAX_EQ_LONG_MAX = @INT64_MAX_EQ_LONG_MAX@
|
||||
INTLLIBS = @INTLLIBS@
|
||||
INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
|
||||
LC_COLLATE_IMPLEMENTED = @LC_COLLATE_IMPLEMENTED@
|
||||
LC_MONETARY_IMPLEMENTED = @LC_MONETARY_IMPLEMENTED@
|
||||
LC_NUMERIC_IMPLEMENTED = @LC_NUMERIC_IMPLEMENTED@
|
||||
LC_TIME_IMPLEMENTED = @LC_TIME_IMPLEMENTED@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBGNU_LIBDEPS = @LIBGNU_LIBDEPS@
|
||||
LIBGNU_LTLIBDEPS = @LIBGNU_LTLIBDEPS@
|
||||
@ -867,11 +888,14 @@ LTLIBINTL = @LTLIBINTL@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
MAINT = @MAINT@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MBRTOWC_LIB = @MBRTOWC_LIB@
|
||||
MKDIR_P = @MKDIR_P@
|
||||
MONETARY_H = @MONETARY_H@
|
||||
MSGFMT = @MSGFMT@
|
||||
MSGMERGE = @MSGMERGE@
|
||||
MSGMERGE_FOR_MSGFMT_OPTION = @MSGMERGE_FOR_MSGFMT_OPTION@
|
||||
NEXT_ASSERT_H = @NEXT_ASSERT_H@
|
||||
NEXT_AS_FIRST_DIRECTIVE_ASSERT_H = @NEXT_AS_FIRST_DIRECTIVE_ASSERT_H@
|
||||
NEXT_AS_FIRST_DIRECTIVE_GETOPT_H = @NEXT_AS_FIRST_DIRECTIVE_GETOPT_H@
|
||||
NEXT_AS_FIRST_DIRECTIVE_ICONV_H = @NEXT_AS_FIRST_DIRECTIVE_ICONV_H@
|
||||
NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H = @NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H@
|
||||
@ -941,6 +965,7 @@ REPLACE_CTIME = @REPLACE_CTIME@
|
||||
REPLACE_DPRINTF = @REPLACE_DPRINTF@
|
||||
REPLACE_DUP = @REPLACE_DUP@
|
||||
REPLACE_DUP2 = @REPLACE_DUP2@
|
||||
REPLACE_DUP3 = @REPLACE_DUP3@
|
||||
REPLACE_DUPLOCALE = @REPLACE_DUPLOCALE@
|
||||
REPLACE_EXECL = @REPLACE_EXECL@
|
||||
REPLACE_EXECLE = @REPLACE_EXECLE@
|
||||
@ -950,9 +975,11 @@ REPLACE_EXECVE = @REPLACE_EXECVE@
|
||||
REPLACE_EXECVP = @REPLACE_EXECVP@
|
||||
REPLACE_EXECVPE = @REPLACE_EXECVPE@
|
||||
REPLACE_FACCESSAT = @REPLACE_FACCESSAT@
|
||||
REPLACE_FCHDIR = @REPLACE_FCHDIR@
|
||||
REPLACE_FCHMODAT = @REPLACE_FCHMODAT@
|
||||
REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@
|
||||
REPLACE_FCLOSE = @REPLACE_FCLOSE@
|
||||
REPLACE_FDATASYNC = @REPLACE_FDATASYNC@
|
||||
REPLACE_FDOPEN = @REPLACE_FDOPEN@
|
||||
REPLACE_FFLUSH = @REPLACE_FFLUSH@
|
||||
REPLACE_FFSLL = @REPLACE_FFSLL@
|
||||
@ -975,22 +1002,29 @@ REPLACE_GETCWD = @REPLACE_GETCWD@
|
||||
REPLACE_GETDELIM = @REPLACE_GETDELIM@
|
||||
REPLACE_GETDOMAINNAME = @REPLACE_GETDOMAINNAME@
|
||||
REPLACE_GETDTABLESIZE = @REPLACE_GETDTABLESIZE@
|
||||
REPLACE_GETENTROPY = @REPLACE_GETENTROPY@
|
||||
REPLACE_GETGROUPS = @REPLACE_GETGROUPS@
|
||||
REPLACE_GETLINE = @REPLACE_GETLINE@
|
||||
REPLACE_GETLOADAVG = @REPLACE_GETLOADAVG@
|
||||
REPLACE_GETLOGIN_R = @REPLACE_GETLOGIN_R@
|
||||
REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@
|
||||
REPLACE_GETPASS = @REPLACE_GETPASS@
|
||||
REPLACE_GETPASS_FOR_GETPASS_GNU = @REPLACE_GETPASS_FOR_GETPASS_GNU@
|
||||
REPLACE_GETPROGNAME = @REPLACE_GETPROGNAME@
|
||||
REPLACE_GETSUBOPT = @REPLACE_GETSUBOPT@
|
||||
REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
|
||||
REPLACE_GMTIME = @REPLACE_GMTIME@
|
||||
REPLACE_ICONV = @REPLACE_ICONV@
|
||||
REPLACE_ICONV_OPEN = @REPLACE_ICONV_OPEN@
|
||||
REPLACE_ICONV_UTF = @REPLACE_ICONV_UTF@
|
||||
REPLACE_IMAXABS = @REPLACE_IMAXABS@
|
||||
REPLACE_IMAXDIV = @REPLACE_IMAXDIV@
|
||||
REPLACE_INITSTATE = @REPLACE_INITSTATE@
|
||||
REPLACE_ISATTY = @REPLACE_ISATTY@
|
||||
REPLACE_ISWBLANK = @REPLACE_ISWBLANK@
|
||||
REPLACE_ISWCNTRL = @REPLACE_ISWCNTRL@
|
||||
REPLACE_ISWDIGIT = @REPLACE_ISWDIGIT@
|
||||
REPLACE_ISWPUNCT = @REPLACE_ISWPUNCT@
|
||||
REPLACE_ISWXDIGIT = @REPLACE_ISWXDIGIT@
|
||||
REPLACE_LCHOWN = @REPLACE_LCHOWN@
|
||||
REPLACE_LINK = @REPLACE_LINK@
|
||||
@ -1008,14 +1042,19 @@ REPLACE_MBSINIT = @REPLACE_MBSINIT@
|
||||
REPLACE_MBSNRTOWCS = @REPLACE_MBSNRTOWCS@
|
||||
REPLACE_MBSRTOWCS = @REPLACE_MBSRTOWCS@
|
||||
REPLACE_MBSTATE_T = @REPLACE_MBSTATE_T@
|
||||
REPLACE_MBSTOWCS = @REPLACE_MBSTOWCS@
|
||||
REPLACE_MBTOWC = @REPLACE_MBTOWC@
|
||||
REPLACE_MB_CUR_MAX = @REPLACE_MB_CUR_MAX@
|
||||
REPLACE_MEMCHR = @REPLACE_MEMCHR@
|
||||
REPLACE_MEMMEM = @REPLACE_MEMMEM@
|
||||
REPLACE_MEMPCPY = @REPLACE_MEMPCPY@
|
||||
REPLACE_MKDIR = @REPLACE_MKDIR@
|
||||
REPLACE_MKFIFO = @REPLACE_MKFIFO@
|
||||
REPLACE_MKFIFOAT = @REPLACE_MKFIFOAT@
|
||||
REPLACE_MKNOD = @REPLACE_MKNOD@
|
||||
REPLACE_MKNODAT = @REPLACE_MKNODAT@
|
||||
REPLACE_MKOSTEMP = @REPLACE_MKOSTEMP@
|
||||
REPLACE_MKOSTEMPS = @REPLACE_MKOSTEMPS@
|
||||
REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
|
||||
REPLACE_MKTIME = @REPLACE_MKTIME@
|
||||
REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@
|
||||
@ -1023,8 +1062,10 @@ REPLACE_NEWLOCALE = @REPLACE_NEWLOCALE@
|
||||
REPLACE_NULL = @REPLACE_NULL@
|
||||
REPLACE_OBSTACK_PRINTF = @REPLACE_OBSTACK_PRINTF@
|
||||
REPLACE_PERROR = @REPLACE_PERROR@
|
||||
REPLACE_PIPE2 = @REPLACE_PIPE2@
|
||||
REPLACE_POPEN = @REPLACE_POPEN@
|
||||
REPLACE_POSIX_MEMALIGN = @REPLACE_POSIX_MEMALIGN@
|
||||
REPLACE_POSIX_OPENPT = @REPLACE_POSIX_OPENPT@
|
||||
REPLACE_PREAD = @REPLACE_PREAD@
|
||||
REPLACE_PRINTF = @REPLACE_PRINTF@
|
||||
REPLACE_PTSNAME = @REPLACE_PTSNAME@
|
||||
@ -1032,6 +1073,7 @@ REPLACE_PTSNAME_R = @REPLACE_PTSNAME_R@
|
||||
REPLACE_PUTENV = @REPLACE_PUTENV@
|
||||
REPLACE_PWRITE = @REPLACE_PWRITE@
|
||||
REPLACE_QSORT_R = @REPLACE_QSORT_R@
|
||||
REPLACE_RAND = @REPLACE_RAND@
|
||||
REPLACE_RANDOM = @REPLACE_RANDOM@
|
||||
REPLACE_RANDOM_R = @REPLACE_RANDOM_R@
|
||||
REPLACE_READ = @REPLACE_READ@
|
||||
@ -1046,6 +1088,7 @@ REPLACE_RENAME = @REPLACE_RENAME@
|
||||
REPLACE_RENAMEAT = @REPLACE_RENAMEAT@
|
||||
REPLACE_RMDIR = @REPLACE_RMDIR@
|
||||
REPLACE_SETENV = @REPLACE_SETENV@
|
||||
REPLACE_SETHOSTNAME = @REPLACE_SETHOSTNAME@
|
||||
REPLACE_SETLOCALE = @REPLACE_SETLOCALE@
|
||||
REPLACE_SETSTATE = @REPLACE_SETSTATE@
|
||||
REPLACE_SLEEP = @REPLACE_SLEEP@
|
||||
@ -1054,6 +1097,7 @@ REPLACE_SPRINTF = @REPLACE_SPRINTF@
|
||||
REPLACE_STAT = @REPLACE_STAT@
|
||||
REPLACE_STDIO_READ_FUNCS = @REPLACE_STDIO_READ_FUNCS@
|
||||
REPLACE_STDIO_WRITE_FUNCS = @REPLACE_STDIO_WRITE_FUNCS@
|
||||
REPLACE_STPCPY = @REPLACE_STPCPY@
|
||||
REPLACE_STPNCPY = @REPLACE_STPNCPY@
|
||||
REPLACE_STRCASESTR = @REPLACE_STRCASESTR@
|
||||
REPLACE_STRCHRNUL = @REPLACE_STRCHRNUL@
|
||||
@ -1079,9 +1123,12 @@ REPLACE_STRTOULL = @REPLACE_STRTOULL@
|
||||
REPLACE_STRTOUMAX = @REPLACE_STRTOUMAX@
|
||||
REPLACE_STRUCT_LCONV = @REPLACE_STRUCT_LCONV@
|
||||
REPLACE_STRUCT_TIMEVAL = @REPLACE_STRUCT_TIMEVAL@
|
||||
REPLACE_STRVERSCMP = @REPLACE_STRVERSCMP@
|
||||
REPLACE_SYMLINK = @REPLACE_SYMLINK@
|
||||
REPLACE_SYMLINKAT = @REPLACE_SYMLINKAT@
|
||||
REPLACE_TIME = @REPLACE_TIME@
|
||||
REPLACE_TIMEGM = @REPLACE_TIMEGM@
|
||||
REPLACE_TIMESPEC_GET = @REPLACE_TIMESPEC_GET@
|
||||
REPLACE_TMPFILE = @REPLACE_TMPFILE@
|
||||
REPLACE_TOWLOWER = @REPLACE_TOWLOWER@
|
||||
REPLACE_TRUNCATE = @REPLACE_TRUNCATE@
|
||||
@ -1099,21 +1146,30 @@ REPLACE_VPRINTF = @REPLACE_VPRINTF@
|
||||
REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@
|
||||
REPLACE_VSPRINTF = @REPLACE_VSPRINTF@
|
||||
REPLACE_WCRTOMB = @REPLACE_WCRTOMB@
|
||||
REPLACE_WCSCMP = @REPLACE_WCSCMP@
|
||||
REPLACE_WCSFTIME = @REPLACE_WCSFTIME@
|
||||
REPLACE_WCSNCMP = @REPLACE_WCSNCMP@
|
||||
REPLACE_WCSNRTOMBS = @REPLACE_WCSNRTOMBS@
|
||||
REPLACE_WCSRTOMBS = @REPLACE_WCSRTOMBS@
|
||||
REPLACE_WCSSTR = @REPLACE_WCSSTR@
|
||||
REPLACE_WCSTOK = @REPLACE_WCSTOK@
|
||||
REPLACE_WCSWIDTH = @REPLACE_WCSWIDTH@
|
||||
REPLACE_WCTOB = @REPLACE_WCTOB@
|
||||
REPLACE_WCTOMB = @REPLACE_WCTOMB@
|
||||
REPLACE_WCTRANS = @REPLACE_WCTRANS@
|
||||
REPLACE_WCTYPE = @REPLACE_WCTYPE@
|
||||
REPLACE_WCWIDTH = @REPLACE_WCWIDTH@
|
||||
REPLACE_WMEMCMP = @REPLACE_WMEMCMP@
|
||||
REPLACE_WMEMPCPY = @REPLACE_WMEMPCPY@
|
||||
REPLACE_WRITE = @REPLACE_WRITE@
|
||||
REPLACE__EXIT = @REPLACE__EXIT@
|
||||
SCHED_YIELD_LIB = @SCHED_YIELD_LIB@
|
||||
SED = @SED@
|
||||
SETLOCALE_NULL_LIB = @SETLOCALE_NULL_LIB@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
|
||||
SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
|
||||
STDBOOL_H = @STDBOOL_H@
|
||||
STDDEF_H = @STDDEF_H@
|
||||
STDINT_H = @STDINT_H@
|
||||
STRIP = @STRIP@
|
||||
@ -1148,7 +1204,6 @@ am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
appdatadir = @appdatadir@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
@ -1184,6 +1239,7 @@ libexecdir = @libexecdir@
|
||||
localedir = @localedir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
metainfodir = @metainfodir@
|
||||
mkdir_p = @mkdir_p@
|
||||
oldincludedir = @oldincludedir@
|
||||
pdfdir = @pdfdir@
|
||||
|
203
lib/Makefile.am
203
lib/Makefile.am
@ -1,6 +1,6 @@
|
||||
## DO NOT EDIT! GENERATED AUTOMATICALLY!
|
||||
## Process this file with automake to produce Makefile.in.
|
||||
# Copyright (C) 2002-2022 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2002-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
|
||||
@ -93,6 +93,39 @@ HAVE_INCLUDE_NEXT = (__GNUC__ || __clang__ || 60000000 <= __DECC_VER)
|
||||
|
||||
## end gnulib module absolute-header
|
||||
|
||||
## begin gnulib module assert-h
|
||||
|
||||
if gl_GNULIB_ENABLED_d07eca4c7a24aaac657c64e6568d4c2f
|
||||
BUILT_SOURCES += $(ASSERT_H)
|
||||
|
||||
# We need the following in order to create <assert.h> when the system
|
||||
# doesn't have one that works with the given compiler.
|
||||
if GL_GENERATE_ASSERT_H
|
||||
assert.h: assert.in.h verify.h $(top_builddir)/config.status
|
||||
$(gl_V_at){ $(SED_HEADER_STDOUT) \
|
||||
-e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
|
||||
-e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
|
||||
-e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
|
||||
-e 's|@''NEXT_ASSERT_H''@|$(NEXT_ASSERT_H)|g' \
|
||||
< $(srcdir)/assert.in.h && \
|
||||
sed -e '/@assert.h omit start@/,/@assert.h omit end@/d' \
|
||||
-e 's|_gl_verify|_gl_static_assert|g' \
|
||||
-e 's|_GL_VERIFY|_GL_STATIC_ASSERT|g' \
|
||||
-e 's|_GL\(_STATIC_ASSERT_H\)|_GL\1|g' \
|
||||
< $(srcdir)/verify.h; \
|
||||
} > $@-t
|
||||
$(AM_V_at)mv $@-t $@
|
||||
else
|
||||
assert.h: $(top_builddir)/config.status
|
||||
rm -f $@
|
||||
endif
|
||||
MOSTLYCLEANFILES += assert.h assert.h-t
|
||||
|
||||
endif
|
||||
EXTRA_DIST += assert.in.h verify.h
|
||||
|
||||
## end gnulib module assert-h
|
||||
|
||||
## begin gnulib module attribute
|
||||
|
||||
if gl_GNULIB_ENABLED_attribute
|
||||
@ -335,6 +368,8 @@ inttypes.h: inttypes.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_U
|
||||
-e 's/@''HAVE_DECL_STRTOIMAX''@/$(HAVE_DECL_STRTOIMAX)/g' \
|
||||
-e 's/@''HAVE_DECL_STRTOUMAX''@/$(HAVE_DECL_STRTOUMAX)/g' \
|
||||
-e 's/@''HAVE_IMAXDIV_T''@/$(HAVE_IMAXDIV_T)/g' \
|
||||
-e 's/@''REPLACE_IMAXABS''@/$(REPLACE_IMAXABS)/g' \
|
||||
-e 's/@''REPLACE_IMAXDIV''@/$(REPLACE_IMAXDIV)/g' \
|
||||
-e 's/@''REPLACE_STRTOIMAX''@/$(REPLACE_STRTOIMAX)/g' \
|
||||
-e 's/@''REPLACE_STRTOUMAX''@/$(REPLACE_STRTOUMAX)/g' \
|
||||
-e 's/@''INT32_MAX_LT_INTMAX_MAX''@/$(INT32_MAX_LT_INTMAX_MAX)/g' \
|
||||
@ -462,6 +497,14 @@ EXTRA_libgnu_a_SOURCES += mbsrtowcs-state.c
|
||||
|
||||
## end gnulib module mbsrtowcs
|
||||
|
||||
## begin gnulib module mbszero
|
||||
|
||||
if gl_GNULIB_ENABLED_mbszero
|
||||
libgnu_a_SOURCES += mbszero.c
|
||||
|
||||
endif
|
||||
## end gnulib module mbszero
|
||||
|
||||
## begin gnulib module mbtowc
|
||||
|
||||
if gl_GNULIB_ENABLED_mbtowc
|
||||
@ -581,28 +624,6 @@ EXTRA_DIST += warn-on-use.h
|
||||
|
||||
## end gnulib module snippet/warn-on-use
|
||||
|
||||
## begin gnulib module stdbool
|
||||
|
||||
BUILT_SOURCES += $(STDBOOL_H)
|
||||
|
||||
# We need the following in order to create <stdbool.h> when the system
|
||||
# doesn't have one that works.
|
||||
if GL_GENERATE_STDBOOL_H
|
||||
stdbool.h: stdbool.in.h $(top_builddir)/config.status
|
||||
$(gl_V_at)$(SED_HEADER_STDOUT) \
|
||||
-e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' \
|
||||
$(srcdir)/stdbool.in.h > $@-t
|
||||
$(AM_V_at)mv $@-t $@
|
||||
else
|
||||
stdbool.h: $(top_builddir)/config.status
|
||||
rm -f $@
|
||||
endif
|
||||
MOSTLYCLEANFILES += stdbool.h stdbool.h-t
|
||||
|
||||
EXTRA_DIST += stdbool.in.h
|
||||
|
||||
## end gnulib module stdbool
|
||||
|
||||
## begin gnulib module stddef
|
||||
|
||||
BUILT_SOURCES += $(STDDEF_H)
|
||||
@ -753,14 +774,17 @@ stdio.h: stdio.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H)
|
||||
-e 's/@''GNULIB_MDA_GETW''@/$(GL_GNULIB_MDA_GETW)/g' \
|
||||
-e 's/@''GNULIB_MDA_PUTW''@/$(GL_GNULIB_MDA_PUTW)/g' \
|
||||
-e 's/@''GNULIB_MDA_TEMPNAM''@/$(GL_GNULIB_MDA_TEMPNAM)/g' \
|
||||
< $(srcdir)/stdio.in.h | \
|
||||
sed -e 's|@''HAVE_DECL_FCLOSEALL''@|$(HAVE_DECL_FCLOSEALL)|g' \
|
||||
< $(srcdir)/stdio.in.h > $@-t1
|
||||
$(AM_V_at)sed \
|
||||
-e 's|@''HAVE_DECL_FCLOSEALL''@|$(HAVE_DECL_FCLOSEALL)|g' \
|
||||
-e 's|@''HAVE_DECL_FPURGE''@|$(HAVE_DECL_FPURGE)|g' \
|
||||
-e 's|@''HAVE_DECL_FSEEKO''@|$(HAVE_DECL_FSEEKO)|g' \
|
||||
-e 's|@''HAVE_DECL_FTELLO''@|$(HAVE_DECL_FTELLO)|g' \
|
||||
-e 's|@''HAVE_DECL_GETDELIM''@|$(HAVE_DECL_GETDELIM)|g' \
|
||||
-e 's|@''HAVE_DECL_GETLINE''@|$(HAVE_DECL_GETLINE)|g' \
|
||||
-e 's|@''HAVE_DECL_GETW''@|$(HAVE_DECL_GETW)|g' \
|
||||
-e 's|@''HAVE_DECL_OBSTACK_PRINTF''@|$(HAVE_DECL_OBSTACK_PRINTF)|g' \
|
||||
-e 's|@''HAVE_DECL_PUTW''@|$(HAVE_DECL_PUTW)|g' \
|
||||
-e 's|@''HAVE_DECL_SNPRINTF''@|$(HAVE_DECL_SNPRINTF)|g' \
|
||||
-e 's|@''HAVE_DECL_VSNPRINTF''@|$(HAVE_DECL_VSNPRINTF)|g' \
|
||||
-e 's|@''HAVE_DPRINTF''@|$(HAVE_DPRINTF)|g' \
|
||||
@ -771,6 +795,8 @@ stdio.h: stdio.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H)
|
||||
-e 's|@''HAVE_RENAMEAT''@|$(HAVE_RENAMEAT)|g' \
|
||||
-e 's|@''HAVE_VASPRINTF''@|$(HAVE_VASPRINTF)|g' \
|
||||
-e 's|@''HAVE_VDPRINTF''@|$(HAVE_VDPRINTF)|g' \
|
||||
< $@-t1 > $@-t2
|
||||
$(AM_V_at)sed \
|
||||
-e 's|@''REPLACE_DPRINTF''@|$(REPLACE_DPRINTF)|g' \
|
||||
-e 's|@''REPLACE_FCLOSE''@|$(REPLACE_FCLOSE)|g' \
|
||||
-e 's|@''REPLACE_FDOPEN''@|$(REPLACE_FDOPEN)|g' \
|
||||
@ -808,9 +834,10 @@ stdio.h: stdio.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H)
|
||||
-e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
|
||||
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
||||
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
|
||||
> $@-t
|
||||
$(AM_V_at)mv $@-t $@
|
||||
MOSTLYCLEANFILES += stdio.h stdio.h-t
|
||||
< $@-t2 > $@-t3
|
||||
$(AM_V_at)rm -f $@-t1 $@-t2
|
||||
$(AM_V_at)mv $@-t3 $@
|
||||
MOSTLYCLEANFILES += stdio.h stdio.h-t1 stdio.h-t2 stdio.h-t3
|
||||
|
||||
if GL_COND_OBJ_STDIO_READ
|
||||
libgnu_a_SOURCES += stdio-read.c
|
||||
@ -845,10 +872,12 @@ stdlib.h: stdlib.in.h $(top_builddir)/config.status $(CXXDEFS_H) \
|
||||
-e 's/@''GNULIB_CANONICALIZE_FILE_NAME''@/$(GL_GNULIB_CANONICALIZE_FILE_NAME)/g' \
|
||||
-e 's/@''GNULIB_FREE_POSIX''@/$(GL_GNULIB_FREE_POSIX)/g' \
|
||||
-e 's/@''GNULIB_GETLOADAVG''@/$(GL_GNULIB_GETLOADAVG)/g' \
|
||||
-e 's/@''GNULIB_GETPROGNAME''@/$(GL_GNULIB_GETPROGNAME)/g' \
|
||||
-e 's/@''GNULIB_GETSUBOPT''@/$(GL_GNULIB_GETSUBOPT)/g' \
|
||||
-e 's/@''GNULIB_GRANTPT''@/$(GL_GNULIB_GRANTPT)/g' \
|
||||
-e 's/@''GNULIB_MALLOC_GNU''@/$(GL_GNULIB_MALLOC_GNU)/g' \
|
||||
-e 's/@''GNULIB_MALLOC_POSIX''@/$(GL_GNULIB_MALLOC_POSIX)/g' \
|
||||
-e 's/@''GNULIB_MBSTOWCS''@/$(GL_GNULIB_MBSTOWCS)/g' \
|
||||
-e 's/@''GNULIB_MBTOWC''@/$(GL_GNULIB_MBTOWC)/g' \
|
||||
-e 's/@''GNULIB_MKDTEMP''@/$(GL_GNULIB_MKDTEMP)/g' \
|
||||
-e 's/@''GNULIB_MKOSTEMP''@/$(GL_GNULIB_MKOSTEMP)/g' \
|
||||
@ -861,6 +890,7 @@ stdlib.h: stdlib.in.h $(top_builddir)/config.status $(CXXDEFS_H) \
|
||||
-e 's/@''GNULIB_PTSNAME_R''@/$(GL_GNULIB_PTSNAME_R)/g' \
|
||||
-e 's/@''GNULIB_PUTENV''@/$(GL_GNULIB_PUTENV)/g' \
|
||||
-e 's/@''GNULIB_QSORT_R''@/$(GL_GNULIB_QSORT_R)/g' \
|
||||
-e 's/@''GNULIB_RAND''@/$(GL_GNULIB_RAND)/g' \
|
||||
-e 's/@''GNULIB_RANDOM''@/$(GL_GNULIB_RANDOM)/g' \
|
||||
-e 's/@''GNULIB_RANDOM_R''@/$(GL_GNULIB_RANDOM_R)/g' \
|
||||
-e 's/@''GNULIB_REALLOC_GNU''@/$(GL_GNULIB_REALLOC_GNU)/g' \
|
||||
@ -885,8 +915,9 @@ stdlib.h: stdlib.in.h $(top_builddir)/config.status $(CXXDEFS_H) \
|
||||
-e 's/@''GNULIB_MDA_GCVT''@/$(GL_GNULIB_MDA_GCVT)/g' \
|
||||
-e 's/@''GNULIB_MDA_MKTEMP''@/$(GL_GNULIB_MDA_MKTEMP)/g' \
|
||||
-e 's/@''GNULIB_MDA_PUTENV''@/$(GL_GNULIB_MDA_PUTENV)/g' \
|
||||
< $(srcdir)/stdlib.in.h | \
|
||||
sed -e 's|@''HAVE__EXIT''@|$(HAVE__EXIT)|g' \
|
||||
< $(srcdir)/stdlib.in.h > $@-t1
|
||||
$(AM_V_at)sed \
|
||||
-e 's|@''HAVE__EXIT''@|$(HAVE__EXIT)|g' \
|
||||
-e 's|@''HAVE_ALIGNED_ALLOC''@|$(HAVE_ALIGNED_ALLOC)|g' \
|
||||
-e 's|@''HAVE_ATOLL''@|$(HAVE_ATOLL)|g' \
|
||||
-e 's|@''HAVE_CANONICALIZE_FILE_NAME''@|$(HAVE_CANONICALIZE_FILE_NAME)|g' \
|
||||
@ -894,6 +925,8 @@ stdlib.h: stdlib.in.h $(top_builddir)/config.status $(CXXDEFS_H) \
|
||||
-e 's|@''HAVE_DECL_FCVT''@|$(HAVE_DECL_FCVT)|g' \
|
||||
-e 's|@''HAVE_DECL_GCVT''@|$(HAVE_DECL_GCVT)|g' \
|
||||
-e 's|@''HAVE_DECL_GETLOADAVG''@|$(HAVE_DECL_GETLOADAVG)|g' \
|
||||
-e 's|@''HAVE_DECL_PROGRAM_INVOCATION_NAME''@|$(HAVE_DECL_PROGRAM_INVOCATION_NAME)|g' \
|
||||
-e 's|@''HAVE_GETPROGNAME''@|$(HAVE_GETPROGNAME)|g' \
|
||||
-e 's|@''HAVE_GETSUBOPT''@|$(HAVE_GETSUBOPT)|g' \
|
||||
-e 's|@''HAVE_GRANTPT''@|$(HAVE_GRANTPT)|g' \
|
||||
-e 's|@''HAVE_INITSTATE''@|$(HAVE_INITSTATE)|g' \
|
||||
@ -929,21 +962,33 @@ stdlib.h: stdlib.in.h $(top_builddir)/config.status $(CXXDEFS_H) \
|
||||
-e 's|@''HAVE_SYS_LOADAVG_H''@|$(HAVE_SYS_LOADAVG_H)|g' \
|
||||
-e 's|@''HAVE_UNLOCKPT''@|$(HAVE_UNLOCKPT)|g' \
|
||||
-e 's|@''HAVE_DECL_UNSETENV''@|$(HAVE_DECL_UNSETENV)|g' \
|
||||
< $@-t1 > $@-t2
|
||||
$(AM_V_at)sed \
|
||||
-e 's|@''REPLACE__EXIT''@|$(REPLACE__EXIT)|g' \
|
||||
-e 's|@''REPLACE_ALIGNED_ALLOC''@|$(REPLACE_ALIGNED_ALLOC)|g' \
|
||||
-e 's|@''REPLACE_CALLOC_FOR_CALLOC_GNU''@|$(REPLACE_CALLOC_FOR_CALLOC_GNU)|g' \
|
||||
-e 's|@''REPLACE_CALLOC_FOR_CALLOC_POSIX''@|$(REPLACE_CALLOC_FOR_CALLOC_POSIX)|g' \
|
||||
-e 's|@''REPLACE_CANONICALIZE_FILE_NAME''@|$(REPLACE_CANONICALIZE_FILE_NAME)|g' \
|
||||
-e 's|@''REPLACE_FREE''@|$(REPLACE_FREE)|g' \
|
||||
-e 's|@''REPLACE_GETLOADAVG''@|$(REPLACE_GETLOADAVG)|g' \
|
||||
-e 's|@''REPLACE_GETPROGNAME''@|$(REPLACE_GETPROGNAME)|g' \
|
||||
-e 's|@''REPLACE_GETSUBOPT''@|$(REPLACE_GETSUBOPT)|g' \
|
||||
-e 's|@''REPLACE_INITSTATE''@|$(REPLACE_INITSTATE)|g' \
|
||||
-e 's|@''REPLACE_MALLOC_FOR_MALLOC_GNU''@|$(REPLACE_MALLOC_FOR_MALLOC_GNU)|g' \
|
||||
-e 's|@''REPLACE_MALLOC_FOR_MALLOC_POSIX''@|$(REPLACE_MALLOC_FOR_MALLOC_POSIX)|g' \
|
||||
-e 's|@''REPLACE_MB_CUR_MAX''@|$(REPLACE_MB_CUR_MAX)|g' \
|
||||
-e 's|@''REPLACE_MBSTOWCS''@|$(REPLACE_MBSTOWCS)|g' \
|
||||
-e 's|@''REPLACE_MBTOWC''@|$(REPLACE_MBTOWC)|g' \
|
||||
-e 's|@''REPLACE_MKOSTEMP''@|$(REPLACE_MKOSTEMP)|g' \
|
||||
-e 's|@''REPLACE_MKOSTEMPS''@|$(REPLACE_MKOSTEMPS)|g' \
|
||||
-e 's|@''REPLACE_MKSTEMP''@|$(REPLACE_MKSTEMP)|g' \
|
||||
-e 's|@''REPLACE_POSIX_MEMALIGN''@|$(REPLACE_POSIX_MEMALIGN)|g' \
|
||||
-e 's|@''REPLACE_POSIX_OPENPT''@|$(REPLACE_POSIX_OPENPT)|g' \
|
||||
-e 's|@''REPLACE_PTSNAME''@|$(REPLACE_PTSNAME)|g' \
|
||||
-e 's|@''REPLACE_PTSNAME_R''@|$(REPLACE_PTSNAME_R)|g' \
|
||||
-e 's|@''REPLACE_PUTENV''@|$(REPLACE_PUTENV)|g' \
|
||||
-e 's|@''REPLACE_QSORT_R''@|$(REPLACE_QSORT_R)|g' \
|
||||
-e 's|@''REPLACE_RAND''@|$(REPLACE_RAND)|g' \
|
||||
-e 's|@''REPLACE_RANDOM''@|$(REPLACE_RANDOM)|g' \
|
||||
-e 's|@''REPLACE_RANDOM_R''@|$(REPLACE_RANDOM_R)|g' \
|
||||
-e 's|@''REPLACE_REALLOC_FOR_REALLOC_GNU''@|$(REPLACE_REALLOC_FOR_REALLOC_GNU)|g' \
|
||||
@ -964,9 +1009,10 @@ stdlib.h: stdlib.in.h $(top_builddir)/config.status $(CXXDEFS_H) \
|
||||
-e '/definition of _Noreturn/r $(_NORETURN_H)' \
|
||||
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
||||
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
|
||||
> $@-t
|
||||
$(AM_V_at)mv $@-t $@
|
||||
MOSTLYCLEANFILES += stdlib.h stdlib.h-t
|
||||
< $@-t2 > $@-t3
|
||||
$(AM_V_at)rm -f $@-t1 $@-t2
|
||||
$(AM_V_at)mv $@-t3 $@
|
||||
MOSTLYCLEANFILES += stdlib.h stdlib.h-t1 stdlib.h-t2 stdlib.h-t3
|
||||
|
||||
EXTRA_DIST += stdlib.in.h
|
||||
|
||||
@ -984,8 +1030,6 @@ EXTRA_DIST += streq.h
|
||||
## begin gnulib module striconv
|
||||
|
||||
libgnu_a_SOURCES += striconv.h striconv.c
|
||||
if GL_COND_LIBTOOL
|
||||
endif
|
||||
|
||||
## end gnulib module striconv
|
||||
|
||||
@ -1023,6 +1067,7 @@ string.h: string.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H
|
||||
-e 's/@''GNULIB_MEMMEM''@/$(GL_GNULIB_MEMMEM)/g' \
|
||||
-e 's/@''GNULIB_MEMPCPY''@/$(GL_GNULIB_MEMPCPY)/g' \
|
||||
-e 's/@''GNULIB_MEMRCHR''@/$(GL_GNULIB_MEMRCHR)/g' \
|
||||
-e 's/@''GNULIB_MEMSET_EXPLICIT''@/$(GL_GNULIB_MEMSET_EXPLICIT)/g' \
|
||||
-e 's/@''GNULIB_RAWMEMCHR''@/$(GL_GNULIB_RAWMEMCHR)/g' \
|
||||
-e 's/@''GNULIB_STPCPY''@/$(GL_GNULIB_STPCPY)/g' \
|
||||
-e 's/@''GNULIB_STPNCPY''@/$(GL_GNULIB_STPNCPY)/g' \
|
||||
@ -1046,14 +1091,16 @@ string.h: string.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H
|
||||
-e 's/@''GNULIB_MDA_MEMCCPY''@/$(GL_GNULIB_MDA_MEMCCPY)/g' \
|
||||
-e 's/@''GNULIB_MDA_STRDUP''@/$(GL_GNULIB_MDA_STRDUP)/g' \
|
||||
-e 's/@''GNULIB_FREE_POSIX''@/$(GL_GNULIB_FREE_POSIX)/g' \
|
||||
< $(srcdir)/string.in.h | \
|
||||
sed -e 's|@''HAVE_EXPLICIT_BZERO''@|$(HAVE_EXPLICIT_BZERO)|g' \
|
||||
< $(srcdir)/string.in.h > $@-t1
|
||||
$(AM_V_at)sed \
|
||||
-e 's|@''HAVE_EXPLICIT_BZERO''@|$(HAVE_EXPLICIT_BZERO)|g' \
|
||||
-e 's|@''HAVE_FFSL''@|$(HAVE_FFSL)|g' \
|
||||
-e 's|@''HAVE_FFSLL''@|$(HAVE_FFSLL)|g' \
|
||||
-e 's|@''HAVE_MBSLEN''@|$(HAVE_MBSLEN)|g' \
|
||||
-e 's|@''HAVE_DECL_MEMMEM''@|$(HAVE_DECL_MEMMEM)|g' \
|
||||
-e 's|@''HAVE_MEMPCPY''@|$(HAVE_MEMPCPY)|g' \
|
||||
-e 's|@''HAVE_DECL_MEMRCHR''@|$(HAVE_DECL_MEMRCHR)|g' \
|
||||
-e 's|@''HAVE_MEMSET_EXPLICIT''@|$(HAVE_MEMSET_EXPLICIT)|g' \
|
||||
-e 's|@''HAVE_RAWMEMCHR''@|$(HAVE_RAWMEMCHR)|g' \
|
||||
-e 's|@''HAVE_STPCPY''@|$(HAVE_STPCPY)|g' \
|
||||
-e 's|@''HAVE_STPNCPY''@|$(HAVE_STPNCPY)|g' \
|
||||
@ -1074,7 +1121,9 @@ string.h: string.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H
|
||||
-e 's|@''REPLACE_FFSLL''@|$(REPLACE_FFSLL)|g' \
|
||||
-e 's|@''REPLACE_MEMCHR''@|$(REPLACE_MEMCHR)|g' \
|
||||
-e 's|@''REPLACE_MEMMEM''@|$(REPLACE_MEMMEM)|g' \
|
||||
-e 's|@''REPLACE_MEMPCPY''@|$(REPLACE_MEMPCPY)|g' \
|
||||
-e 's|@''REPLACE_FREE''@|$(REPLACE_FREE)|g' \
|
||||
-e 's|@''REPLACE_STPCPY''@|$(REPLACE_STPCPY)|g' \
|
||||
-e 's|@''REPLACE_STPNCPY''@|$(REPLACE_STPNCPY)|g' \
|
||||
-e 's|@''REPLACE_STRCHRNUL''@|$(REPLACE_STRCHRNUL)|g' \
|
||||
-e 's|@''REPLACE_STRDUP''@|$(REPLACE_STRDUP)|g' \
|
||||
@ -1088,13 +1137,15 @@ string.h: string.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H
|
||||
-e 's|@''REPLACE_STRERROR_R''@|$(REPLACE_STRERROR_R)|g' \
|
||||
-e 's|@''REPLACE_STRERRORNAME_NP''@|$(REPLACE_STRERRORNAME_NP)|g' \
|
||||
-e 's|@''REPLACE_STRSIGNAL''@|$(REPLACE_STRSIGNAL)|g' \
|
||||
-e 's|@''REPLACE_STRVERSCMP''@|$(REPLACE_STRVERSCMP)|g' \
|
||||
-e 's|@''UNDEFINE_STRTOK_R''@|$(UNDEFINE_STRTOK_R)|g' \
|
||||
-e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
|
||||
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
||||
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
|
||||
> $@-t
|
||||
$(AM_V_at)mv $@-t $@
|
||||
MOSTLYCLEANFILES += string.h string.h-t
|
||||
< $@-t1 > $@-t2
|
||||
$(AM_V_at)rm -f $@-t1
|
||||
$(AM_V_at)mv $@-t2 $@
|
||||
MOSTLYCLEANFILES += string.h string.h-t1 string.h-t2
|
||||
|
||||
EXTRA_DIST += string.in.h
|
||||
|
||||
@ -1237,7 +1288,7 @@ EXTRA_DIST += sys_types.in.h
|
||||
|
||||
## end gnulib module sys_types
|
||||
|
||||
## begin gnulib module time
|
||||
## begin gnulib module time-h
|
||||
|
||||
BUILT_SOURCES += time.h
|
||||
|
||||
@ -1256,6 +1307,7 @@ time.h: time.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(
|
||||
-e 's/@''GNULIB_NANOSLEEP''@/$(GL_GNULIB_NANOSLEEP)/g' \
|
||||
-e 's/@''GNULIB_STRFTIME''@/$(GL_GNULIB_STRFTIME)/g' \
|
||||
-e 's/@''GNULIB_STRPTIME''@/$(GL_GNULIB_STRPTIME)/g' \
|
||||
-e 's/@''GNULIB_TIME''@/$(GL_GNULIB_TIME)/g' \
|
||||
-e 's/@''GNULIB_TIMEGM''@/$(GL_GNULIB_TIMEGM)/g' \
|
||||
-e 's/@''GNULIB_TIMESPEC_GET''@/$(GL_GNULIB_TIMESPEC_GET)/g' \
|
||||
-e 's/@''GNULIB_TIMESPEC_GETRES''@/$(GL_GNULIB_TIMESPEC_GETRES)/g' \
|
||||
@ -1277,7 +1329,9 @@ time.h: time.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(
|
||||
-e 's|@''REPLACE_MKTIME''@|$(REPLACE_MKTIME)|g' \
|
||||
-e 's|@''REPLACE_NANOSLEEP''@|$(REPLACE_NANOSLEEP)|g' \
|
||||
-e 's|@''REPLACE_STRFTIME''@|$(REPLACE_STRFTIME)|g' \
|
||||
-e 's|@''REPLACE_TIME''@|$(REPLACE_TIME)|g' \
|
||||
-e 's|@''REPLACE_TIMEGM''@|$(REPLACE_TIMEGM)|g' \
|
||||
-e 's|@''REPLACE_TIMESPEC_GET''@|$(REPLACE_TIMESPEC_GET)|g' \
|
||||
-e 's|@''REPLACE_TZSET''@|$(REPLACE_TZSET)|g' \
|
||||
-e 's|@''PTHREAD_H_DEFINES_STRUCT_TIMESPEC''@|$(PTHREAD_H_DEFINES_STRUCT_TIMESPEC)|g' \
|
||||
-e 's|@''SYS_TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(SYS_TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \
|
||||
@ -1293,7 +1347,7 @@ MOSTLYCLEANFILES += time.h time.h-t
|
||||
|
||||
EXTRA_DIST += time.in.h
|
||||
|
||||
## end gnulib module time
|
||||
## end gnulib module time-h
|
||||
|
||||
## begin gnulib module unistd
|
||||
|
||||
@ -1334,6 +1388,8 @@ unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H
|
||||
-e 's/@''GNULIB_FDATASYNC''@/$(GL_GNULIB_FDATASYNC)/g' \
|
||||
-e 's/@''GNULIB_FSYNC''@/$(GL_GNULIB_FSYNC)/g' \
|
||||
-e 's/@''GNULIB_FTRUNCATE''@/$(GL_GNULIB_FTRUNCATE)/g' \
|
||||
< $(srcdir)/unistd.in.h > $@-t1
|
||||
$(AM_V_at)sed \
|
||||
-e 's/@''GNULIB_GETCWD''@/$(GL_GNULIB_GETCWD)/g' \
|
||||
-e 's/@''GNULIB_GETDOMAINNAME''@/$(GL_GNULIB_GETDOMAINNAME)/g' \
|
||||
-e 's/@''GNULIB_GETDTABLESIZE''@/$(GL_GNULIB_GETDTABLESIZE)/g' \
|
||||
@ -1395,8 +1451,9 @@ unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H
|
||||
-e 's/@''GNULIB_MDA_SWAB''@/$(GL_GNULIB_MDA_SWAB)/g' \
|
||||
-e 's/@''GNULIB_MDA_UNLINK''@/$(GL_GNULIB_MDA_UNLINK)/g' \
|
||||
-e 's/@''GNULIB_MDA_WRITE''@/$(GL_GNULIB_MDA_WRITE)/g' \
|
||||
< $(srcdir)/unistd.in.h | \
|
||||
sed -e 's|@''HAVE_CHOWN''@|$(HAVE_CHOWN)|g' \
|
||||
< $@-t1 > $@-t2
|
||||
$(AM_V_at)sed \
|
||||
-e 's|@''HAVE_CHOWN''@|$(HAVE_CHOWN)|g' \
|
||||
-e 's|@''HAVE_COPY_FILE_RANGE''@|$(HAVE_COPY_FILE_RANGE)|g' \
|
||||
-e 's|@''HAVE_DUP3''@|$(HAVE_DUP3)|g' \
|
||||
-e 's|@''HAVE_EUIDACCESS''@|$(HAVE_EUIDACCESS)|g' \
|
||||
@ -1443,13 +1500,15 @@ unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H
|
||||
-e 's|@''HAVE_DECL_TTYNAME_R''@|$(HAVE_DECL_TTYNAME_R)|g' \
|
||||
-e 's|@''HAVE_OS_H''@|$(HAVE_OS_H)|g' \
|
||||
-e 's|@''HAVE_SYS_PARAM_H''@|$(HAVE_SYS_PARAM_H)|g' \
|
||||
| \
|
||||
sed -e 's|@''REPLACE_ACCESS''@|$(REPLACE_ACCESS)|g' \
|
||||
< $@-t2 > $@-t3
|
||||
$(AM_V_at)sed \
|
||||
-e 's|@''REPLACE_ACCESS''@|$(REPLACE_ACCESS)|g' \
|
||||
-e 's|@''REPLACE_CHOWN''@|$(REPLACE_CHOWN)|g' \
|
||||
-e 's|@''REPLACE_CLOSE''@|$(REPLACE_CLOSE)|g' \
|
||||
-e 's|@''REPLACE_COPY_FILE_RANGE''@|$(REPLACE_COPY_FILE_RANGE)|g' \
|
||||
-e 's|@''REPLACE_DUP''@|$(REPLACE_DUP)|g' \
|
||||
-e 's|@''REPLACE_DUP2''@|$(REPLACE_DUP2)|g' \
|
||||
-e 's|@''REPLACE_DUP3''@|$(REPLACE_DUP3)|g' \
|
||||
-e 's|@''REPLACE_EXECL''@|$(REPLACE_EXECL)|g' \
|
||||
-e 's|@''REPLACE_EXECLE''@|$(REPLACE_EXECLE)|g' \
|
||||
-e 's|@''REPLACE_EXECLP''@|$(REPLACE_EXECLP)|g' \
|
||||
@ -1458,11 +1517,14 @@ unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H
|
||||
-e 's|@''REPLACE_EXECVP''@|$(REPLACE_EXECVP)|g' \
|
||||
-e 's|@''REPLACE_EXECVPE''@|$(REPLACE_EXECVPE)|g' \
|
||||
-e 's|@''REPLACE_FACCESSAT''@|$(REPLACE_FACCESSAT)|g' \
|
||||
-e 's|@''REPLACE_FCHDIR''@|$(REPLACE_FCHDIR)|g' \
|
||||
-e 's|@''REPLACE_FCHOWNAT''@|$(REPLACE_FCHOWNAT)|g' \
|
||||
-e 's|@''REPLACE_FDATASYNC''@|$(REPLACE_FDATASYNC)|g' \
|
||||
-e 's|@''REPLACE_FTRUNCATE''@|$(REPLACE_FTRUNCATE)|g' \
|
||||
-e 's|@''REPLACE_GETCWD''@|$(REPLACE_GETCWD)|g' \
|
||||
-e 's|@''REPLACE_GETDOMAINNAME''@|$(REPLACE_GETDOMAINNAME)|g' \
|
||||
-e 's|@''REPLACE_GETDTABLESIZE''@|$(REPLACE_GETDTABLESIZE)|g' \
|
||||
-e 's|@''REPLACE_GETENTROPY''@|$(REPLACE_GETENTROPY)|g' \
|
||||
-e 's|@''REPLACE_GETLOGIN_R''@|$(REPLACE_GETLOGIN_R)|g' \
|
||||
-e 's|@''REPLACE_GETGROUPS''@|$(REPLACE_GETGROUPS)|g' \
|
||||
-e 's|@''REPLACE_GETPAGESIZE''@|$(REPLACE_GETPAGESIZE)|g' \
|
||||
@ -1473,12 +1535,14 @@ unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H
|
||||
-e 's|@''REPLACE_LINK''@|$(REPLACE_LINK)|g' \
|
||||
-e 's|@''REPLACE_LINKAT''@|$(REPLACE_LINKAT)|g' \
|
||||
-e 's|@''REPLACE_LSEEK''@|$(REPLACE_LSEEK)|g' \
|
||||
-e 's|@''REPLACE_PIPE2''@|$(REPLACE_PIPE2)|g' \
|
||||
-e 's|@''REPLACE_PREAD''@|$(REPLACE_PREAD)|g' \
|
||||
-e 's|@''REPLACE_PWRITE''@|$(REPLACE_PWRITE)|g' \
|
||||
-e 's|@''REPLACE_READ''@|$(REPLACE_READ)|g' \
|
||||
-e 's|@''REPLACE_READLINK''@|$(REPLACE_READLINK)|g' \
|
||||
-e 's|@''REPLACE_READLINKAT''@|$(REPLACE_READLINKAT)|g' \
|
||||
-e 's|@''REPLACE_RMDIR''@|$(REPLACE_RMDIR)|g' \
|
||||
-e 's|@''REPLACE_SETHOSTNAME''@|$(REPLACE_SETHOSTNAME)|g' \
|
||||
-e 's|@''REPLACE_SLEEP''@|$(REPLACE_SLEEP)|g' \
|
||||
-e 's|@''REPLACE_SYMLINK''@|$(REPLACE_SYMLINK)|g' \
|
||||
-e 's|@''REPLACE_SYMLINKAT''@|$(REPLACE_SYMLINKAT)|g' \
|
||||
@ -1494,9 +1558,10 @@ unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H
|
||||
-e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
|
||||
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
||||
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
|
||||
> $@-t
|
||||
$(AM_V_at)mv $@-t $@
|
||||
MOSTLYCLEANFILES += unistd.h unistd.h-t
|
||||
< $@-t3 > $@-t4
|
||||
$(AM_V_at)rm -f $@-t1 $@-t2 $@-t3
|
||||
$(AM_V_at)mv $@-t4 $@
|
||||
MOSTLYCLEANFILES += unistd.h unistd.h-t1 unistd.h-t2 unistd.h-t3 unistd.h-t4
|
||||
|
||||
EXTRA_DIST += unistd.in.h
|
||||
|
||||
@ -1552,15 +1617,6 @@ EXTRA_DIST += unitypes.in.h
|
||||
|
||||
## end gnulib module unitypes
|
||||
|
||||
## begin gnulib module verify
|
||||
|
||||
if gl_GNULIB_ENABLED_verify
|
||||
|
||||
endif
|
||||
EXTRA_DIST += verify.h
|
||||
|
||||
## end gnulib module verify
|
||||
|
||||
## begin gnulib module wchar
|
||||
|
||||
BUILT_SOURCES += wchar.h
|
||||
@ -1581,6 +1637,7 @@ wchar.h: wchar.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H)
|
||||
-e 's/@''GNULIB_BTOWC''@/$(GL_GNULIB_BTOWC)/g' \
|
||||
-e 's/@''GNULIB_WCTOB''@/$(GL_GNULIB_WCTOB)/g' \
|
||||
-e 's/@''GNULIB_MBSINIT''@/$(GL_GNULIB_MBSINIT)/g' \
|
||||
-e 's/@''GNULIB_MBSZERO''@/$(GL_GNULIB_MBSZERO)/g' \
|
||||
-e 's/@''GNULIB_MBRTOWC''@/$(GL_GNULIB_MBRTOWC)/g' \
|
||||
-e 's/@''GNULIB_MBRLEN''@/$(GL_GNULIB_MBRLEN)/g' \
|
||||
-e 's/@''GNULIB_MBSRTOWCS''@/$(GL_GNULIB_MBSRTOWCS)/g' \
|
||||
@ -1619,10 +1676,12 @@ wchar.h: wchar.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H)
|
||||
-e 's/@''GNULIB_WCSTOK''@/$(GL_GNULIB_WCSTOK)/g' \
|
||||
-e 's/@''GNULIB_WCSWIDTH''@/$(GL_GNULIB_WCSWIDTH)/g' \
|
||||
-e 's/@''GNULIB_WCSFTIME''@/$(GL_GNULIB_WCSFTIME)/g' \
|
||||
-e 's/@''GNULIB_WGETCWD''@/$(GL_GNULIB_WGETCWD)/g' \
|
||||
-e 's/@''GNULIB_MDA_WCSDUP''@/$(GL_GNULIB_MDA_WCSDUP)/g' \
|
||||
-e 's/@''GNULIB_FREE_POSIX''@/$(GL_GNULIB_FREE_POSIX)/g' \
|
||||
< $(srcdir)/wchar.in.h | \
|
||||
sed -e 's|@''HAVE_WINT_T''@|$(HAVE_WINT_T)|g' \
|
||||
< $(srcdir)/wchar.in.h > $@-t1
|
||||
$(AM_V_at)sed \
|
||||
-e 's|@''HAVE_WINT_T''@|$(HAVE_WINT_T)|g' \
|
||||
-e 's|@''HAVE_BTOWC''@|$(HAVE_BTOWC)|g' \
|
||||
-e 's|@''HAVE_MBSINIT''@|$(HAVE_MBSINIT)|g' \
|
||||
-e 's|@''HAVE_MBRTOWC''@|$(HAVE_MBRTOWC)|g' \
|
||||
@ -1665,8 +1724,9 @@ wchar.h: wchar.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H)
|
||||
-e 's|@''HAVE_DECL_WCTOB''@|$(HAVE_DECL_WCTOB)|g' \
|
||||
-e 's|@''HAVE_DECL_WCSDUP''@|$(HAVE_DECL_WCSDUP)|g' \
|
||||
-e 's|@''HAVE_DECL_WCWIDTH''@|$(HAVE_DECL_WCWIDTH)|g' \
|
||||
| \
|
||||
sed -e 's|@''REPLACE_MBSTATE_T''@|$(REPLACE_MBSTATE_T)|g' \
|
||||
< $@-t1 > $@-t2
|
||||
$(AM_V_at)sed \
|
||||
-e 's|@''REPLACE_MBSTATE_T''@|$(REPLACE_MBSTATE_T)|g' \
|
||||
-e 's|@''REPLACE_BTOWC''@|$(REPLACE_BTOWC)|g' \
|
||||
-e 's|@''REPLACE_WCTOB''@|$(REPLACE_WCTOB)|g' \
|
||||
-e 's|@''REPLACE_FREE''@|$(REPLACE_FREE)|g' \
|
||||
@ -1681,13 +1741,19 @@ wchar.h: wchar.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H)
|
||||
-e 's|@''REPLACE_WCWIDTH''@|$(REPLACE_WCWIDTH)|g' \
|
||||
-e 's|@''REPLACE_WCSWIDTH''@|$(REPLACE_WCSWIDTH)|g' \
|
||||
-e 's|@''REPLACE_WCSFTIME''@|$(REPLACE_WCSFTIME)|g' \
|
||||
-e 's|@''REPLACE_WCSCMP''@|$(REPLACE_WCSCMP)|g' \
|
||||
-e 's|@''REPLACE_WCSNCMP''@|$(REPLACE_WCSNCMP)|g' \
|
||||
-e 's|@''REPLACE_WCSSTR''@|$(REPLACE_WCSSTR)|g' \
|
||||
-e 's|@''REPLACE_WCSTOK''@|$(REPLACE_WCSTOK)|g' \
|
||||
-e 's|@''REPLACE_WMEMCMP''@|$(REPLACE_WMEMCMP)|g' \
|
||||
-e 's|@''REPLACE_WMEMPCPY''@|$(REPLACE_WMEMPCPY)|g' \
|
||||
-e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
|
||||
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
||||
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
|
||||
> $@-t
|
||||
$(AM_V_at)mv $@-t $@
|
||||
MOSTLYCLEANFILES += wchar.h wchar.h-t
|
||||
< $@-t2 > $@-t3
|
||||
$(AM_V_at)rm -f $@-t1 $@-t2
|
||||
$(AM_V_at)mv $@-t3 $@
|
||||
MOSTLYCLEANFILES += wchar.h wchar.h-t1 wchar.h-t2 wchar.h-t3
|
||||
|
||||
EXTRA_DIST += wchar.in.h
|
||||
|
||||
@ -1738,7 +1804,7 @@ libgnu_a_SOURCES += wctype-h.c
|
||||
|
||||
# We need the following in order to create <wctype.h> when the system
|
||||
# doesn't have one that works with the given compiler.
|
||||
wctype.h: wctype.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H)
|
||||
wctype.h: wctype.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
|
||||
$(gl_V_at)$(SED_HEADER_STDOUT) \
|
||||
-e 's|@''GUARD_PREFIX''@|GL|g' \
|
||||
-e 's/@''HAVE_WCTYPE_H''@/$(HAVE_WCTYPE_H)/g' \
|
||||
@ -1750,6 +1816,7 @@ wctype.h: wctype.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H
|
||||
-e 's/@''GNULIBHEADERS_OVERRIDE_WINT_T''@/$(GNULIBHEADERS_OVERRIDE_WINT_T)/g' \
|
||||
-e 's/@''GNULIB_ISWBLANK''@/$(GL_GNULIB_ISWBLANK)/g' \
|
||||
-e 's/@''GNULIB_ISWDIGIT''@/$(GL_GNULIB_ISWDIGIT)/g' \
|
||||
-e 's/@''GNULIB_ISWPUNCT''@/$(GL_GNULIB_ISWPUNCT)/g' \
|
||||
-e 's/@''GNULIB_ISWXDIGIT''@/$(GL_GNULIB_ISWXDIGIT)/g' \
|
||||
-e 's/@''GNULIB_WCTYPE''@/$(GL_GNULIB_WCTYPE)/g' \
|
||||
-e 's/@''GNULIB_ISWCTYPE''@/$(GL_GNULIB_ISWCTYPE)/g' \
|
||||
@ -1762,10 +1829,14 @@ wctype.h: wctype.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H
|
||||
-e 's/@''HAVE_WINT_T''@/$(HAVE_WINT_T)/g' \
|
||||
-e 's/@''REPLACE_ISWBLANK''@/$(REPLACE_ISWBLANK)/g' \
|
||||
-e 's/@''REPLACE_ISWDIGIT''@/$(REPLACE_ISWDIGIT)/g' \
|
||||
-e 's/@''REPLACE_ISWPUNCT''@/$(REPLACE_ISWPUNCT)/g' \
|
||||
-e 's/@''REPLACE_ISWXDIGIT''@/$(REPLACE_ISWXDIGIT)/g' \
|
||||
-e 's/@''REPLACE_ISWCNTRL''@/$(REPLACE_ISWCNTRL)/g' \
|
||||
-e 's/@''REPLACE_TOWLOWER''@/$(REPLACE_TOWLOWER)/g' \
|
||||
-e 's/@''REPLACE_WCTRANS''@/$(REPLACE_WCTRANS)/g' \
|
||||
-e 's/@''REPLACE_WCTYPE''@/$(REPLACE_WCTYPE)/g' \
|
||||
-e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
|
||||
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
||||
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
|
||||
$(srcdir)/wctype.in.h > $@-t
|
||||
$(AM_V_at)mv $@-t $@
|
||||
|
412
lib/Makefile.in
412
lib/Makefile.in
@ -14,7 +14,7 @@
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
# Copyright (C) 2002-2022 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2002-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
|
||||
@ -147,47 +147,51 @@ PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
@GL_COND_OBJ_BTOWC_TRUE@am__append_1 = btowc.c
|
||||
@GL_COND_OBJ_FREE_TRUE@am__append_2 = free.c
|
||||
@GL_COND_OBJ_GETOPT_TRUE@am__append_3 = getopt.c getopt1.c
|
||||
@GL_COND_OBJ_GETTIMEOFDAY_TRUE@am__append_4 = gettimeofday.c
|
||||
@gl_GNULIB_ENABLED_30838f5439487421042f2225bed3af76_TRUE@am__append_5 = hard-locale.c
|
||||
@GL_COND_OBJ_ICONV_OPEN_TRUE@am__append_6 = iconv_open.c
|
||||
@GL_COND_OBJ_ICONV_TRUE@am__append_7 = iconv.c iconv_close.c
|
||||
@gl_GNULIB_ENABLED_localcharset_TRUE@am__append_8 = localcharset.c
|
||||
@GL_COND_OBJ_MBRTOWC_TRUE@am__append_9 = mbrtowc.c
|
||||
@GL_COND_OBJ_MBSINIT_TRUE@@gl_GNULIB_ENABLED_mbsinit_TRUE@am__append_10 = mbsinit.c
|
||||
@GL_COND_OBJ_MBSRTOWCS_TRUE@am__append_11 = mbsrtowcs.c
|
||||
@GL_COND_OBJ_MBTOWC_TRUE@@gl_GNULIB_ENABLED_mbtowc_TRUE@am__append_12 = mbtowc.c
|
||||
@GL_COND_OBJ_MEMCHR_TRUE@@gl_GNULIB_ENABLED_memchr_TRUE@am__append_13 = memchr.c
|
||||
@gl_GNULIB_ENABLED_e7e881d32ca02f1c997b13c737c64bbd_TRUE@am__append_14 = setlocale_null.c
|
||||
@GL_COND_OBJ_SETLOCALE_LOCK_TRUE@@gl_GNULIB_ENABLED_e7e881d32ca02f1c997b13c737c64bbd_TRUE@am__append_15 = setlocale-lock.c
|
||||
@GL_COND_OBJ_STDIO_READ_TRUE@am__append_16 = stdio-read.c
|
||||
@GL_COND_OBJ_STDIO_WRITE_TRUE@am__append_17 = stdio-write.c
|
||||
@gl_GNULIB_ENABLED_strnlen1_TRUE@am__append_18 = strnlen1.h strnlen1.c
|
||||
@gl_GNULIB_ENABLED_9c4a70804d24b83657b84f487eb93a64_TRUE@am__append_19 = $(LIBUNISTRING_UNISTR_H)
|
||||
@gl_GNULIB_ENABLED_9c4a70804d24b83657b84f487eb93a64_TRUE@am__append_20 = unistr.h unistr.h-t
|
||||
@LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE@@gl_GNULIB_ENABLED_53028ec81a2fde9235f1d688e4e85fc1_TRUE@am__append_21 = unistr/u8-mbtoucr.c
|
||||
@LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE@@gl_GNULIB_ENABLED_fabe8eca3a52cf42d4d1d781b9f5fcbe_TRUE@am__append_22 = unistr/u8-uctomb.c unistr/u8-uctomb-aux.c
|
||||
@gl_GNULIB_ENABLED_unitypes_TRUE@am__append_23 = $(LIBUNISTRING_UNITYPES_H)
|
||||
@gl_GNULIB_ENABLED_unitypes_TRUE@am__append_24 = unitypes.h unitypes.h-t
|
||||
@GL_COND_OBJ_WCRTOMB_TRUE@am__append_25 = wcrtomb.c
|
||||
@GL_COND_OBJ_WCSDUP_TRUE@am__append_26 = wcsdup.c
|
||||
@GL_COND_OBJ_WCTOB_TRUE@am__append_27 = wctob.c
|
||||
@GL_COND_OBJ_WCTOMB_TRUE@@gl_GNULIB_ENABLED_wctomb_TRUE@am__append_28 = wctomb.c
|
||||
@GL_COND_OBJ_WMEMCPY_TRUE@@gl_GNULIB_ENABLED_wmemcpy_TRUE@am__append_29 = wmemcpy.c
|
||||
@gl_GNULIB_ENABLED_d07eca4c7a24aaac657c64e6568d4c2f_TRUE@am__append_1 = $(ASSERT_H)
|
||||
@gl_GNULIB_ENABLED_d07eca4c7a24aaac657c64e6568d4c2f_TRUE@am__append_2 = assert.h assert.h-t
|
||||
@GL_COND_OBJ_BTOWC_TRUE@am__append_3 = btowc.c
|
||||
@GL_COND_OBJ_FREE_TRUE@am__append_4 = free.c
|
||||
@GL_COND_OBJ_GETOPT_TRUE@am__append_5 = getopt.c getopt1.c
|
||||
@GL_COND_OBJ_GETTIMEOFDAY_TRUE@am__append_6 = gettimeofday.c
|
||||
@gl_GNULIB_ENABLED_30838f5439487421042f2225bed3af76_TRUE@am__append_7 = hard-locale.c
|
||||
@GL_COND_OBJ_ICONV_OPEN_TRUE@am__append_8 = iconv_open.c
|
||||
@GL_COND_OBJ_ICONV_TRUE@am__append_9 = iconv.c iconv_close.c
|
||||
@gl_GNULIB_ENABLED_localcharset_TRUE@am__append_10 = localcharset.c
|
||||
@GL_COND_OBJ_MBRTOWC_TRUE@am__append_11 = mbrtowc.c
|
||||
@GL_COND_OBJ_MBSINIT_TRUE@@gl_GNULIB_ENABLED_mbsinit_TRUE@am__append_12 = mbsinit.c
|
||||
@GL_COND_OBJ_MBSRTOWCS_TRUE@am__append_13 = mbsrtowcs.c
|
||||
@gl_GNULIB_ENABLED_mbszero_TRUE@am__append_14 = mbszero.c
|
||||
@GL_COND_OBJ_MBTOWC_TRUE@@gl_GNULIB_ENABLED_mbtowc_TRUE@am__append_15 = mbtowc.c
|
||||
@GL_COND_OBJ_MEMCHR_TRUE@@gl_GNULIB_ENABLED_memchr_TRUE@am__append_16 = memchr.c
|
||||
@gl_GNULIB_ENABLED_e7e881d32ca02f1c997b13c737c64bbd_TRUE@am__append_17 = setlocale_null.c
|
||||
@GL_COND_OBJ_SETLOCALE_LOCK_TRUE@@gl_GNULIB_ENABLED_e7e881d32ca02f1c997b13c737c64bbd_TRUE@am__append_18 = setlocale-lock.c
|
||||
@GL_COND_OBJ_STDIO_READ_TRUE@am__append_19 = stdio-read.c
|
||||
@GL_COND_OBJ_STDIO_WRITE_TRUE@am__append_20 = stdio-write.c
|
||||
@gl_GNULIB_ENABLED_strnlen1_TRUE@am__append_21 = strnlen1.h strnlen1.c
|
||||
@gl_GNULIB_ENABLED_9c4a70804d24b83657b84f487eb93a64_TRUE@am__append_22 = $(LIBUNISTRING_UNISTR_H)
|
||||
@gl_GNULIB_ENABLED_9c4a70804d24b83657b84f487eb93a64_TRUE@am__append_23 = unistr.h unistr.h-t
|
||||
@LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE@@gl_GNULIB_ENABLED_53028ec81a2fde9235f1d688e4e85fc1_TRUE@am__append_24 = unistr/u8-mbtoucr.c
|
||||
@LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE@@gl_GNULIB_ENABLED_fabe8eca3a52cf42d4d1d781b9f5fcbe_TRUE@am__append_25 = unistr/u8-uctomb.c unistr/u8-uctomb-aux.c
|
||||
@gl_GNULIB_ENABLED_unitypes_TRUE@am__append_26 = $(LIBUNISTRING_UNITYPES_H)
|
||||
@gl_GNULIB_ENABLED_unitypes_TRUE@am__append_27 = unitypes.h unitypes.h-t
|
||||
@GL_COND_OBJ_WCRTOMB_TRUE@am__append_28 = wcrtomb.c
|
||||
@GL_COND_OBJ_WCSDUP_TRUE@am__append_29 = wcsdup.c
|
||||
@GL_COND_OBJ_WCTOB_TRUE@am__append_30 = wctob.c
|
||||
@GL_COND_OBJ_WCTOMB_TRUE@@gl_GNULIB_ENABLED_wctomb_TRUE@am__append_31 = wctomb.c
|
||||
@GL_COND_OBJ_WMEMCPY_TRUE@@gl_GNULIB_ENABLED_wmemcpy_TRUE@am__append_32 = wmemcpy.c
|
||||
subdir = lib
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/00gnulib.m4 \
|
||||
$(top_srcdir)/m4/absolute-header.m4 $(top_srcdir)/m4/assert.m4 \
|
||||
$(top_srcdir)/m4/assert_h.m4 \
|
||||
$(top_srcdir)/m4/ax_c___attribute__.m4 \
|
||||
$(top_srcdir)/m4/ax_cflags_warn_all.m4 \
|
||||
$(top_srcdir)/m4/ax_compiler_vendor.m4 \
|
||||
$(top_srcdir)/m4/ax_prepend_flag.m4 \
|
||||
$(top_srcdir)/m4/ax_require_defined.m4 \
|
||||
$(top_srcdir)/m4/ax_with_curses.m4 $(top_srcdir)/m4/btowc.m4 \
|
||||
$(top_srcdir)/m4/codeset.m4 $(top_srcdir)/m4/config-h.m4 \
|
||||
$(top_srcdir)/m4/extensions.m4 \
|
||||
$(top_srcdir)/m4/c-bool.m4 $(top_srcdir)/m4/codeset.m4 \
|
||||
$(top_srcdir)/m4/config-h.m4 $(top_srcdir)/m4/extensions.m4 \
|
||||
$(top_srcdir)/m4/extern-inline.m4 $(top_srcdir)/m4/free.m4 \
|
||||
$(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/gettimeofday.m4 \
|
||||
$(top_srcdir)/m4/gnulib-common.m4 \
|
||||
@ -205,9 +209,9 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/00gnulib.m4 \
|
||||
$(top_srcdir)/m4/mbsrtowcs.m4 $(top_srcdir)/m4/mbstate_t.m4 \
|
||||
$(top_srcdir)/m4/mbtowc.m4 $(top_srcdir)/m4/memchr.m4 \
|
||||
$(top_srcdir)/m4/mmap-anon.m4 $(top_srcdir)/m4/monetary_h.m4 \
|
||||
$(top_srcdir)/m4/multiarch.m4 $(top_srcdir)/m4/nocrash.m4 \
|
||||
$(top_srcdir)/m4/off_t.m4 $(top_srcdir)/m4/setlocale_null.m4 \
|
||||
$(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/stdbool.m4 \
|
||||
$(top_srcdir)/m4/multiarch.m4 $(top_srcdir)/m4/musl.m4 \
|
||||
$(top_srcdir)/m4/nocrash.m4 $(top_srcdir)/m4/off_t.m4 \
|
||||
$(top_srcdir)/m4/setlocale_null.m4 $(top_srcdir)/m4/ssize_t.m4 \
|
||||
$(top_srcdir)/m4/stddef_h.m4 $(top_srcdir)/m4/stdint.m4 \
|
||||
$(top_srcdir)/m4/stdio_h.m4 $(top_srcdir)/m4/stdlib_h.m4 \
|
||||
$(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/sys_socket_h.m4 \
|
||||
@ -241,7 +245,7 @@ am__libgnu_a_SOURCES_DIST = btowc.c c-ctype.h c-ctype.c c-strcase.h \
|
||||
c-strcasecmp.c c-strncasecmp.c crc.c free.c getopt.c getopt1.c \
|
||||
gettext.h gettimeofday.c hard-locale.c iconv_open.c iconv.c \
|
||||
iconv_close.c localcharset.c mbrtowc.c mbsinit.c mbsrtowcs.c \
|
||||
mbtowc.c memchr.c setlocale_null.c setlocale-lock.c \
|
||||
mbszero.c mbtowc.c memchr.c setlocale_null.c setlocale-lock.c \
|
||||
stdio-read.c stdio-write.c striconv.h striconv.c strnlen1.h \
|
||||
strnlen1.c unistd.c unistr/u8-mbtoucr.c unistr/u8-uctomb.c \
|
||||
unistr/u8-uctomb-aux.c wcrtomb.c wcsdup.c wctob.c wctomb.c \
|
||||
@ -261,25 +265,27 @@ am__libgnu_a_SOURCES_DIST = btowc.c c-ctype.h c-ctype.c c-strcase.h \
|
||||
@GL_COND_OBJ_MBSINIT_TRUE@@gl_GNULIB_ENABLED_mbsinit_TRUE@am__objects_10 = libgnu_a-mbsinit.$(OBJEXT)
|
||||
@GL_COND_OBJ_MBSRTOWCS_TRUE@am__objects_11 = \
|
||||
@GL_COND_OBJ_MBSRTOWCS_TRUE@ libgnu_a-mbsrtowcs.$(OBJEXT)
|
||||
@GL_COND_OBJ_MBTOWC_TRUE@@gl_GNULIB_ENABLED_mbtowc_TRUE@am__objects_12 = libgnu_a-mbtowc.$(OBJEXT)
|
||||
@GL_COND_OBJ_MEMCHR_TRUE@@gl_GNULIB_ENABLED_memchr_TRUE@am__objects_13 = libgnu_a-memchr.$(OBJEXT)
|
||||
@gl_GNULIB_ENABLED_e7e881d32ca02f1c997b13c737c64bbd_TRUE@am__objects_14 = libgnu_a-setlocale_null.$(OBJEXT)
|
||||
@GL_COND_OBJ_SETLOCALE_LOCK_TRUE@@gl_GNULIB_ENABLED_e7e881d32ca02f1c997b13c737c64bbd_TRUE@am__objects_15 = libgnu_a-setlocale-lock.$(OBJEXT)
|
||||
@GL_COND_OBJ_STDIO_READ_TRUE@am__objects_16 = \
|
||||
@gl_GNULIB_ENABLED_mbszero_TRUE@am__objects_12 = \
|
||||
@gl_GNULIB_ENABLED_mbszero_TRUE@ libgnu_a-mbszero.$(OBJEXT)
|
||||
@GL_COND_OBJ_MBTOWC_TRUE@@gl_GNULIB_ENABLED_mbtowc_TRUE@am__objects_13 = libgnu_a-mbtowc.$(OBJEXT)
|
||||
@GL_COND_OBJ_MEMCHR_TRUE@@gl_GNULIB_ENABLED_memchr_TRUE@am__objects_14 = libgnu_a-memchr.$(OBJEXT)
|
||||
@gl_GNULIB_ENABLED_e7e881d32ca02f1c997b13c737c64bbd_TRUE@am__objects_15 = libgnu_a-setlocale_null.$(OBJEXT)
|
||||
@GL_COND_OBJ_SETLOCALE_LOCK_TRUE@@gl_GNULIB_ENABLED_e7e881d32ca02f1c997b13c737c64bbd_TRUE@am__objects_16 = libgnu_a-setlocale-lock.$(OBJEXT)
|
||||
@GL_COND_OBJ_STDIO_READ_TRUE@am__objects_17 = \
|
||||
@GL_COND_OBJ_STDIO_READ_TRUE@ libgnu_a-stdio-read.$(OBJEXT)
|
||||
@GL_COND_OBJ_STDIO_WRITE_TRUE@am__objects_17 = \
|
||||
@GL_COND_OBJ_STDIO_WRITE_TRUE@am__objects_18 = \
|
||||
@GL_COND_OBJ_STDIO_WRITE_TRUE@ libgnu_a-stdio-write.$(OBJEXT)
|
||||
@gl_GNULIB_ENABLED_strnlen1_TRUE@am__objects_18 = \
|
||||
@gl_GNULIB_ENABLED_strnlen1_TRUE@am__objects_19 = \
|
||||
@gl_GNULIB_ENABLED_strnlen1_TRUE@ libgnu_a-strnlen1.$(OBJEXT)
|
||||
am__dirstamp = $(am__leading_dot)dirstamp
|
||||
@LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE@@gl_GNULIB_ENABLED_53028ec81a2fde9235f1d688e4e85fc1_TRUE@am__objects_19 = unistr/libgnu_a-u8-mbtoucr.$(OBJEXT)
|
||||
@LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE@@gl_GNULIB_ENABLED_fabe8eca3a52cf42d4d1d781b9f5fcbe_TRUE@am__objects_20 = unistr/libgnu_a-u8-uctomb.$(OBJEXT) \
|
||||
@LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE@@gl_GNULIB_ENABLED_53028ec81a2fde9235f1d688e4e85fc1_TRUE@am__objects_20 = unistr/libgnu_a-u8-mbtoucr.$(OBJEXT)
|
||||
@LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE@@gl_GNULIB_ENABLED_fabe8eca3a52cf42d4d1d781b9f5fcbe_TRUE@am__objects_21 = unistr/libgnu_a-u8-uctomb.$(OBJEXT) \
|
||||
@LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE@@gl_GNULIB_ENABLED_fabe8eca3a52cf42d4d1d781b9f5fcbe_TRUE@ unistr/libgnu_a-u8-uctomb-aux.$(OBJEXT)
|
||||
@GL_COND_OBJ_WCRTOMB_TRUE@am__objects_21 = libgnu_a-wcrtomb.$(OBJEXT)
|
||||
@GL_COND_OBJ_WCSDUP_TRUE@am__objects_22 = libgnu_a-wcsdup.$(OBJEXT)
|
||||
@GL_COND_OBJ_WCTOB_TRUE@am__objects_23 = libgnu_a-wctob.$(OBJEXT)
|
||||
@GL_COND_OBJ_WCTOMB_TRUE@@gl_GNULIB_ENABLED_wctomb_TRUE@am__objects_24 = libgnu_a-wctomb.$(OBJEXT)
|
||||
@GL_COND_OBJ_WMEMCPY_TRUE@@gl_GNULIB_ENABLED_wmemcpy_TRUE@am__objects_25 = libgnu_a-wmemcpy.$(OBJEXT)
|
||||
@GL_COND_OBJ_WCRTOMB_TRUE@am__objects_22 = libgnu_a-wcrtomb.$(OBJEXT)
|
||||
@GL_COND_OBJ_WCSDUP_TRUE@am__objects_23 = libgnu_a-wcsdup.$(OBJEXT)
|
||||
@GL_COND_OBJ_WCTOB_TRUE@am__objects_24 = libgnu_a-wctob.$(OBJEXT)
|
||||
@GL_COND_OBJ_WCTOMB_TRUE@@gl_GNULIB_ENABLED_wctomb_TRUE@am__objects_25 = libgnu_a-wctomb.$(OBJEXT)
|
||||
@GL_COND_OBJ_WMEMCPY_TRUE@@gl_GNULIB_ENABLED_wmemcpy_TRUE@am__objects_26 = libgnu_a-wmemcpy.$(OBJEXT)
|
||||
am_libgnu_a_OBJECTS = $(am__objects_1) libgnu_a-c-ctype.$(OBJEXT) \
|
||||
libgnu_a-c-strcasecmp.$(OBJEXT) \
|
||||
libgnu_a-c-strncasecmp.$(OBJEXT) libgnu_a-crc.$(OBJEXT) \
|
||||
@ -288,11 +294,12 @@ am_libgnu_a_OBJECTS = $(am__objects_1) libgnu_a-c-ctype.$(OBJEXT) \
|
||||
$(am__objects_8) $(am__objects_9) $(am__objects_10) \
|
||||
$(am__objects_11) $(am__objects_12) $(am__objects_13) \
|
||||
$(am__objects_14) $(am__objects_15) $(am__objects_16) \
|
||||
$(am__objects_17) libgnu_a-striconv.$(OBJEXT) \
|
||||
$(am__objects_18) libgnu_a-unistd.$(OBJEXT) $(am__objects_19) \
|
||||
$(am__objects_20) $(am__objects_21) $(am__objects_22) \
|
||||
$(am__objects_23) $(am__objects_24) \
|
||||
libgnu_a-wctype-h.$(OBJEXT) $(am__objects_25)
|
||||
$(am__objects_17) $(am__objects_18) \
|
||||
libgnu_a-striconv.$(OBJEXT) $(am__objects_19) \
|
||||
libgnu_a-unistd.$(OBJEXT) $(am__objects_20) $(am__objects_21) \
|
||||
$(am__objects_22) $(am__objects_23) $(am__objects_24) \
|
||||
$(am__objects_25) libgnu_a-wctype-h.$(OBJEXT) \
|
||||
$(am__objects_26)
|
||||
libgnu_a_OBJECTS = $(am_libgnu_a_OBJECTS)
|
||||
AM_V_P = $(am__v_P_@AM_V@)
|
||||
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
|
||||
@ -326,6 +333,7 @@ am__depfiles_remade = ./$(DEPDIR)/libgnu_a-btowc.Po \
|
||||
./$(DEPDIR)/libgnu_a-mbsinit.Po \
|
||||
./$(DEPDIR)/libgnu_a-mbsrtowcs-state.Po \
|
||||
./$(DEPDIR)/libgnu_a-mbsrtowcs.Po \
|
||||
./$(DEPDIR)/libgnu_a-mbszero.Po \
|
||||
./$(DEPDIR)/libgnu_a-mbtowc-lock.Po \
|
||||
./$(DEPDIR)/libgnu_a-mbtowc.Po ./$(DEPDIR)/libgnu_a-memchr.Po \
|
||||
./$(DEPDIR)/libgnu_a-setlocale-lock.Po \
|
||||
@ -435,6 +443,7 @@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||
APPLE_UNIVERSAL_BUILD = @APPLE_UNIVERSAL_BUILD@
|
||||
AR = @AR@
|
||||
ARFLAGS = @ARFLAGS@
|
||||
ASSERT_H = @ASSERT_H@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
@ -546,6 +555,7 @@ GL_GNULIB_GETOPT_POSIX = @GL_GNULIB_GETOPT_POSIX@
|
||||
GL_GNULIB_GETPAGESIZE = @GL_GNULIB_GETPAGESIZE@
|
||||
GL_GNULIB_GETPASS = @GL_GNULIB_GETPASS@
|
||||
GL_GNULIB_GETPASS_GNU = @GL_GNULIB_GETPASS_GNU@
|
||||
GL_GNULIB_GETPROGNAME = @GL_GNULIB_GETPROGNAME@
|
||||
GL_GNULIB_GETSUBOPT = @GL_GNULIB_GETSUBOPT@
|
||||
GL_GNULIB_GETTIMEOFDAY = @GL_GNULIB_GETTIMEOFDAY@
|
||||
GL_GNULIB_GETUMASK = @GL_GNULIB_GETUMASK@
|
||||
@ -559,6 +569,7 @@ GL_GNULIB_ISATTY = @GL_GNULIB_ISATTY@
|
||||
GL_GNULIB_ISWBLANK = @GL_GNULIB_ISWBLANK@
|
||||
GL_GNULIB_ISWCTYPE = @GL_GNULIB_ISWCTYPE@
|
||||
GL_GNULIB_ISWDIGIT = @GL_GNULIB_ISWDIGIT@
|
||||
GL_GNULIB_ISWPUNCT = @GL_GNULIB_ISWPUNCT@
|
||||
GL_GNULIB_ISWXDIGIT = @GL_GNULIB_ISWXDIGIT@
|
||||
GL_GNULIB_LCHMOD = @GL_GNULIB_LCHMOD@
|
||||
GL_GNULIB_LCHOWN = @GL_GNULIB_LCHOWN@
|
||||
@ -590,6 +601,8 @@ GL_GNULIB_MBSSEP = @GL_GNULIB_MBSSEP@
|
||||
GL_GNULIB_MBSSPN = @GL_GNULIB_MBSSPN@
|
||||
GL_GNULIB_MBSSTR = @GL_GNULIB_MBSSTR@
|
||||
GL_GNULIB_MBSTOK_R = @GL_GNULIB_MBSTOK_R@
|
||||
GL_GNULIB_MBSTOWCS = @GL_GNULIB_MBSTOWCS@
|
||||
GL_GNULIB_MBSZERO = @GL_GNULIB_MBSZERO@
|
||||
GL_GNULIB_MBTOWC = @GL_GNULIB_MBTOWC@
|
||||
GL_GNULIB_MDA_ACCESS = @GL_GNULIB_MDA_ACCESS@
|
||||
GL_GNULIB_MDA_CHDIR = @GL_GNULIB_MDA_CHDIR@
|
||||
@ -634,6 +647,7 @@ GL_GNULIB_MEMCHR = @GL_GNULIB_MEMCHR@
|
||||
GL_GNULIB_MEMMEM = @GL_GNULIB_MEMMEM@
|
||||
GL_GNULIB_MEMPCPY = @GL_GNULIB_MEMPCPY@
|
||||
GL_GNULIB_MEMRCHR = @GL_GNULIB_MEMRCHR@
|
||||
GL_GNULIB_MEMSET_EXPLICIT = @GL_GNULIB_MEMSET_EXPLICIT@
|
||||
GL_GNULIB_MKDIR = @GL_GNULIB_MKDIR@
|
||||
GL_GNULIB_MKDIRAT = @GL_GNULIB_MKDIRAT@
|
||||
GL_GNULIB_MKDTEMP = @GL_GNULIB_MKDTEMP@
|
||||
@ -668,6 +682,7 @@ GL_GNULIB_PUTENV = @GL_GNULIB_PUTENV@
|
||||
GL_GNULIB_PUTS = @GL_GNULIB_PUTS@
|
||||
GL_GNULIB_PWRITE = @GL_GNULIB_PWRITE@
|
||||
GL_GNULIB_QSORT_R = @GL_GNULIB_QSORT_R@
|
||||
GL_GNULIB_RAND = @GL_GNULIB_RAND@
|
||||
GL_GNULIB_RANDOM = @GL_GNULIB_RANDOM@
|
||||
GL_GNULIB_RANDOM_R = @GL_GNULIB_RANDOM_R@
|
||||
GL_GNULIB_RAWMEMCHR = @GL_GNULIB_RAWMEMCHR@
|
||||
@ -728,6 +743,7 @@ GL_GNULIB_STRVERSCMP = @GL_GNULIB_STRVERSCMP@
|
||||
GL_GNULIB_SYMLINK = @GL_GNULIB_SYMLINK@
|
||||
GL_GNULIB_SYMLINKAT = @GL_GNULIB_SYMLINKAT@
|
||||
GL_GNULIB_SYSTEM_POSIX = @GL_GNULIB_SYSTEM_POSIX@
|
||||
GL_GNULIB_TIME = @GL_GNULIB_TIME@
|
||||
GL_GNULIB_TIMEGM = @GL_GNULIB_TIMEGM@
|
||||
GL_GNULIB_TIMESPEC_GET = @GL_GNULIB_TIMESPEC_GET@
|
||||
GL_GNULIB_TIMESPEC_GETRES = @GL_GNULIB_TIMESPEC_GETRES@
|
||||
@ -789,6 +805,7 @@ GL_GNULIB_WCTOMB = @GL_GNULIB_WCTOMB@
|
||||
GL_GNULIB_WCTRANS = @GL_GNULIB_WCTRANS@
|
||||
GL_GNULIB_WCTYPE = @GL_GNULIB_WCTYPE@
|
||||
GL_GNULIB_WCWIDTH = @GL_GNULIB_WCWIDTH@
|
||||
GL_GNULIB_WGETCWD = @GL_GNULIB_WGETCWD@
|
||||
GL_GNULIB_WMEMCHR = @GL_GNULIB_WMEMCHR@
|
||||
GL_GNULIB_WMEMCMP = @GL_GNULIB_WMEMCMP@
|
||||
GL_GNULIB_WMEMCPY = @GL_GNULIB_WMEMCPY@
|
||||
@ -800,8 +817,8 @@ GL_GNULIB__EXIT = @GL_GNULIB__EXIT@
|
||||
GMSGFMT = @GMSGFMT@
|
||||
GMSGFMT_015 = @GMSGFMT_015@
|
||||
GNULIBHEADERS_OVERRIDE_WINT_T = @GNULIBHEADERS_OVERRIDE_WINT_T@
|
||||
GNULIB_GETTIMEOFDAY = @GNULIB_GETTIMEOFDAY@
|
||||
GREP = @GREP@
|
||||
HARD_LOCALE_LIB = @HARD_LOCALE_LIB@
|
||||
HAVE_ALIGNED_ALLOC = @HAVE_ALIGNED_ALLOC@
|
||||
HAVE_ATOLL = @HAVE_ATOLL@
|
||||
HAVE_BTOWC = @HAVE_BTOWC@
|
||||
@ -829,6 +846,7 @@ HAVE_DECL_GETLOGIN = @HAVE_DECL_GETLOGIN@
|
||||
HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
|
||||
HAVE_DECL_GETPAGESIZE = @HAVE_DECL_GETPAGESIZE@
|
||||
HAVE_DECL_GETUSERSHELL = @HAVE_DECL_GETUSERSHELL@
|
||||
HAVE_DECL_GETW = @HAVE_DECL_GETW@
|
||||
HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
|
||||
HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
|
||||
HAVE_DECL_INITSTATE = @HAVE_DECL_INITSTATE@
|
||||
@ -836,6 +854,8 @@ HAVE_DECL_LOCALTIME_R = @HAVE_DECL_LOCALTIME_R@
|
||||
HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
|
||||
HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
|
||||
HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@
|
||||
HAVE_DECL_PROGRAM_INVOCATION_NAME = @HAVE_DECL_PROGRAM_INVOCATION_NAME@
|
||||
HAVE_DECL_PUTW = @HAVE_DECL_PUTW@
|
||||
HAVE_DECL_SETENV = @HAVE_DECL_SETENV@
|
||||
HAVE_DECL_SETHOSTNAME = @HAVE_DECL_SETHOSTNAME@
|
||||
HAVE_DECL_SETSTATE = @HAVE_DECL_SETSTATE@
|
||||
@ -884,11 +904,14 @@ HAVE_GETLOGIN = @HAVE_GETLOGIN@
|
||||
HAVE_GETOPT_H = @HAVE_GETOPT_H@
|
||||
HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@
|
||||
HAVE_GETPASS = @HAVE_GETPASS@
|
||||
HAVE_GETPROGNAME = @HAVE_GETPROGNAME@
|
||||
HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
|
||||
HAVE_GETTIMEOFDAY = @HAVE_GETTIMEOFDAY@
|
||||
HAVE_GETUMASK = @HAVE_GETUMASK@
|
||||
HAVE_GRANTPT = @HAVE_GRANTPT@
|
||||
HAVE_GROUP_MEMBER = @HAVE_GROUP_MEMBER@
|
||||
HAVE_IMAXABS = @HAVE_IMAXABS@
|
||||
HAVE_IMAXDIV = @HAVE_IMAXDIV@
|
||||
HAVE_IMAXDIV_T = @HAVE_IMAXDIV_T@
|
||||
HAVE_INITSTATE = @HAVE_INITSTATE@
|
||||
HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
|
||||
@ -908,6 +931,7 @@ HAVE_MBSNRTOWCS = @HAVE_MBSNRTOWCS@
|
||||
HAVE_MBSRTOWCS = @HAVE_MBSRTOWCS@
|
||||
HAVE_MBTOWC = @HAVE_MBTOWC@
|
||||
HAVE_MEMPCPY = @HAVE_MEMPCPY@
|
||||
HAVE_MEMSET_EXPLICIT = @HAVE_MEMSET_EXPLICIT@
|
||||
HAVE_MKDIRAT = @HAVE_MKDIRAT@
|
||||
HAVE_MKDTEMP = @HAVE_MKDTEMP@
|
||||
HAVE_MKFIFO = @HAVE_MKFIFO@
|
||||
@ -986,6 +1010,7 @@ HAVE_TIMESPEC_GET = @HAVE_TIMESPEC_GET@
|
||||
HAVE_TIMESPEC_GETRES = @HAVE_TIMESPEC_GETRES@
|
||||
HAVE_TIMEZONE_T = @HAVE_TIMEZONE_T@
|
||||
HAVE_UNISTD_H = @HAVE_UNISTD_H@
|
||||
HAVE_UNISTRING_WOE32DLL_H = @HAVE_UNISTRING_WOE32DLL_H@
|
||||
HAVE_UNLINKAT = @HAVE_UNLINKAT@
|
||||
HAVE_UNLOCKPT = @HAVE_UNLOCKPT@
|
||||
HAVE_USLEEP = @HAVE_USLEEP@
|
||||
@ -1034,7 +1059,6 @@ HAVE_WMEMMOVE = @HAVE_WMEMMOVE@
|
||||
HAVE_WMEMPCPY = @HAVE_WMEMPCPY@
|
||||
HAVE_WMEMSET = @HAVE_WMEMSET@
|
||||
HAVE_XLOCALE_H = @HAVE_XLOCALE_H@
|
||||
HAVE__BOOL = @HAVE__BOOL@
|
||||
HAVE__EXIT = @HAVE__EXIT@
|
||||
ICONV_CONST = @ICONV_CONST@
|
||||
ICONV_H = @ICONV_H@
|
||||
@ -1049,6 +1073,10 @@ INT32_MAX_LT_INTMAX_MAX = @INT32_MAX_LT_INTMAX_MAX@
|
||||
INT64_MAX_EQ_LONG_MAX = @INT64_MAX_EQ_LONG_MAX@
|
||||
INTLLIBS = @INTLLIBS@
|
||||
INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
|
||||
LC_COLLATE_IMPLEMENTED = @LC_COLLATE_IMPLEMENTED@
|
||||
LC_MONETARY_IMPLEMENTED = @LC_MONETARY_IMPLEMENTED@
|
||||
LC_NUMERIC_IMPLEMENTED = @LC_NUMERIC_IMPLEMENTED@
|
||||
LC_TIME_IMPLEMENTED = @LC_TIME_IMPLEMENTED@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBGNU_LIBDEPS = @LIBGNU_LIBDEPS@
|
||||
LIBGNU_LTLIBDEPS = @LIBGNU_LTLIBDEPS@
|
||||
@ -1076,11 +1104,14 @@ LTLIBINTL = @LTLIBINTL@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
MAINT = @MAINT@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MBRTOWC_LIB = @MBRTOWC_LIB@
|
||||
MKDIR_P = @MKDIR_P@
|
||||
MONETARY_H = @MONETARY_H@
|
||||
MSGFMT = @MSGFMT@
|
||||
MSGMERGE = @MSGMERGE@
|
||||
MSGMERGE_FOR_MSGFMT_OPTION = @MSGMERGE_FOR_MSGFMT_OPTION@
|
||||
NEXT_ASSERT_H = @NEXT_ASSERT_H@
|
||||
NEXT_AS_FIRST_DIRECTIVE_ASSERT_H = @NEXT_AS_FIRST_DIRECTIVE_ASSERT_H@
|
||||
NEXT_AS_FIRST_DIRECTIVE_GETOPT_H = @NEXT_AS_FIRST_DIRECTIVE_GETOPT_H@
|
||||
NEXT_AS_FIRST_DIRECTIVE_ICONV_H = @NEXT_AS_FIRST_DIRECTIVE_ICONV_H@
|
||||
NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H = @NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H@
|
||||
@ -1150,6 +1181,7 @@ REPLACE_CTIME = @REPLACE_CTIME@
|
||||
REPLACE_DPRINTF = @REPLACE_DPRINTF@
|
||||
REPLACE_DUP = @REPLACE_DUP@
|
||||
REPLACE_DUP2 = @REPLACE_DUP2@
|
||||
REPLACE_DUP3 = @REPLACE_DUP3@
|
||||
REPLACE_DUPLOCALE = @REPLACE_DUPLOCALE@
|
||||
REPLACE_EXECL = @REPLACE_EXECL@
|
||||
REPLACE_EXECLE = @REPLACE_EXECLE@
|
||||
@ -1159,9 +1191,11 @@ REPLACE_EXECVE = @REPLACE_EXECVE@
|
||||
REPLACE_EXECVP = @REPLACE_EXECVP@
|
||||
REPLACE_EXECVPE = @REPLACE_EXECVPE@
|
||||
REPLACE_FACCESSAT = @REPLACE_FACCESSAT@
|
||||
REPLACE_FCHDIR = @REPLACE_FCHDIR@
|
||||
REPLACE_FCHMODAT = @REPLACE_FCHMODAT@
|
||||
REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@
|
||||
REPLACE_FCLOSE = @REPLACE_FCLOSE@
|
||||
REPLACE_FDATASYNC = @REPLACE_FDATASYNC@
|
||||
REPLACE_FDOPEN = @REPLACE_FDOPEN@
|
||||
REPLACE_FFLUSH = @REPLACE_FFLUSH@
|
||||
REPLACE_FFSLL = @REPLACE_FFSLL@
|
||||
@ -1184,22 +1218,29 @@ REPLACE_GETCWD = @REPLACE_GETCWD@
|
||||
REPLACE_GETDELIM = @REPLACE_GETDELIM@
|
||||
REPLACE_GETDOMAINNAME = @REPLACE_GETDOMAINNAME@
|
||||
REPLACE_GETDTABLESIZE = @REPLACE_GETDTABLESIZE@
|
||||
REPLACE_GETENTROPY = @REPLACE_GETENTROPY@
|
||||
REPLACE_GETGROUPS = @REPLACE_GETGROUPS@
|
||||
REPLACE_GETLINE = @REPLACE_GETLINE@
|
||||
REPLACE_GETLOADAVG = @REPLACE_GETLOADAVG@
|
||||
REPLACE_GETLOGIN_R = @REPLACE_GETLOGIN_R@
|
||||
REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@
|
||||
REPLACE_GETPASS = @REPLACE_GETPASS@
|
||||
REPLACE_GETPASS_FOR_GETPASS_GNU = @REPLACE_GETPASS_FOR_GETPASS_GNU@
|
||||
REPLACE_GETPROGNAME = @REPLACE_GETPROGNAME@
|
||||
REPLACE_GETSUBOPT = @REPLACE_GETSUBOPT@
|
||||
REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
|
||||
REPLACE_GMTIME = @REPLACE_GMTIME@
|
||||
REPLACE_ICONV = @REPLACE_ICONV@
|
||||
REPLACE_ICONV_OPEN = @REPLACE_ICONV_OPEN@
|
||||
REPLACE_ICONV_UTF = @REPLACE_ICONV_UTF@
|
||||
REPLACE_IMAXABS = @REPLACE_IMAXABS@
|
||||
REPLACE_IMAXDIV = @REPLACE_IMAXDIV@
|
||||
REPLACE_INITSTATE = @REPLACE_INITSTATE@
|
||||
REPLACE_ISATTY = @REPLACE_ISATTY@
|
||||
REPLACE_ISWBLANK = @REPLACE_ISWBLANK@
|
||||
REPLACE_ISWCNTRL = @REPLACE_ISWCNTRL@
|
||||
REPLACE_ISWDIGIT = @REPLACE_ISWDIGIT@
|
||||
REPLACE_ISWPUNCT = @REPLACE_ISWPUNCT@
|
||||
REPLACE_ISWXDIGIT = @REPLACE_ISWXDIGIT@
|
||||
REPLACE_LCHOWN = @REPLACE_LCHOWN@
|
||||
REPLACE_LINK = @REPLACE_LINK@
|
||||
@ -1217,14 +1258,19 @@ REPLACE_MBSINIT = @REPLACE_MBSINIT@
|
||||
REPLACE_MBSNRTOWCS = @REPLACE_MBSNRTOWCS@
|
||||
REPLACE_MBSRTOWCS = @REPLACE_MBSRTOWCS@
|
||||
REPLACE_MBSTATE_T = @REPLACE_MBSTATE_T@
|
||||
REPLACE_MBSTOWCS = @REPLACE_MBSTOWCS@
|
||||
REPLACE_MBTOWC = @REPLACE_MBTOWC@
|
||||
REPLACE_MB_CUR_MAX = @REPLACE_MB_CUR_MAX@
|
||||
REPLACE_MEMCHR = @REPLACE_MEMCHR@
|
||||
REPLACE_MEMMEM = @REPLACE_MEMMEM@
|
||||
REPLACE_MEMPCPY = @REPLACE_MEMPCPY@
|
||||
REPLACE_MKDIR = @REPLACE_MKDIR@
|
||||
REPLACE_MKFIFO = @REPLACE_MKFIFO@
|
||||
REPLACE_MKFIFOAT = @REPLACE_MKFIFOAT@
|
||||
REPLACE_MKNOD = @REPLACE_MKNOD@
|
||||
REPLACE_MKNODAT = @REPLACE_MKNODAT@
|
||||
REPLACE_MKOSTEMP = @REPLACE_MKOSTEMP@
|
||||
REPLACE_MKOSTEMPS = @REPLACE_MKOSTEMPS@
|
||||
REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
|
||||
REPLACE_MKTIME = @REPLACE_MKTIME@
|
||||
REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@
|
||||
@ -1232,8 +1278,10 @@ REPLACE_NEWLOCALE = @REPLACE_NEWLOCALE@
|
||||
REPLACE_NULL = @REPLACE_NULL@
|
||||
REPLACE_OBSTACK_PRINTF = @REPLACE_OBSTACK_PRINTF@
|
||||
REPLACE_PERROR = @REPLACE_PERROR@
|
||||
REPLACE_PIPE2 = @REPLACE_PIPE2@
|
||||
REPLACE_POPEN = @REPLACE_POPEN@
|
||||
REPLACE_POSIX_MEMALIGN = @REPLACE_POSIX_MEMALIGN@
|
||||
REPLACE_POSIX_OPENPT = @REPLACE_POSIX_OPENPT@
|
||||
REPLACE_PREAD = @REPLACE_PREAD@
|
||||
REPLACE_PRINTF = @REPLACE_PRINTF@
|
||||
REPLACE_PTSNAME = @REPLACE_PTSNAME@
|
||||
@ -1241,6 +1289,7 @@ REPLACE_PTSNAME_R = @REPLACE_PTSNAME_R@
|
||||
REPLACE_PUTENV = @REPLACE_PUTENV@
|
||||
REPLACE_PWRITE = @REPLACE_PWRITE@
|
||||
REPLACE_QSORT_R = @REPLACE_QSORT_R@
|
||||
REPLACE_RAND = @REPLACE_RAND@
|
||||
REPLACE_RANDOM = @REPLACE_RANDOM@
|
||||
REPLACE_RANDOM_R = @REPLACE_RANDOM_R@
|
||||
REPLACE_READ = @REPLACE_READ@
|
||||
@ -1255,6 +1304,7 @@ REPLACE_RENAME = @REPLACE_RENAME@
|
||||
REPLACE_RENAMEAT = @REPLACE_RENAMEAT@
|
||||
REPLACE_RMDIR = @REPLACE_RMDIR@
|
||||
REPLACE_SETENV = @REPLACE_SETENV@
|
||||
REPLACE_SETHOSTNAME = @REPLACE_SETHOSTNAME@
|
||||
REPLACE_SETLOCALE = @REPLACE_SETLOCALE@
|
||||
REPLACE_SETSTATE = @REPLACE_SETSTATE@
|
||||
REPLACE_SLEEP = @REPLACE_SLEEP@
|
||||
@ -1263,6 +1313,7 @@ REPLACE_SPRINTF = @REPLACE_SPRINTF@
|
||||
REPLACE_STAT = @REPLACE_STAT@
|
||||
REPLACE_STDIO_READ_FUNCS = @REPLACE_STDIO_READ_FUNCS@
|
||||
REPLACE_STDIO_WRITE_FUNCS = @REPLACE_STDIO_WRITE_FUNCS@
|
||||
REPLACE_STPCPY = @REPLACE_STPCPY@
|
||||
REPLACE_STPNCPY = @REPLACE_STPNCPY@
|
||||
REPLACE_STRCASESTR = @REPLACE_STRCASESTR@
|
||||
REPLACE_STRCHRNUL = @REPLACE_STRCHRNUL@
|
||||
@ -1288,9 +1339,12 @@ REPLACE_STRTOULL = @REPLACE_STRTOULL@
|
||||
REPLACE_STRTOUMAX = @REPLACE_STRTOUMAX@
|
||||
REPLACE_STRUCT_LCONV = @REPLACE_STRUCT_LCONV@
|
||||
REPLACE_STRUCT_TIMEVAL = @REPLACE_STRUCT_TIMEVAL@
|
||||
REPLACE_STRVERSCMP = @REPLACE_STRVERSCMP@
|
||||
REPLACE_SYMLINK = @REPLACE_SYMLINK@
|
||||
REPLACE_SYMLINKAT = @REPLACE_SYMLINKAT@
|
||||
REPLACE_TIME = @REPLACE_TIME@
|
||||
REPLACE_TIMEGM = @REPLACE_TIMEGM@
|
||||
REPLACE_TIMESPEC_GET = @REPLACE_TIMESPEC_GET@
|
||||
REPLACE_TMPFILE = @REPLACE_TMPFILE@
|
||||
REPLACE_TOWLOWER = @REPLACE_TOWLOWER@
|
||||
REPLACE_TRUNCATE = @REPLACE_TRUNCATE@
|
||||
@ -1308,21 +1362,30 @@ REPLACE_VPRINTF = @REPLACE_VPRINTF@
|
||||
REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@
|
||||
REPLACE_VSPRINTF = @REPLACE_VSPRINTF@
|
||||
REPLACE_WCRTOMB = @REPLACE_WCRTOMB@
|
||||
REPLACE_WCSCMP = @REPLACE_WCSCMP@
|
||||
REPLACE_WCSFTIME = @REPLACE_WCSFTIME@
|
||||
REPLACE_WCSNCMP = @REPLACE_WCSNCMP@
|
||||
REPLACE_WCSNRTOMBS = @REPLACE_WCSNRTOMBS@
|
||||
REPLACE_WCSRTOMBS = @REPLACE_WCSRTOMBS@
|
||||
REPLACE_WCSSTR = @REPLACE_WCSSTR@
|
||||
REPLACE_WCSTOK = @REPLACE_WCSTOK@
|
||||
REPLACE_WCSWIDTH = @REPLACE_WCSWIDTH@
|
||||
REPLACE_WCTOB = @REPLACE_WCTOB@
|
||||
REPLACE_WCTOMB = @REPLACE_WCTOMB@
|
||||
REPLACE_WCTRANS = @REPLACE_WCTRANS@
|
||||
REPLACE_WCTYPE = @REPLACE_WCTYPE@
|
||||
REPLACE_WCWIDTH = @REPLACE_WCWIDTH@
|
||||
REPLACE_WMEMCMP = @REPLACE_WMEMCMP@
|
||||
REPLACE_WMEMPCPY = @REPLACE_WMEMPCPY@
|
||||
REPLACE_WRITE = @REPLACE_WRITE@
|
||||
REPLACE__EXIT = @REPLACE__EXIT@
|
||||
SCHED_YIELD_LIB = @SCHED_YIELD_LIB@
|
||||
SED = @SED@
|
||||
SETLOCALE_NULL_LIB = @SETLOCALE_NULL_LIB@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
|
||||
SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
|
||||
STDBOOL_H = @STDBOOL_H@
|
||||
STDDEF_H = @STDDEF_H@
|
||||
STDINT_H = @STDINT_H@
|
||||
STRIP = @STRIP@
|
||||
@ -1357,7 +1420,6 @@ am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
appdatadir = @appdatadir@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
@ -1393,6 +1455,7 @@ libexecdir = @libexecdir@
|
||||
localedir = @localedir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
metainfodir = @metainfodir@
|
||||
mkdir_p = @mkdir_p@
|
||||
oldincludedir = @oldincludedir@
|
||||
pdfdir = @pdfdir@
|
||||
@ -1413,9 +1476,9 @@ SUBDIRS =
|
||||
noinst_HEADERS =
|
||||
noinst_LIBRARIES = libgnu.a
|
||||
noinst_LTLIBRARIES =
|
||||
EXTRA_DIST = attribute.h crc.h getopt-cdefs.in.h getopt-core.h \
|
||||
getopt-ext.h getopt-pfx-core.h getopt-pfx-ext.h getopt.in.h \
|
||||
getopt_int.h hard-locale.h \
|
||||
EXTRA_DIST = assert.in.h verify.h attribute.h crc.h getopt-cdefs.in.h \
|
||||
getopt-core.h getopt-ext.h getopt-pfx-core.h getopt-pfx-ext.h \
|
||||
getopt.in.h getopt_int.h hard-locale.h \
|
||||
$(top_srcdir)/build-aux/config.rpath iconv.in.h \
|
||||
iconv_open-aix.h iconv_open-hpux.h iconv_open-irix.h \
|
||||
iconv_open-osf.h iconv_open-solaris.h iconv_open-zos.h \
|
||||
@ -1428,30 +1491,31 @@ EXTRA_DIST = attribute.h crc.h getopt-cdefs.in.h getopt-core.h \
|
||||
mbsrtowcs-impl.h mbsrtowcs-state.c mbtowc-impl.h \
|
||||
memchr.valgrind monetary.in.h setlocale_null.h \
|
||||
windows-initguard.h _Noreturn.h arg-nonnull.h c++defs.h \
|
||||
warn-on-use.h stdbool.in.h stddef.in.h stdint.in.h stdio.in.h \
|
||||
stdlib.in.h streq.h string.in.h sys_stat.in.h sys_time.in.h \
|
||||
sys_types.in.h time.in.h unistd.in.h unistr.in.h unitypes.in.h \
|
||||
verify.h wchar.in.h wcsdup-impl.h wctomb-impl.h wctype.in.h \
|
||||
wmemcpy-impl.h
|
||||
BUILT_SOURCES = $(GETOPT_H) $(GETOPT_CDEFS_H) $(ICONV_H) \
|
||||
iconv_open-aix.h iconv_open-hpux.h iconv_open-irix.h \
|
||||
iconv_open-osf.h iconv_open-solaris.h iconv_open-zos.h \
|
||||
inttypes.h $(LIMITS_H) locale.h $(MONETARY_H) $(STDBOOL_H) \
|
||||
warn-on-use.h stddef.in.h stdint.in.h stdio.in.h stdlib.in.h \
|
||||
streq.h string.in.h sys_stat.in.h sys_time.in.h sys_types.in.h \
|
||||
time.in.h unistd.in.h unistr.in.h unitypes.in.h wchar.in.h \
|
||||
wcsdup-impl.h wctomb-impl.h wctype.in.h wmemcpy-impl.h
|
||||
BUILT_SOURCES = $(am__append_1) $(GETOPT_H) $(GETOPT_CDEFS_H) \
|
||||
$(ICONV_H) iconv_open-aix.h iconv_open-hpux.h \
|
||||
iconv_open-irix.h iconv_open-osf.h iconv_open-solaris.h \
|
||||
iconv_open-zos.h inttypes.h $(LIMITS_H) locale.h $(MONETARY_H) \
|
||||
$(STDDEF_H) $(STDINT_H) stdio.h stdlib.h string.h sys/stat.h \
|
||||
sys/time.h sys/types.h time.h unistd.h $(am__append_19) \
|
||||
$(am__append_23) wchar.h wctype.h
|
||||
sys/time.h sys/types.h time.h unistd.h $(am__append_22) \
|
||||
$(am__append_26) wchar.h wctype.h
|
||||
SUFFIXES =
|
||||
MOSTLYCLEANFILES = core *.stackdump getopt.h getopt.h-t getopt-cdefs.h \
|
||||
getopt-cdefs.h-t iconv.h iconv.h-t iconv_open-aix.h-t \
|
||||
iconv_open-hpux.h-t iconv_open-irix.h-t iconv_open-osf.h-t \
|
||||
iconv_open-solaris.h-t iconv_open-zos.h-t inttypes.h \
|
||||
inttypes.h-t limits.h limits.h-t locale.h locale.h-t \
|
||||
monetary.h monetary.h-t stdbool.h stdbool.h-t stddef.h \
|
||||
stddef.h-t stdint.h stdint.h-t stdio.h stdio.h-t stdlib.h \
|
||||
stdlib.h-t string.h string.h-t sys/stat.h sys/stat.h-t \
|
||||
sys/time.h sys/time.h-t sys/types.h sys/types.h-t time.h \
|
||||
time.h-t unistd.h unistd.h-t $(am__append_20) $(am__append_24) \
|
||||
wchar.h wchar.h-t wctype.h wctype.h-t
|
||||
MOSTLYCLEANFILES = core *.stackdump $(am__append_2) getopt.h \
|
||||
getopt.h-t getopt-cdefs.h getopt-cdefs.h-t iconv.h iconv.h-t \
|
||||
iconv_open-aix.h-t iconv_open-hpux.h-t iconv_open-irix.h-t \
|
||||
iconv_open-osf.h-t iconv_open-solaris.h-t iconv_open-zos.h-t \
|
||||
inttypes.h inttypes.h-t limits.h limits.h-t locale.h \
|
||||
locale.h-t monetary.h monetary.h-t stddef.h stddef.h-t \
|
||||
stdint.h stdint.h-t stdio.h stdio.h-t1 stdio.h-t2 stdio.h-t3 \
|
||||
stdlib.h stdlib.h-t1 stdlib.h-t2 stdlib.h-t3 string.h \
|
||||
string.h-t1 string.h-t2 sys/stat.h sys/stat.h-t sys/time.h \
|
||||
sys/time.h-t sys/types.h sys/types.h-t time.h time.h-t \
|
||||
unistd.h unistd.h-t1 unistd.h-t2 unistd.h-t3 unistd.h-t4 \
|
||||
$(am__append_23) $(am__append_27) wchar.h wchar.h-t1 \
|
||||
wchar.h-t2 wchar.h-t3 wctype.h wctype.h-t
|
||||
MOSTLYCLEANDIRS = sys
|
||||
CLEANFILES =
|
||||
DISTCLEANFILES =
|
||||
@ -1461,16 +1525,17 @@ MAINTAINERCLEANFILES = iconv_open-aix.h iconv_open-hpux.h \
|
||||
# No GNU Make output.
|
||||
AM_CPPFLAGS =
|
||||
AM_CFLAGS =
|
||||
libgnu_a_SOURCES = $(am__append_1) c-ctype.h c-ctype.c c-strcase.h \
|
||||
c-strcasecmp.c c-strncasecmp.c crc.c $(am__append_2) \
|
||||
$(am__append_3) gettext.h $(am__append_4) $(am__append_5) \
|
||||
$(am__append_6) $(am__append_7) $(am__append_8) \
|
||||
$(am__append_9) $(am__append_10) $(am__append_11) \
|
||||
$(am__append_12) $(am__append_13) $(am__append_14) \
|
||||
$(am__append_15) $(am__append_16) $(am__append_17) striconv.h \
|
||||
striconv.c $(am__append_18) unistd.c $(am__append_21) \
|
||||
$(am__append_22) $(am__append_25) $(am__append_26) \
|
||||
$(am__append_27) $(am__append_28) wctype-h.c $(am__append_29)
|
||||
libgnu_a_SOURCES = $(am__append_3) c-ctype.h c-ctype.c c-strcase.h \
|
||||
c-strcasecmp.c c-strncasecmp.c crc.c $(am__append_4) \
|
||||
$(am__append_5) gettext.h $(am__append_6) $(am__append_7) \
|
||||
$(am__append_8) $(am__append_9) $(am__append_10) \
|
||||
$(am__append_11) $(am__append_12) $(am__append_13) \
|
||||
$(am__append_14) $(am__append_15) $(am__append_16) \
|
||||
$(am__append_17) $(am__append_18) $(am__append_19) \
|
||||
$(am__append_20) striconv.h striconv.c $(am__append_21) \
|
||||
unistd.c $(am__append_24) $(am__append_25) $(am__append_28) \
|
||||
$(am__append_29) $(am__append_30) $(am__append_31) wctype-h.c \
|
||||
$(am__append_32)
|
||||
libgnu_a_CFLAGS = $(AM_CFLAGS) $(GL_CFLAG_GNULIB_WARNINGS)
|
||||
libgnu_a_LIBADD = $(gl_LIBOBJS)
|
||||
libgnu_a_DEPENDENCIES = $(gl_LIBOBJS)
|
||||
@ -1612,6 +1677,7 @@ distclean-compile:
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-mbsinit.Po@am__quote@ # am--include-marker
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-mbsrtowcs-state.Po@am__quote@ # am--include-marker
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-mbsrtowcs.Po@am__quote@ # am--include-marker
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-mbszero.Po@am__quote@ # am--include-marker
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-mbtowc-lock.Po@am__quote@ # am--include-marker
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-mbtowc.Po@am__quote@ # am--include-marker
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-memchr.Po@am__quote@ # am--include-marker
|
||||
@ -1892,6 +1958,20 @@ libgnu_a-mbsrtowcs.obj: mbsrtowcs.c
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-mbsrtowcs.obj `if test -f 'mbsrtowcs.c'; then $(CYGPATH_W) 'mbsrtowcs.c'; else $(CYGPATH_W) '$(srcdir)/mbsrtowcs.c'; fi`
|
||||
|
||||
libgnu_a-mbszero.o: mbszero.c
|
||||
@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-mbszero.o -MD -MP -MF $(DEPDIR)/libgnu_a-mbszero.Tpo -c -o libgnu_a-mbszero.o `test -f 'mbszero.c' || echo '$(srcdir)/'`mbszero.c
|
||||
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-mbszero.Tpo $(DEPDIR)/libgnu_a-mbszero.Po
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='mbszero.c' object='libgnu_a-mbszero.o' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-mbszero.o `test -f 'mbszero.c' || echo '$(srcdir)/'`mbszero.c
|
||||
|
||||
libgnu_a-mbszero.obj: mbszero.c
|
||||
@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-mbszero.obj -MD -MP -MF $(DEPDIR)/libgnu_a-mbszero.Tpo -c -o libgnu_a-mbszero.obj `if test -f 'mbszero.c'; then $(CYGPATH_W) 'mbszero.c'; else $(CYGPATH_W) '$(srcdir)/mbszero.c'; fi`
|
||||
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-mbszero.Tpo $(DEPDIR)/libgnu_a-mbszero.Po
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='mbszero.c' object='libgnu_a-mbszero.obj' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-mbszero.obj `if test -f 'mbszero.c'; then $(CYGPATH_W) 'mbszero.c'; else $(CYGPATH_W) '$(srcdir)/mbszero.c'; fi`
|
||||
|
||||
libgnu_a-mbtowc.o: mbtowc.c
|
||||
@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-mbtowc.o -MD -MP -MF $(DEPDIR)/libgnu_a-mbtowc.Tpo -c -o libgnu_a-mbtowc.o `test -f 'mbtowc.c' || echo '$(srcdir)/'`mbtowc.c
|
||||
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-mbtowc.Tpo $(DEPDIR)/libgnu_a-mbtowc.Po
|
||||
@ -2412,6 +2492,7 @@ distclean: distclean-recursive
|
||||
-rm -f ./$(DEPDIR)/libgnu_a-mbsinit.Po
|
||||
-rm -f ./$(DEPDIR)/libgnu_a-mbsrtowcs-state.Po
|
||||
-rm -f ./$(DEPDIR)/libgnu_a-mbsrtowcs.Po
|
||||
-rm -f ./$(DEPDIR)/libgnu_a-mbszero.Po
|
||||
-rm -f ./$(DEPDIR)/libgnu_a-mbtowc-lock.Po
|
||||
-rm -f ./$(DEPDIR)/libgnu_a-mbtowc.Po
|
||||
-rm -f ./$(DEPDIR)/libgnu_a-memchr.Po
|
||||
@ -2495,6 +2576,7 @@ maintainer-clean: maintainer-clean-recursive
|
||||
-rm -f ./$(DEPDIR)/libgnu_a-mbsinit.Po
|
||||
-rm -f ./$(DEPDIR)/libgnu_a-mbsrtowcs-state.Po
|
||||
-rm -f ./$(DEPDIR)/libgnu_a-mbsrtowcs.Po
|
||||
-rm -f ./$(DEPDIR)/libgnu_a-mbszero.Po
|
||||
-rm -f ./$(DEPDIR)/libgnu_a-mbtowc-lock.Po
|
||||
-rm -f ./$(DEPDIR)/libgnu_a-mbtowc.Po
|
||||
-rm -f ./$(DEPDIR)/libgnu_a-memchr.Po
|
||||
@ -2554,6 +2636,25 @@ uninstall-am:
|
||||
.PRECIOUS: Makefile
|
||||
|
||||
|
||||
# We need the following in order to create <assert.h> when the system
|
||||
# doesn't have one that works with the given compiler.
|
||||
@GL_GENERATE_ASSERT_H_TRUE@@gl_GNULIB_ENABLED_d07eca4c7a24aaac657c64e6568d4c2f_TRUE@assert.h: assert.in.h verify.h $(top_builddir)/config.status
|
||||
@GL_GENERATE_ASSERT_H_TRUE@@gl_GNULIB_ENABLED_d07eca4c7a24aaac657c64e6568d4c2f_TRUE@ $(gl_V_at){ $(SED_HEADER_STDOUT) \
|
||||
@GL_GENERATE_ASSERT_H_TRUE@@gl_GNULIB_ENABLED_d07eca4c7a24aaac657c64e6568d4c2f_TRUE@ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
|
||||
@GL_GENERATE_ASSERT_H_TRUE@@gl_GNULIB_ENABLED_d07eca4c7a24aaac657c64e6568d4c2f_TRUE@ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
|
||||
@GL_GENERATE_ASSERT_H_TRUE@@gl_GNULIB_ENABLED_d07eca4c7a24aaac657c64e6568d4c2f_TRUE@ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
|
||||
@GL_GENERATE_ASSERT_H_TRUE@@gl_GNULIB_ENABLED_d07eca4c7a24aaac657c64e6568d4c2f_TRUE@ -e 's|@''NEXT_ASSERT_H''@|$(NEXT_ASSERT_H)|g' \
|
||||
@GL_GENERATE_ASSERT_H_TRUE@@gl_GNULIB_ENABLED_d07eca4c7a24aaac657c64e6568d4c2f_TRUE@ < $(srcdir)/assert.in.h && \
|
||||
@GL_GENERATE_ASSERT_H_TRUE@@gl_GNULIB_ENABLED_d07eca4c7a24aaac657c64e6568d4c2f_TRUE@ sed -e '/@assert.h omit start@/,/@assert.h omit end@/d' \
|
||||
@GL_GENERATE_ASSERT_H_TRUE@@gl_GNULIB_ENABLED_d07eca4c7a24aaac657c64e6568d4c2f_TRUE@ -e 's|_gl_verify|_gl_static_assert|g' \
|
||||
@GL_GENERATE_ASSERT_H_TRUE@@gl_GNULIB_ENABLED_d07eca4c7a24aaac657c64e6568d4c2f_TRUE@ -e 's|_GL_VERIFY|_GL_STATIC_ASSERT|g' \
|
||||
@GL_GENERATE_ASSERT_H_TRUE@@gl_GNULIB_ENABLED_d07eca4c7a24aaac657c64e6568d4c2f_TRUE@ -e 's|_GL\(_STATIC_ASSERT_H\)|_GL\1|g' \
|
||||
@GL_GENERATE_ASSERT_H_TRUE@@gl_GNULIB_ENABLED_d07eca4c7a24aaac657c64e6568d4c2f_TRUE@ < $(srcdir)/verify.h; \
|
||||
@GL_GENERATE_ASSERT_H_TRUE@@gl_GNULIB_ENABLED_d07eca4c7a24aaac657c64e6568d4c2f_TRUE@ } > $@-t
|
||||
@GL_GENERATE_ASSERT_H_TRUE@@gl_GNULIB_ENABLED_d07eca4c7a24aaac657c64e6568d4c2f_TRUE@ $(AM_V_at)mv $@-t $@
|
||||
@GL_GENERATE_ASSERT_H_FALSE@@gl_GNULIB_ENABLED_d07eca4c7a24aaac657c64e6568d4c2f_TRUE@assert.h: $(top_builddir)/config.status
|
||||
@GL_GENERATE_ASSERT_H_FALSE@@gl_GNULIB_ENABLED_d07eca4c7a24aaac657c64e6568d4c2f_TRUE@ rm -f $@
|
||||
|
||||
# We need the following in order to create <getopt.h> when the system
|
||||
# doesn't have one that works with the given compiler.
|
||||
@GL_GENERATE_GETOPT_H_TRUE@getopt.h: getopt.in.h $(top_builddir)/config.status $(ARG_NONNULL_H)
|
||||
@ -2639,6 +2740,8 @@ inttypes.h: inttypes.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_U
|
||||
-e 's/@''HAVE_DECL_STRTOIMAX''@/$(HAVE_DECL_STRTOIMAX)/g' \
|
||||
-e 's/@''HAVE_DECL_STRTOUMAX''@/$(HAVE_DECL_STRTOUMAX)/g' \
|
||||
-e 's/@''HAVE_IMAXDIV_T''@/$(HAVE_IMAXDIV_T)/g' \
|
||||
-e 's/@''REPLACE_IMAXABS''@/$(REPLACE_IMAXABS)/g' \
|
||||
-e 's/@''REPLACE_IMAXDIV''@/$(REPLACE_IMAXDIV)/g' \
|
||||
-e 's/@''REPLACE_STRTOIMAX''@/$(REPLACE_STRTOIMAX)/g' \
|
||||
-e 's/@''REPLACE_STRTOUMAX''@/$(REPLACE_STRTOUMAX)/g' \
|
||||
-e 's/@''INT32_MAX_LT_INTMAX_MAX''@/$(INT32_MAX_LT_INTMAX_MAX)/g' \
|
||||
@ -2718,16 +2821,6 @@ locale.h: locale.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H
|
||||
@GL_GENERATE_MONETARY_H_FALSE@monetary.h: $(top_builddir)/config.status
|
||||
@GL_GENERATE_MONETARY_H_FALSE@ rm -f $@
|
||||
|
||||
# We need the following in order to create <stdbool.h> when the system
|
||||
# doesn't have one that works.
|
||||
@GL_GENERATE_STDBOOL_H_TRUE@stdbool.h: stdbool.in.h $(top_builddir)/config.status
|
||||
@GL_GENERATE_STDBOOL_H_TRUE@ $(gl_V_at)$(SED_HEADER_STDOUT) \
|
||||
@GL_GENERATE_STDBOOL_H_TRUE@ -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' \
|
||||
@GL_GENERATE_STDBOOL_H_TRUE@ $(srcdir)/stdbool.in.h > $@-t
|
||||
@GL_GENERATE_STDBOOL_H_TRUE@ $(AM_V_at)mv $@-t $@
|
||||
@GL_GENERATE_STDBOOL_H_FALSE@stdbool.h: $(top_builddir)/config.status
|
||||
@GL_GENERATE_STDBOOL_H_FALSE@ rm -f $@
|
||||
|
||||
# We need the following in order to create <stddef.h> when the system
|
||||
# doesn't have one that works with the given compiler.
|
||||
@GL_GENERATE_STDDEF_H_TRUE@stddef.h: stddef.in.h $(top_builddir)/config.status
|
||||
@ -2850,14 +2943,17 @@ stdio.h: stdio.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H)
|
||||
-e 's/@''GNULIB_MDA_GETW''@/$(GL_GNULIB_MDA_GETW)/g' \
|
||||
-e 's/@''GNULIB_MDA_PUTW''@/$(GL_GNULIB_MDA_PUTW)/g' \
|
||||
-e 's/@''GNULIB_MDA_TEMPNAM''@/$(GL_GNULIB_MDA_TEMPNAM)/g' \
|
||||
< $(srcdir)/stdio.in.h | \
|
||||
sed -e 's|@''HAVE_DECL_FCLOSEALL''@|$(HAVE_DECL_FCLOSEALL)|g' \
|
||||
< $(srcdir)/stdio.in.h > $@-t1
|
||||
$(AM_V_at)sed \
|
||||
-e 's|@''HAVE_DECL_FCLOSEALL''@|$(HAVE_DECL_FCLOSEALL)|g' \
|
||||
-e 's|@''HAVE_DECL_FPURGE''@|$(HAVE_DECL_FPURGE)|g' \
|
||||
-e 's|@''HAVE_DECL_FSEEKO''@|$(HAVE_DECL_FSEEKO)|g' \
|
||||
-e 's|@''HAVE_DECL_FTELLO''@|$(HAVE_DECL_FTELLO)|g' \
|
||||
-e 's|@''HAVE_DECL_GETDELIM''@|$(HAVE_DECL_GETDELIM)|g' \
|
||||
-e 's|@''HAVE_DECL_GETLINE''@|$(HAVE_DECL_GETLINE)|g' \
|
||||
-e 's|@''HAVE_DECL_GETW''@|$(HAVE_DECL_GETW)|g' \
|
||||
-e 's|@''HAVE_DECL_OBSTACK_PRINTF''@|$(HAVE_DECL_OBSTACK_PRINTF)|g' \
|
||||
-e 's|@''HAVE_DECL_PUTW''@|$(HAVE_DECL_PUTW)|g' \
|
||||
-e 's|@''HAVE_DECL_SNPRINTF''@|$(HAVE_DECL_SNPRINTF)|g' \
|
||||
-e 's|@''HAVE_DECL_VSNPRINTF''@|$(HAVE_DECL_VSNPRINTF)|g' \
|
||||
-e 's|@''HAVE_DPRINTF''@|$(HAVE_DPRINTF)|g' \
|
||||
@ -2868,6 +2964,8 @@ stdio.h: stdio.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H)
|
||||
-e 's|@''HAVE_RENAMEAT''@|$(HAVE_RENAMEAT)|g' \
|
||||
-e 's|@''HAVE_VASPRINTF''@|$(HAVE_VASPRINTF)|g' \
|
||||
-e 's|@''HAVE_VDPRINTF''@|$(HAVE_VDPRINTF)|g' \
|
||||
< $@-t1 > $@-t2
|
||||
$(AM_V_at)sed \
|
||||
-e 's|@''REPLACE_DPRINTF''@|$(REPLACE_DPRINTF)|g' \
|
||||
-e 's|@''REPLACE_FCLOSE''@|$(REPLACE_FCLOSE)|g' \
|
||||
-e 's|@''REPLACE_FDOPEN''@|$(REPLACE_FDOPEN)|g' \
|
||||
@ -2905,8 +3003,9 @@ stdio.h: stdio.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H)
|
||||
-e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
|
||||
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
||||
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
|
||||
> $@-t
|
||||
$(AM_V_at)mv $@-t $@
|
||||
< $@-t2 > $@-t3
|
||||
$(AM_V_at)rm -f $@-t1 $@-t2
|
||||
$(AM_V_at)mv $@-t3 $@
|
||||
|
||||
# We need the following in order to create <stdlib.h> when the system
|
||||
# doesn't have one that works with the given compiler.
|
||||
@ -2926,10 +3025,12 @@ stdlib.h: stdlib.in.h $(top_builddir)/config.status $(CXXDEFS_H) \
|
||||
-e 's/@''GNULIB_CANONICALIZE_FILE_NAME''@/$(GL_GNULIB_CANONICALIZE_FILE_NAME)/g' \
|
||||
-e 's/@''GNULIB_FREE_POSIX''@/$(GL_GNULIB_FREE_POSIX)/g' \
|
||||
-e 's/@''GNULIB_GETLOADAVG''@/$(GL_GNULIB_GETLOADAVG)/g' \
|
||||
-e 's/@''GNULIB_GETPROGNAME''@/$(GL_GNULIB_GETPROGNAME)/g' \
|
||||
-e 's/@''GNULIB_GETSUBOPT''@/$(GL_GNULIB_GETSUBOPT)/g' \
|
||||
-e 's/@''GNULIB_GRANTPT''@/$(GL_GNULIB_GRANTPT)/g' \
|
||||
-e 's/@''GNULIB_MALLOC_GNU''@/$(GL_GNULIB_MALLOC_GNU)/g' \
|
||||
-e 's/@''GNULIB_MALLOC_POSIX''@/$(GL_GNULIB_MALLOC_POSIX)/g' \
|
||||
-e 's/@''GNULIB_MBSTOWCS''@/$(GL_GNULIB_MBSTOWCS)/g' \
|
||||
-e 's/@''GNULIB_MBTOWC''@/$(GL_GNULIB_MBTOWC)/g' \
|
||||
-e 's/@''GNULIB_MKDTEMP''@/$(GL_GNULIB_MKDTEMP)/g' \
|
||||
-e 's/@''GNULIB_MKOSTEMP''@/$(GL_GNULIB_MKOSTEMP)/g' \
|
||||
@ -2942,6 +3043,7 @@ stdlib.h: stdlib.in.h $(top_builddir)/config.status $(CXXDEFS_H) \
|
||||
-e 's/@''GNULIB_PTSNAME_R''@/$(GL_GNULIB_PTSNAME_R)/g' \
|
||||
-e 's/@''GNULIB_PUTENV''@/$(GL_GNULIB_PUTENV)/g' \
|
||||
-e 's/@''GNULIB_QSORT_R''@/$(GL_GNULIB_QSORT_R)/g' \
|
||||
-e 's/@''GNULIB_RAND''@/$(GL_GNULIB_RAND)/g' \
|
||||
-e 's/@''GNULIB_RANDOM''@/$(GL_GNULIB_RANDOM)/g' \
|
||||
-e 's/@''GNULIB_RANDOM_R''@/$(GL_GNULIB_RANDOM_R)/g' \
|
||||
-e 's/@''GNULIB_REALLOC_GNU''@/$(GL_GNULIB_REALLOC_GNU)/g' \
|
||||
@ -2966,8 +3068,9 @@ stdlib.h: stdlib.in.h $(top_builddir)/config.status $(CXXDEFS_H) \
|
||||
-e 's/@''GNULIB_MDA_GCVT''@/$(GL_GNULIB_MDA_GCVT)/g' \
|
||||
-e 's/@''GNULIB_MDA_MKTEMP''@/$(GL_GNULIB_MDA_MKTEMP)/g' \
|
||||
-e 's/@''GNULIB_MDA_PUTENV''@/$(GL_GNULIB_MDA_PUTENV)/g' \
|
||||
< $(srcdir)/stdlib.in.h | \
|
||||
sed -e 's|@''HAVE__EXIT''@|$(HAVE__EXIT)|g' \
|
||||
< $(srcdir)/stdlib.in.h > $@-t1
|
||||
$(AM_V_at)sed \
|
||||
-e 's|@''HAVE__EXIT''@|$(HAVE__EXIT)|g' \
|
||||
-e 's|@''HAVE_ALIGNED_ALLOC''@|$(HAVE_ALIGNED_ALLOC)|g' \
|
||||
-e 's|@''HAVE_ATOLL''@|$(HAVE_ATOLL)|g' \
|
||||
-e 's|@''HAVE_CANONICALIZE_FILE_NAME''@|$(HAVE_CANONICALIZE_FILE_NAME)|g' \
|
||||
@ -2975,6 +3078,8 @@ stdlib.h: stdlib.in.h $(top_builddir)/config.status $(CXXDEFS_H) \
|
||||
-e 's|@''HAVE_DECL_FCVT''@|$(HAVE_DECL_FCVT)|g' \
|
||||
-e 's|@''HAVE_DECL_GCVT''@|$(HAVE_DECL_GCVT)|g' \
|
||||
-e 's|@''HAVE_DECL_GETLOADAVG''@|$(HAVE_DECL_GETLOADAVG)|g' \
|
||||
-e 's|@''HAVE_DECL_PROGRAM_INVOCATION_NAME''@|$(HAVE_DECL_PROGRAM_INVOCATION_NAME)|g' \
|
||||
-e 's|@''HAVE_GETPROGNAME''@|$(HAVE_GETPROGNAME)|g' \
|
||||
-e 's|@''HAVE_GETSUBOPT''@|$(HAVE_GETSUBOPT)|g' \
|
||||
-e 's|@''HAVE_GRANTPT''@|$(HAVE_GRANTPT)|g' \
|
||||
-e 's|@''HAVE_INITSTATE''@|$(HAVE_INITSTATE)|g' \
|
||||
@ -3010,21 +3115,33 @@ stdlib.h: stdlib.in.h $(top_builddir)/config.status $(CXXDEFS_H) \
|
||||
-e 's|@''HAVE_SYS_LOADAVG_H''@|$(HAVE_SYS_LOADAVG_H)|g' \
|
||||
-e 's|@''HAVE_UNLOCKPT''@|$(HAVE_UNLOCKPT)|g' \
|
||||
-e 's|@''HAVE_DECL_UNSETENV''@|$(HAVE_DECL_UNSETENV)|g' \
|
||||
< $@-t1 > $@-t2
|
||||
$(AM_V_at)sed \
|
||||
-e 's|@''REPLACE__EXIT''@|$(REPLACE__EXIT)|g' \
|
||||
-e 's|@''REPLACE_ALIGNED_ALLOC''@|$(REPLACE_ALIGNED_ALLOC)|g' \
|
||||
-e 's|@''REPLACE_CALLOC_FOR_CALLOC_GNU''@|$(REPLACE_CALLOC_FOR_CALLOC_GNU)|g' \
|
||||
-e 's|@''REPLACE_CALLOC_FOR_CALLOC_POSIX''@|$(REPLACE_CALLOC_FOR_CALLOC_POSIX)|g' \
|
||||
-e 's|@''REPLACE_CANONICALIZE_FILE_NAME''@|$(REPLACE_CANONICALIZE_FILE_NAME)|g' \
|
||||
-e 's|@''REPLACE_FREE''@|$(REPLACE_FREE)|g' \
|
||||
-e 's|@''REPLACE_GETLOADAVG''@|$(REPLACE_GETLOADAVG)|g' \
|
||||
-e 's|@''REPLACE_GETPROGNAME''@|$(REPLACE_GETPROGNAME)|g' \
|
||||
-e 's|@''REPLACE_GETSUBOPT''@|$(REPLACE_GETSUBOPT)|g' \
|
||||
-e 's|@''REPLACE_INITSTATE''@|$(REPLACE_INITSTATE)|g' \
|
||||
-e 's|@''REPLACE_MALLOC_FOR_MALLOC_GNU''@|$(REPLACE_MALLOC_FOR_MALLOC_GNU)|g' \
|
||||
-e 's|@''REPLACE_MALLOC_FOR_MALLOC_POSIX''@|$(REPLACE_MALLOC_FOR_MALLOC_POSIX)|g' \
|
||||
-e 's|@''REPLACE_MB_CUR_MAX''@|$(REPLACE_MB_CUR_MAX)|g' \
|
||||
-e 's|@''REPLACE_MBSTOWCS''@|$(REPLACE_MBSTOWCS)|g' \
|
||||
-e 's|@''REPLACE_MBTOWC''@|$(REPLACE_MBTOWC)|g' \
|
||||
-e 's|@''REPLACE_MKOSTEMP''@|$(REPLACE_MKOSTEMP)|g' \
|
||||
-e 's|@''REPLACE_MKOSTEMPS''@|$(REPLACE_MKOSTEMPS)|g' \
|
||||
-e 's|@''REPLACE_MKSTEMP''@|$(REPLACE_MKSTEMP)|g' \
|
||||
-e 's|@''REPLACE_POSIX_MEMALIGN''@|$(REPLACE_POSIX_MEMALIGN)|g' \
|
||||
-e 's|@''REPLACE_POSIX_OPENPT''@|$(REPLACE_POSIX_OPENPT)|g' \
|
||||
-e 's|@''REPLACE_PTSNAME''@|$(REPLACE_PTSNAME)|g' \
|
||||
-e 's|@''REPLACE_PTSNAME_R''@|$(REPLACE_PTSNAME_R)|g' \
|
||||
-e 's|@''REPLACE_PUTENV''@|$(REPLACE_PUTENV)|g' \
|
||||
-e 's|@''REPLACE_QSORT_R''@|$(REPLACE_QSORT_R)|g' \
|
||||
-e 's|@''REPLACE_RAND''@|$(REPLACE_RAND)|g' \
|
||||
-e 's|@''REPLACE_RANDOM''@|$(REPLACE_RANDOM)|g' \
|
||||
-e 's|@''REPLACE_RANDOM_R''@|$(REPLACE_RANDOM_R)|g' \
|
||||
-e 's|@''REPLACE_REALLOC_FOR_REALLOC_GNU''@|$(REPLACE_REALLOC_FOR_REALLOC_GNU)|g' \
|
||||
@ -3045,8 +3162,9 @@ stdlib.h: stdlib.in.h $(top_builddir)/config.status $(CXXDEFS_H) \
|
||||
-e '/definition of _Noreturn/r $(_NORETURN_H)' \
|
||||
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
||||
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
|
||||
> $@-t
|
||||
$(AM_V_at)mv $@-t $@
|
||||
< $@-t2 > $@-t3
|
||||
$(AM_V_at)rm -f $@-t1 $@-t2
|
||||
$(AM_V_at)mv $@-t3 $@
|
||||
|
||||
# We need the following in order to create <string.h> when the system
|
||||
# doesn't have one that works with the given compiler.
|
||||
@ -3078,6 +3196,7 @@ string.h: string.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H
|
||||
-e 's/@''GNULIB_MEMMEM''@/$(GL_GNULIB_MEMMEM)/g' \
|
||||
-e 's/@''GNULIB_MEMPCPY''@/$(GL_GNULIB_MEMPCPY)/g' \
|
||||
-e 's/@''GNULIB_MEMRCHR''@/$(GL_GNULIB_MEMRCHR)/g' \
|
||||
-e 's/@''GNULIB_MEMSET_EXPLICIT''@/$(GL_GNULIB_MEMSET_EXPLICIT)/g' \
|
||||
-e 's/@''GNULIB_RAWMEMCHR''@/$(GL_GNULIB_RAWMEMCHR)/g' \
|
||||
-e 's/@''GNULIB_STPCPY''@/$(GL_GNULIB_STPCPY)/g' \
|
||||
-e 's/@''GNULIB_STPNCPY''@/$(GL_GNULIB_STPNCPY)/g' \
|
||||
@ -3101,14 +3220,16 @@ string.h: string.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H
|
||||
-e 's/@''GNULIB_MDA_MEMCCPY''@/$(GL_GNULIB_MDA_MEMCCPY)/g' \
|
||||
-e 's/@''GNULIB_MDA_STRDUP''@/$(GL_GNULIB_MDA_STRDUP)/g' \
|
||||
-e 's/@''GNULIB_FREE_POSIX''@/$(GL_GNULIB_FREE_POSIX)/g' \
|
||||
< $(srcdir)/string.in.h | \
|
||||
sed -e 's|@''HAVE_EXPLICIT_BZERO''@|$(HAVE_EXPLICIT_BZERO)|g' \
|
||||
< $(srcdir)/string.in.h > $@-t1
|
||||
$(AM_V_at)sed \
|
||||
-e 's|@''HAVE_EXPLICIT_BZERO''@|$(HAVE_EXPLICIT_BZERO)|g' \
|
||||
-e 's|@''HAVE_FFSL''@|$(HAVE_FFSL)|g' \
|
||||
-e 's|@''HAVE_FFSLL''@|$(HAVE_FFSLL)|g' \
|
||||
-e 's|@''HAVE_MBSLEN''@|$(HAVE_MBSLEN)|g' \
|
||||
-e 's|@''HAVE_DECL_MEMMEM''@|$(HAVE_DECL_MEMMEM)|g' \
|
||||
-e 's|@''HAVE_MEMPCPY''@|$(HAVE_MEMPCPY)|g' \
|
||||
-e 's|@''HAVE_DECL_MEMRCHR''@|$(HAVE_DECL_MEMRCHR)|g' \
|
||||
-e 's|@''HAVE_MEMSET_EXPLICIT''@|$(HAVE_MEMSET_EXPLICIT)|g' \
|
||||
-e 's|@''HAVE_RAWMEMCHR''@|$(HAVE_RAWMEMCHR)|g' \
|
||||
-e 's|@''HAVE_STPCPY''@|$(HAVE_STPCPY)|g' \
|
||||
-e 's|@''HAVE_STPNCPY''@|$(HAVE_STPNCPY)|g' \
|
||||
@ -3129,7 +3250,9 @@ string.h: string.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H
|
||||
-e 's|@''REPLACE_FFSLL''@|$(REPLACE_FFSLL)|g' \
|
||||
-e 's|@''REPLACE_MEMCHR''@|$(REPLACE_MEMCHR)|g' \
|
||||
-e 's|@''REPLACE_MEMMEM''@|$(REPLACE_MEMMEM)|g' \
|
||||
-e 's|@''REPLACE_MEMPCPY''@|$(REPLACE_MEMPCPY)|g' \
|
||||
-e 's|@''REPLACE_FREE''@|$(REPLACE_FREE)|g' \
|
||||
-e 's|@''REPLACE_STPCPY''@|$(REPLACE_STPCPY)|g' \
|
||||
-e 's|@''REPLACE_STPNCPY''@|$(REPLACE_STPNCPY)|g' \
|
||||
-e 's|@''REPLACE_STRCHRNUL''@|$(REPLACE_STRCHRNUL)|g' \
|
||||
-e 's|@''REPLACE_STRDUP''@|$(REPLACE_STRDUP)|g' \
|
||||
@ -3143,12 +3266,14 @@ string.h: string.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H
|
||||
-e 's|@''REPLACE_STRERROR_R''@|$(REPLACE_STRERROR_R)|g' \
|
||||
-e 's|@''REPLACE_STRERRORNAME_NP''@|$(REPLACE_STRERRORNAME_NP)|g' \
|
||||
-e 's|@''REPLACE_STRSIGNAL''@|$(REPLACE_STRSIGNAL)|g' \
|
||||
-e 's|@''REPLACE_STRVERSCMP''@|$(REPLACE_STRVERSCMP)|g' \
|
||||
-e 's|@''UNDEFINE_STRTOK_R''@|$(UNDEFINE_STRTOK_R)|g' \
|
||||
-e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
|
||||
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
||||
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
|
||||
> $@-t
|
||||
$(AM_V_at)mv $@-t $@
|
||||
< $@-t1 > $@-t2
|
||||
$(AM_V_at)rm -f $@-t1
|
||||
$(AM_V_at)mv $@-t2 $@
|
||||
|
||||
# We need the following in order to create <sys/stat.h> when the system
|
||||
# has one that is incomplete.
|
||||
@ -3266,6 +3391,7 @@ time.h: time.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(
|
||||
-e 's/@''GNULIB_NANOSLEEP''@/$(GL_GNULIB_NANOSLEEP)/g' \
|
||||
-e 's/@''GNULIB_STRFTIME''@/$(GL_GNULIB_STRFTIME)/g' \
|
||||
-e 's/@''GNULIB_STRPTIME''@/$(GL_GNULIB_STRPTIME)/g' \
|
||||
-e 's/@''GNULIB_TIME''@/$(GL_GNULIB_TIME)/g' \
|
||||
-e 's/@''GNULIB_TIMEGM''@/$(GL_GNULIB_TIMEGM)/g' \
|
||||
-e 's/@''GNULIB_TIMESPEC_GET''@/$(GL_GNULIB_TIMESPEC_GET)/g' \
|
||||
-e 's/@''GNULIB_TIMESPEC_GETRES''@/$(GL_GNULIB_TIMESPEC_GETRES)/g' \
|
||||
@ -3287,7 +3413,9 @@ time.h: time.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(
|
||||
-e 's|@''REPLACE_MKTIME''@|$(REPLACE_MKTIME)|g' \
|
||||
-e 's|@''REPLACE_NANOSLEEP''@|$(REPLACE_NANOSLEEP)|g' \
|
||||
-e 's|@''REPLACE_STRFTIME''@|$(REPLACE_STRFTIME)|g' \
|
||||
-e 's|@''REPLACE_TIME''@|$(REPLACE_TIME)|g' \
|
||||
-e 's|@''REPLACE_TIMEGM''@|$(REPLACE_TIMEGM)|g' \
|
||||
-e 's|@''REPLACE_TIMESPEC_GET''@|$(REPLACE_TIMESPEC_GET)|g' \
|
||||
-e 's|@''REPLACE_TZSET''@|$(REPLACE_TZSET)|g' \
|
||||
-e 's|@''PTHREAD_H_DEFINES_STRUCT_TIMESPEC''@|$(PTHREAD_H_DEFINES_STRUCT_TIMESPEC)|g' \
|
||||
-e 's|@''SYS_TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(SYS_TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \
|
||||
@ -3334,6 +3462,8 @@ unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H
|
||||
-e 's/@''GNULIB_FDATASYNC''@/$(GL_GNULIB_FDATASYNC)/g' \
|
||||
-e 's/@''GNULIB_FSYNC''@/$(GL_GNULIB_FSYNC)/g' \
|
||||
-e 's/@''GNULIB_FTRUNCATE''@/$(GL_GNULIB_FTRUNCATE)/g' \
|
||||
< $(srcdir)/unistd.in.h > $@-t1
|
||||
$(AM_V_at)sed \
|
||||
-e 's/@''GNULIB_GETCWD''@/$(GL_GNULIB_GETCWD)/g' \
|
||||
-e 's/@''GNULIB_GETDOMAINNAME''@/$(GL_GNULIB_GETDOMAINNAME)/g' \
|
||||
-e 's/@''GNULIB_GETDTABLESIZE''@/$(GL_GNULIB_GETDTABLESIZE)/g' \
|
||||
@ -3395,8 +3525,9 @@ unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H
|
||||
-e 's/@''GNULIB_MDA_SWAB''@/$(GL_GNULIB_MDA_SWAB)/g' \
|
||||
-e 's/@''GNULIB_MDA_UNLINK''@/$(GL_GNULIB_MDA_UNLINK)/g' \
|
||||
-e 's/@''GNULIB_MDA_WRITE''@/$(GL_GNULIB_MDA_WRITE)/g' \
|
||||
< $(srcdir)/unistd.in.h | \
|
||||
sed -e 's|@''HAVE_CHOWN''@|$(HAVE_CHOWN)|g' \
|
||||
< $@-t1 > $@-t2
|
||||
$(AM_V_at)sed \
|
||||
-e 's|@''HAVE_CHOWN''@|$(HAVE_CHOWN)|g' \
|
||||
-e 's|@''HAVE_COPY_FILE_RANGE''@|$(HAVE_COPY_FILE_RANGE)|g' \
|
||||
-e 's|@''HAVE_DUP3''@|$(HAVE_DUP3)|g' \
|
||||
-e 's|@''HAVE_EUIDACCESS''@|$(HAVE_EUIDACCESS)|g' \
|
||||
@ -3443,13 +3574,15 @@ unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H
|
||||
-e 's|@''HAVE_DECL_TTYNAME_R''@|$(HAVE_DECL_TTYNAME_R)|g' \
|
||||
-e 's|@''HAVE_OS_H''@|$(HAVE_OS_H)|g' \
|
||||
-e 's|@''HAVE_SYS_PARAM_H''@|$(HAVE_SYS_PARAM_H)|g' \
|
||||
| \
|
||||
sed -e 's|@''REPLACE_ACCESS''@|$(REPLACE_ACCESS)|g' \
|
||||
< $@-t2 > $@-t3
|
||||
$(AM_V_at)sed \
|
||||
-e 's|@''REPLACE_ACCESS''@|$(REPLACE_ACCESS)|g' \
|
||||
-e 's|@''REPLACE_CHOWN''@|$(REPLACE_CHOWN)|g' \
|
||||
-e 's|@''REPLACE_CLOSE''@|$(REPLACE_CLOSE)|g' \
|
||||
-e 's|@''REPLACE_COPY_FILE_RANGE''@|$(REPLACE_COPY_FILE_RANGE)|g' \
|
||||
-e 's|@''REPLACE_DUP''@|$(REPLACE_DUP)|g' \
|
||||
-e 's|@''REPLACE_DUP2''@|$(REPLACE_DUP2)|g' \
|
||||
-e 's|@''REPLACE_DUP3''@|$(REPLACE_DUP3)|g' \
|
||||
-e 's|@''REPLACE_EXECL''@|$(REPLACE_EXECL)|g' \
|
||||
-e 's|@''REPLACE_EXECLE''@|$(REPLACE_EXECLE)|g' \
|
||||
-e 's|@''REPLACE_EXECLP''@|$(REPLACE_EXECLP)|g' \
|
||||
@ -3458,11 +3591,14 @@ unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H
|
||||
-e 's|@''REPLACE_EXECVP''@|$(REPLACE_EXECVP)|g' \
|
||||
-e 's|@''REPLACE_EXECVPE''@|$(REPLACE_EXECVPE)|g' \
|
||||
-e 's|@''REPLACE_FACCESSAT''@|$(REPLACE_FACCESSAT)|g' \
|
||||
-e 's|@''REPLACE_FCHDIR''@|$(REPLACE_FCHDIR)|g' \
|
||||
-e 's|@''REPLACE_FCHOWNAT''@|$(REPLACE_FCHOWNAT)|g' \
|
||||
-e 's|@''REPLACE_FDATASYNC''@|$(REPLACE_FDATASYNC)|g' \
|
||||
-e 's|@''REPLACE_FTRUNCATE''@|$(REPLACE_FTRUNCATE)|g' \
|
||||
-e 's|@''REPLACE_GETCWD''@|$(REPLACE_GETCWD)|g' \
|
||||
-e 's|@''REPLACE_GETDOMAINNAME''@|$(REPLACE_GETDOMAINNAME)|g' \
|
||||
-e 's|@''REPLACE_GETDTABLESIZE''@|$(REPLACE_GETDTABLESIZE)|g' \
|
||||
-e 's|@''REPLACE_GETENTROPY''@|$(REPLACE_GETENTROPY)|g' \
|
||||
-e 's|@''REPLACE_GETLOGIN_R''@|$(REPLACE_GETLOGIN_R)|g' \
|
||||
-e 's|@''REPLACE_GETGROUPS''@|$(REPLACE_GETGROUPS)|g' \
|
||||
-e 's|@''REPLACE_GETPAGESIZE''@|$(REPLACE_GETPAGESIZE)|g' \
|
||||
@ -3473,12 +3609,14 @@ unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H
|
||||
-e 's|@''REPLACE_LINK''@|$(REPLACE_LINK)|g' \
|
||||
-e 's|@''REPLACE_LINKAT''@|$(REPLACE_LINKAT)|g' \
|
||||
-e 's|@''REPLACE_LSEEK''@|$(REPLACE_LSEEK)|g' \
|
||||
-e 's|@''REPLACE_PIPE2''@|$(REPLACE_PIPE2)|g' \
|
||||
-e 's|@''REPLACE_PREAD''@|$(REPLACE_PREAD)|g' \
|
||||
-e 's|@''REPLACE_PWRITE''@|$(REPLACE_PWRITE)|g' \
|
||||
-e 's|@''REPLACE_READ''@|$(REPLACE_READ)|g' \
|
||||
-e 's|@''REPLACE_READLINK''@|$(REPLACE_READLINK)|g' \
|
||||
-e 's|@''REPLACE_READLINKAT''@|$(REPLACE_READLINKAT)|g' \
|
||||
-e 's|@''REPLACE_RMDIR''@|$(REPLACE_RMDIR)|g' \
|
||||
-e 's|@''REPLACE_SETHOSTNAME''@|$(REPLACE_SETHOSTNAME)|g' \
|
||||
-e 's|@''REPLACE_SLEEP''@|$(REPLACE_SLEEP)|g' \
|
||||
-e 's|@''REPLACE_SYMLINK''@|$(REPLACE_SYMLINK)|g' \
|
||||
-e 's|@''REPLACE_SYMLINKAT''@|$(REPLACE_SYMLINKAT)|g' \
|
||||
@ -3494,8 +3632,9 @@ unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H
|
||||
-e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
|
||||
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
||||
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
|
||||
> $@-t
|
||||
$(AM_V_at)mv $@-t $@
|
||||
< $@-t3 > $@-t4
|
||||
$(AM_V_at)rm -f $@-t1 $@-t2 $@-t3
|
||||
$(AM_V_at)mv $@-t4 $@
|
||||
|
||||
@gl_GNULIB_ENABLED_9c4a70804d24b83657b84f487eb93a64_TRUE@unistr.h: unistr.in.h
|
||||
@gl_GNULIB_ENABLED_9c4a70804d24b83657b84f487eb93a64_TRUE@ $(gl_V_at)$(SED_HEADER_TO_AT_t) $(srcdir)/unistr.in.h
|
||||
@ -3521,6 +3660,7 @@ wchar.h: wchar.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H)
|
||||
-e 's/@''GNULIB_BTOWC''@/$(GL_GNULIB_BTOWC)/g' \
|
||||
-e 's/@''GNULIB_WCTOB''@/$(GL_GNULIB_WCTOB)/g' \
|
||||
-e 's/@''GNULIB_MBSINIT''@/$(GL_GNULIB_MBSINIT)/g' \
|
||||
-e 's/@''GNULIB_MBSZERO''@/$(GL_GNULIB_MBSZERO)/g' \
|
||||
-e 's/@''GNULIB_MBRTOWC''@/$(GL_GNULIB_MBRTOWC)/g' \
|
||||
-e 's/@''GNULIB_MBRLEN''@/$(GL_GNULIB_MBRLEN)/g' \
|
||||
-e 's/@''GNULIB_MBSRTOWCS''@/$(GL_GNULIB_MBSRTOWCS)/g' \
|
||||
@ -3559,10 +3699,12 @@ wchar.h: wchar.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H)
|
||||
-e 's/@''GNULIB_WCSTOK''@/$(GL_GNULIB_WCSTOK)/g' \
|
||||
-e 's/@''GNULIB_WCSWIDTH''@/$(GL_GNULIB_WCSWIDTH)/g' \
|
||||
-e 's/@''GNULIB_WCSFTIME''@/$(GL_GNULIB_WCSFTIME)/g' \
|
||||
-e 's/@''GNULIB_WGETCWD''@/$(GL_GNULIB_WGETCWD)/g' \
|
||||
-e 's/@''GNULIB_MDA_WCSDUP''@/$(GL_GNULIB_MDA_WCSDUP)/g' \
|
||||
-e 's/@''GNULIB_FREE_POSIX''@/$(GL_GNULIB_FREE_POSIX)/g' \
|
||||
< $(srcdir)/wchar.in.h | \
|
||||
sed -e 's|@''HAVE_WINT_T''@|$(HAVE_WINT_T)|g' \
|
||||
< $(srcdir)/wchar.in.h > $@-t1
|
||||
$(AM_V_at)sed \
|
||||
-e 's|@''HAVE_WINT_T''@|$(HAVE_WINT_T)|g' \
|
||||
-e 's|@''HAVE_BTOWC''@|$(HAVE_BTOWC)|g' \
|
||||
-e 's|@''HAVE_MBSINIT''@|$(HAVE_MBSINIT)|g' \
|
||||
-e 's|@''HAVE_MBRTOWC''@|$(HAVE_MBRTOWC)|g' \
|
||||
@ -3605,8 +3747,9 @@ wchar.h: wchar.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H)
|
||||
-e 's|@''HAVE_DECL_WCTOB''@|$(HAVE_DECL_WCTOB)|g' \
|
||||
-e 's|@''HAVE_DECL_WCSDUP''@|$(HAVE_DECL_WCSDUP)|g' \
|
||||
-e 's|@''HAVE_DECL_WCWIDTH''@|$(HAVE_DECL_WCWIDTH)|g' \
|
||||
| \
|
||||
sed -e 's|@''REPLACE_MBSTATE_T''@|$(REPLACE_MBSTATE_T)|g' \
|
||||
< $@-t1 > $@-t2
|
||||
$(AM_V_at)sed \
|
||||
-e 's|@''REPLACE_MBSTATE_T''@|$(REPLACE_MBSTATE_T)|g' \
|
||||
-e 's|@''REPLACE_BTOWC''@|$(REPLACE_BTOWC)|g' \
|
||||
-e 's|@''REPLACE_WCTOB''@|$(REPLACE_WCTOB)|g' \
|
||||
-e 's|@''REPLACE_FREE''@|$(REPLACE_FREE)|g' \
|
||||
@ -3621,16 +3764,22 @@ wchar.h: wchar.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H)
|
||||
-e 's|@''REPLACE_WCWIDTH''@|$(REPLACE_WCWIDTH)|g' \
|
||||
-e 's|@''REPLACE_WCSWIDTH''@|$(REPLACE_WCSWIDTH)|g' \
|
||||
-e 's|@''REPLACE_WCSFTIME''@|$(REPLACE_WCSFTIME)|g' \
|
||||
-e 's|@''REPLACE_WCSCMP''@|$(REPLACE_WCSCMP)|g' \
|
||||
-e 's|@''REPLACE_WCSNCMP''@|$(REPLACE_WCSNCMP)|g' \
|
||||
-e 's|@''REPLACE_WCSSTR''@|$(REPLACE_WCSSTR)|g' \
|
||||
-e 's|@''REPLACE_WCSTOK''@|$(REPLACE_WCSTOK)|g' \
|
||||
-e 's|@''REPLACE_WMEMCMP''@|$(REPLACE_WMEMCMP)|g' \
|
||||
-e 's|@''REPLACE_WMEMPCPY''@|$(REPLACE_WMEMPCPY)|g' \
|
||||
-e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
|
||||
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
||||
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
|
||||
> $@-t
|
||||
$(AM_V_at)mv $@-t $@
|
||||
< $@-t2 > $@-t3
|
||||
$(AM_V_at)rm -f $@-t1 $@-t2
|
||||
$(AM_V_at)mv $@-t3 $@
|
||||
|
||||
# We need the following in order to create <wctype.h> when the system
|
||||
# doesn't have one that works with the given compiler.
|
||||
wctype.h: wctype.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H)
|
||||
wctype.h: wctype.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
|
||||
$(gl_V_at)$(SED_HEADER_STDOUT) \
|
||||
-e 's|@''GUARD_PREFIX''@|GL|g' \
|
||||
-e 's/@''HAVE_WCTYPE_H''@/$(HAVE_WCTYPE_H)/g' \
|
||||
@ -3642,6 +3791,7 @@ wctype.h: wctype.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H
|
||||
-e 's/@''GNULIBHEADERS_OVERRIDE_WINT_T''@/$(GNULIBHEADERS_OVERRIDE_WINT_T)/g' \
|
||||
-e 's/@''GNULIB_ISWBLANK''@/$(GL_GNULIB_ISWBLANK)/g' \
|
||||
-e 's/@''GNULIB_ISWDIGIT''@/$(GL_GNULIB_ISWDIGIT)/g' \
|
||||
-e 's/@''GNULIB_ISWPUNCT''@/$(GL_GNULIB_ISWPUNCT)/g' \
|
||||
-e 's/@''GNULIB_ISWXDIGIT''@/$(GL_GNULIB_ISWXDIGIT)/g' \
|
||||
-e 's/@''GNULIB_WCTYPE''@/$(GL_GNULIB_WCTYPE)/g' \
|
||||
-e 's/@''GNULIB_ISWCTYPE''@/$(GL_GNULIB_ISWCTYPE)/g' \
|
||||
@ -3654,10 +3804,14 @@ wctype.h: wctype.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H
|
||||
-e 's/@''HAVE_WINT_T''@/$(HAVE_WINT_T)/g' \
|
||||
-e 's/@''REPLACE_ISWBLANK''@/$(REPLACE_ISWBLANK)/g' \
|
||||
-e 's/@''REPLACE_ISWDIGIT''@/$(REPLACE_ISWDIGIT)/g' \
|
||||
-e 's/@''REPLACE_ISWPUNCT''@/$(REPLACE_ISWPUNCT)/g' \
|
||||
-e 's/@''REPLACE_ISWXDIGIT''@/$(REPLACE_ISWXDIGIT)/g' \
|
||||
-e 's/@''REPLACE_ISWCNTRL''@/$(REPLACE_ISWCNTRL)/g' \
|
||||
-e 's/@''REPLACE_TOWLOWER''@/$(REPLACE_TOWLOWER)/g' \
|
||||
-e 's/@''REPLACE_WCTRANS''@/$(REPLACE_WCTRANS)/g' \
|
||||
-e 's/@''REPLACE_WCTYPE''@/$(REPLACE_WCTYPE)/g' \
|
||||
-e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
|
||||
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
||||
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
|
||||
$(srcdir)/wctype.in.h > $@-t
|
||||
$(AM_V_at)mv $@-t $@
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* A C macro for declaring that a function does not return.
|
||||
Copyright (C) 2011-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2011-2024 Free Software Foundation, Inc.
|
||||
|
||||
This program is free software: you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published
|
||||
@ -26,6 +26,11 @@
|
||||
AIX system header files and several gnulib header files use precisely
|
||||
this syntax with 'extern'. */
|
||||
# define _Noreturn [[noreturn]]
|
||||
# elif (defined __clang__ && __clang_major__ < 16 \
|
||||
&& defined _GL_WORK_AROUND_LLVM_BUG_59792)
|
||||
/* Compile with -D_GL_WORK_AROUND_LLVM_BUG_59792 to work around
|
||||
that rare LLVM bug, though you may get many false-alarm warnings. */
|
||||
# define _Noreturn
|
||||
# elif ((!defined __cplusplus || defined __clang__) \
|
||||
&& (201112 <= (defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) \
|
||||
|| (!defined __STRICT_ANSI__ \
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* A C macro for declaring that specific arguments must not be NULL.
|
||||
Copyright (C) 2009-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2009-2024 Free Software Foundation, Inc.
|
||||
|
||||
This program is free software: you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published
|
||||
|
27
lib/assert.in.h
Normal file
27
lib/assert.in.h
Normal file
@ -0,0 +1,27 @@
|
||||
/* Substitute for and wrapper around <assert.h>
|
||||
Copyright (C) 2011-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
published by the Free Software Foundation; either version 2.1 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 Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>. */
|
||||
|
||||
/* Do not guard the include, since <assert.h> is supposed to define
|
||||
the assert macro each time it is included. */
|
||||
|
||||
#if __GNUC__ >= 3
|
||||
@PRAGMA_SYSTEM_HEADER@
|
||||
#endif
|
||||
@PRAGMA_COLUMNS@
|
||||
|
||||
#@INCLUDE_NEXT@ @NEXT_ASSERT_H@
|
||||
|
||||
/* The definition of static_assert is copied here. */
|
@ -1,6 +1,6 @@
|
||||
/* ATTRIBUTE_* macros for using attributes in GCC and similar compilers
|
||||
|
||||
Copyright 2020-2022 Free Software Foundation, Inc.
|
||||
Copyright 2020-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
@ -32,7 +32,7 @@
|
||||
|
||||
|
||||
/* This file defines two types of attributes:
|
||||
* C2x standard attributes. These have macro names that do not begin with
|
||||
* C23 standard attributes. These have macro names that do not begin with
|
||||
'ATTRIBUTE_'.
|
||||
* Selected GCC attributes; see:
|
||||
https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html
|
||||
@ -41,6 +41,21 @@
|
||||
These names begin with 'ATTRIBUTE_' to avoid name clashes. */
|
||||
|
||||
|
||||
/* This file uses _GL_ATTRIBUTE_ALLOC_SIZE, _GL_ATTRIBUTE_ALWAYS_INLINE,
|
||||
_GL_ATTRIBUTE_ARTIFICIAL, _GL_ATTRIBUTE_COLD, _GL_ATTRIBUTE_CONST,
|
||||
_GL_ATTRIBUTE_DEALLOC, _GL_ATTRIBUTE_DEPRECATED, _GL_ATTRIBUTE_ERROR,
|
||||
_GL_ATTRIBUTE_WARNING, _GL_ATTRIBUTE_EXTERNALLY_VISIBLE,
|
||||
_GL_ATTRIBUTE_FALLTHROUGH, _GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_LEAF,
|
||||
_GL_ATTRIBUTE_MALLOC, _GL_ATTRIBUTE_MAY_ALIAS, _GL_ATTRIBUTE_MAYBE_UNUSED,
|
||||
_GL_ATTRIBUTE_NODISCARD, _GL_ATTRIBUTE_NOINLINE, _GL_ATTRIBUTE_NONNULL,
|
||||
_GL_ATTRIBUTE_NONSTRING, _GL_ATTRIBUTE_NOTHROW, _GL_ATTRIBUTE_PACKED,
|
||||
_GL_ATTRIBUTE_PURE, _GL_ATTRIBUTE_RETURNS_NONNULL,
|
||||
_GL_ATTRIBUTE_SENTINEL. */
|
||||
#if !_GL_CONFIG_H_INCLUDED
|
||||
#error "Please include config.h first."
|
||||
#endif
|
||||
|
||||
|
||||
/* =============== Attributes for specific kinds of functions =============== */
|
||||
|
||||
/* Attributes for functions that should not be used. */
|
||||
@ -167,6 +182,8 @@
|
||||
|
||||
/* The function does not throw exceptions. */
|
||||
/* Applies to: functions. */
|
||||
/* After a function's parameter list, this attribute must come first, before
|
||||
other attributes. */
|
||||
#define ATTRIBUTE_NOTHROW _GL_ATTRIBUTE_NOTHROW
|
||||
|
||||
/* Do not inline the function. */
|
||||
|
10
lib/btowc.c
10
lib/btowc.c
@ -1,5 +1,5 @@
|
||||
/* Convert unibyte character to wide character.
|
||||
Copyright (C) 2008, 2010-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2008, 2010-2024 Free Software Foundation, Inc.
|
||||
Written by Bruno Haible <bruno@clisp.org>, 2008.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
@ -22,6 +22,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
wint_t
|
||||
btowc (int c)
|
||||
@ -32,7 +33,14 @@ btowc (int c)
|
||||
wchar_t wc;
|
||||
|
||||
buf[0] = c;
|
||||
#if HAVE_MBRTOWC
|
||||
mbstate_t state;
|
||||
mbszero (&state);
|
||||
size_t ret = mbrtowc (&wc, buf, 1, &state);
|
||||
if (!(ret == (size_t)(-1) || ret == (size_t)(-2)))
|
||||
#else
|
||||
if (mbtowc (&wc, buf, 1) >= 0)
|
||||
#endif
|
||||
return wc;
|
||||
}
|
||||
return WEOF;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* C++ compatible function declaration macros.
|
||||
Copyright (C) 2010-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2010-2024 Free Software Foundation, Inc.
|
||||
|
||||
This program is free software: you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published
|
||||
@ -99,6 +99,12 @@
|
||||
Example:
|
||||
_GL_FUNCDECL_RPL (open, int, (const char *filename, int flags, ...)
|
||||
_GL_ARG_NONNULL ((1)));
|
||||
|
||||
Note: Attributes, such as _GL_ATTRIBUTE_DEPRECATED, are supported in front
|
||||
of a _GL_FUNCDECL_RPL invocation only in C mode, not in C++ mode. (That's
|
||||
because
|
||||
[[...]] extern "C" <declaration>;
|
||||
is invalid syntax in C++.)
|
||||
*/
|
||||
#define _GL_FUNCDECL_RPL(func,rettype,parameters_and_attributes) \
|
||||
_GL_FUNCDECL_RPL_1 (rpl_##func, rettype, parameters_and_attributes)
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* Character handling in C locale.
|
||||
|
||||
Copyright (C) 2003-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2003-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
|
@ -5,7 +5,7 @@
|
||||
<ctype.h> functions' behaviour depends on the current locale set via
|
||||
setlocale.
|
||||
|
||||
Copyright (C) 2000-2003, 2006, 2008-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2000-2003, 2006, 2008-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
@ -23,11 +23,11 @@
|
||||
#ifndef C_CTYPE_H
|
||||
#define C_CTYPE_H
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#ifndef _GL_INLINE_HEADER_BEGIN
|
||||
/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE. */
|
||||
#if !_GL_CONFIG_H_INCLUDED
|
||||
#error "Please include config.h first."
|
||||
#endif
|
||||
|
||||
_GL_INLINE_HEADER_BEGIN
|
||||
#ifndef C_CTYPE_INLINE
|
||||
# define C_CTYPE_INLINE _GL_INLINE
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Case-insensitive string comparison functions in C locale.
|
||||
Copyright (C) 1995-1996, 2001, 2003, 2005, 2009-2022 Free Software
|
||||
Copyright (C) 1995-1996, 2001, 2003, 2005, 2009-2024 Free Software
|
||||
Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
@ -18,6 +18,11 @@
|
||||
#ifndef C_STRCASE_H
|
||||
#define C_STRCASE_H
|
||||
|
||||
/* This file uses _GL_ATTRIBUTE_PURE. */
|
||||
#if !_GL_CONFIG_H_INCLUDED
|
||||
#error "Please include config.h first."
|
||||
#endif
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* c-strcasecmp.c -- case insensitive string comparator in C locale
|
||||
Copyright (C) 1998-1999, 2005-2006, 2009-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 1998-1999, 2005-2006, 2009-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* c-strncasecmp.c -- case insensitive string comparator in C locale
|
||||
Copyright (C) 1998-1999, 2005-2006, 2009-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 1998-1999, 2005-2006, 2009-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* crc.c -- cyclic redundancy checks
|
||||
Copyright (C) 2005-2006, 2009-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2005-2006, 2009-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* crc.h -- cyclic redundancy checks
|
||||
Copyright (C) 2005, 2009-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2005, 2009-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* Make free() preserve errno.
|
||||
|
||||
Copyright (C) 2003, 2006, 2009-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2003, 2006, 2009-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* getopt-on-non-glibc compatibility macros.
|
||||
Copyright (C) 1989-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 1989-2024 Free Software Foundation, Inc.
|
||||
This file is part of gnulib.
|
||||
Unlike most of the getopt implementation, it is NOT shared
|
||||
with the GNU C Library.
|
||||
@ -57,7 +57,11 @@
|
||||
|
||||
#ifndef __THROW
|
||||
# if defined __cplusplus && (__GNUC_PREREQ (2,8) || __clang_major__ >= 4)
|
||||
# define __THROW throw ()
|
||||
# if __cplusplus >= 201103L
|
||||
# define __THROW noexcept (true)
|
||||
# else
|
||||
# define __THROW throw ()
|
||||
# endif
|
||||
# else
|
||||
# define __THROW
|
||||
# endif
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Declarations for getopt (basic, portable features only).
|
||||
Copyright (C) 1989-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 1989-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library and is also part of gnulib.
|
||||
Patches to this file should be submitted to both projects.
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Declarations for getopt (GNU extensions).
|
||||
Copyright (C) 1989-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 1989-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library and is also part of gnulib.
|
||||
Patches to this file should be submitted to both projects.
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* getopt (basic, portable features) gnulib wrapper header.
|
||||
Copyright (C) 1989-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 1989-2024 Free Software Foundation, Inc.
|
||||
This file is part of gnulib.
|
||||
Unlike most of the getopt implementation, it is NOT shared
|
||||
with the GNU C Library.
|
||||
@ -47,7 +47,7 @@
|
||||
# define optind __GETOPT_ID (optind)
|
||||
# define optopt __GETOPT_ID (optopt)
|
||||
|
||||
/* Work around a a problem on macOS, which declares getopt with a
|
||||
/* Work around a problem on macOS, which declares getopt with a
|
||||
trailing __DARWIN_ALIAS(getopt) that would expand to something like
|
||||
__asm("_" "rpl_getopt" "$UNIX2003") were it not for the following
|
||||
hack to suppress the macOS declaration <https://bugs.gnu.org/40205>. */
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* getopt (GNU extensions) gnulib wrapper header.
|
||||
Copyright (C) 1989-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 1989-2024 Free Software Foundation, Inc.
|
||||
This file is part of gnulib.
|
||||
Unlike most of the getopt implementation, it is NOT shared
|
||||
with the GNU C Library.
|
||||
|
33
lib/getopt.c
33
lib/getopt.c
@ -1,5 +1,5 @@
|
||||
/* Getopt for GNU.
|
||||
Copyright (C) 1987-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 1987-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library and is also part of gnulib.
|
||||
Patches to this file should be submitted to both projects.
|
||||
|
||||
@ -21,7 +21,7 @@
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#include "getopt.h"
|
||||
#include <getopt.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
@ -223,8 +223,9 @@ process_long_option (int argc, char **argv, const char *optstring,
|
||||
{
|
||||
/* Didn't find an exact match, so look for abbreviations. */
|
||||
unsigned char *ambig_set = NULL;
|
||||
int ambig_malloced = 0;
|
||||
int ambig_fallback = 0;
|
||||
/* Use simpler fallback diagnostic if ambig_set == &ambig_fallback. */
|
||||
unsigned char ambig_fallback;
|
||||
void *ambig_malloced = NULL;
|
||||
int indfound = -1;
|
||||
|
||||
for (p = longopts, option_index = 0; p->name; p++, option_index++)
|
||||
@ -242,23 +243,26 @@ process_long_option (int argc, char **argv, const char *optstring,
|
||||
|| pfound->val != p->val)
|
||||
{
|
||||
/* Second or later nonexact match found. */
|
||||
if (!ambig_fallback)
|
||||
if (ambig_set != &ambig_fallback)
|
||||
{
|
||||
if (!print_errors)
|
||||
/* Don't waste effort tracking the ambig set if
|
||||
we're not going to print it anyway. */
|
||||
ambig_fallback = 1;
|
||||
ambig_set = &ambig_fallback;
|
||||
else if (!ambig_set)
|
||||
{
|
||||
if (__libc_use_alloca (n_options))
|
||||
ambig_set = alloca (n_options);
|
||||
else if ((ambig_set = malloc (n_options)) == NULL)
|
||||
/* Fall back to simpler error message. */
|
||||
ambig_fallback = 1;
|
||||
else
|
||||
ambig_malloced = 1;
|
||||
{
|
||||
ambig_malloced = malloc (n_options);
|
||||
/* Fall back to simpler diagnostic if
|
||||
memory allocation fails. */
|
||||
ambig_set = (ambig_malloced ? ambig_malloced
|
||||
: &ambig_fallback);
|
||||
}
|
||||
|
||||
if (ambig_set)
|
||||
if (ambig_set != &ambig_fallback)
|
||||
{
|
||||
memset (ambig_set, 0, n_options);
|
||||
ambig_set[indfound] = 1;
|
||||
@ -270,11 +274,11 @@ process_long_option (int argc, char **argv, const char *optstring,
|
||||
}
|
||||
}
|
||||
|
||||
if (ambig_set || ambig_fallback)
|
||||
if (ambig_set)
|
||||
{
|
||||
if (print_errors)
|
||||
{
|
||||
if (ambig_fallback)
|
||||
if (ambig_set == &ambig_fallback)
|
||||
fprintf (stderr, _("%s: option '%s%s' is ambiguous\n"),
|
||||
argv[0], prefix, d->__nextchar);
|
||||
else
|
||||
@ -296,8 +300,7 @@ process_long_option (int argc, char **argv, const char *optstring,
|
||||
funlockfile (stderr);
|
||||
}
|
||||
}
|
||||
if (ambig_malloced)
|
||||
free (ambig_set);
|
||||
free (ambig_malloced);
|
||||
d->__nextchar += strlen (d->__nextchar);
|
||||
d->optind++;
|
||||
d->optopt = 0;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Declarations for getopt.
|
||||
Copyright (C) 1989-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 1989-2024 Free Software Foundation, Inc.
|
||||
This file is part of gnulib.
|
||||
Unlike most of the getopt implementation, it is NOT shared
|
||||
with the GNU C Library, which supplies a different version of
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* getopt_long and getopt_long_only entry points for GNU getopt.
|
||||
Copyright (C) 1987-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 1987-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library and is also part of gnulib.
|
||||
Patches to this file should be submitted to both projects.
|
||||
|
||||
@ -21,7 +21,7 @@
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#include "getopt.h"
|
||||
#include <getopt.h>
|
||||
#include "getopt_int.h"
|
||||
|
||||
int
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Internal declarations for getopt.
|
||||
Copyright (C) 1989-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 1989-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library and is also part of gnulib.
|
||||
Patches to this file should be submitted to both projects.
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Convenience header for conditional use of GNU <libintl.h>.
|
||||
Copyright (C) 1995-1998, 2000-2002, 2004-2006, 2009-2022 Free Software
|
||||
Copyright (C) 1995-1998, 2000-2002, 2004-2006, 2009-2024 Free Software
|
||||
Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* Provide gettimeofday for systems that don't have it or for which it's broken.
|
||||
|
||||
Copyright (C) 2001-2003, 2005-2007, 2009-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2001-2003, 2005-2007, 2009-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
@ -113,8 +113,10 @@ gettimeofday (struct timeval *restrict tv, void *restrict tz)
|
||||
ULONGLONG since_1970 =
|
||||
since_1601 - (ULONGLONG) 134774 * (ULONGLONG) 86400 * (ULONGLONG) 10000000;
|
||||
ULONGLONG microseconds_since_1970 = since_1970 / (ULONGLONG) 10;
|
||||
tv->tv_sec = microseconds_since_1970 / (ULONGLONG) 1000000;
|
||||
tv->tv_usec = microseconds_since_1970 % (ULONGLONG) 1000000;
|
||||
*tv = (struct timeval) {
|
||||
.tv_sec = microseconds_since_1970 / (ULONGLONG) 1000000,
|
||||
.tv_usec = microseconds_since_1970 % (ULONGLONG) 1000000
|
||||
};
|
||||
|
||||
return 0;
|
||||
|
||||
@ -127,10 +129,7 @@ gettimeofday (struct timeval *restrict tv, void *restrict tz)
|
||||
struct timeval otv;
|
||||
int result = gettimeofday (&otv, (struct timezone *) tz);
|
||||
if (result == 0)
|
||||
{
|
||||
tv->tv_sec = otv.tv_sec;
|
||||
tv->tv_usec = otv.tv_usec;
|
||||
}
|
||||
*tv = otv;
|
||||
# else
|
||||
int result = gettimeofday (tv, (struct timezone *) tz);
|
||||
# endif
|
||||
@ -143,8 +142,7 @@ gettimeofday (struct timeval *restrict tv, void *restrict tz)
|
||||
# error "Only 1-second nominal clock resolution found. Is that intended?" \
|
||||
"If so, compile with the -DOK_TO_USE_1S_CLOCK option."
|
||||
# endif
|
||||
tv->tv_sec = time (NULL);
|
||||
tv->tv_usec = 0;
|
||||
*tv = (struct timeval) { .tv_sec = time (NULL), .tv_usec = 0 };
|
||||
|
||||
return 0;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* hard-locale.c -- Determine whether a locale is hard.
|
||||
|
||||
Copyright (C) 1997-1999, 2002-2004, 2006-2007, 2009-2022 Free Software
|
||||
Copyright (C) 1997-1999, 2002-2004, 2006-2007, 2009-2024 Free Software
|
||||
Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
@ -21,6 +21,7 @@
|
||||
#include "hard-locale.h"
|
||||
|
||||
#include <locale.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
bool
|
||||
@ -31,5 +32,16 @@ hard_locale (int category)
|
||||
if (setlocale_null_r (category, locale, sizeof (locale)))
|
||||
return false;
|
||||
|
||||
return !(strcmp (locale, "C") == 0 || strcmp (locale, "POSIX") == 0);
|
||||
if (!(strcmp (locale, "C") == 0 || strcmp (locale, "POSIX") == 0))
|
||||
return true;
|
||||
|
||||
#if defined __ANDROID__
|
||||
/* On Android 5.0 or newer, it is possible to set a locale that has the same
|
||||
name as the "C" locale but in fact uses UTF-8 encoding. Cf. test case 2 in
|
||||
<https://lists.gnu.org/archive/html/bug-gnulib/2023-01/msg00141.html>. */
|
||||
if (MB_CUR_MAX > 1)
|
||||
return true;
|
||||
#endif
|
||||
|
||||
return false;
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* Determine whether a locale is hard.
|
||||
|
||||
Copyright (C) 1999, 2003-2004, 2009-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 1999, 2003-2004, 2009-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
@ -18,11 +18,11 @@
|
||||
#ifndef HARD_LOCALE_H_
|
||||
# define HARD_LOCALE_H_ 1
|
||||
|
||||
# include <stdbool.h>
|
||||
|
||||
/* Return true if the specified CATEGORY of the current locale is hard, i.e.
|
||||
different from the C or POSIX locale that has a fixed behavior.
|
||||
CATEGORY must be one of the LC_* values, but not LC_ALL. */
|
||||
CATEGORY must be one of the LC_* values, but not LC_ALL.
|
||||
Note: This function uses the current global locale; it ignores the
|
||||
per-thread locale. */
|
||||
extern bool hard_locale (int category);
|
||||
|
||||
#endif /* HARD_LOCALE_H_ */
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Character set conversion.
|
||||
Copyright (C) 1999-2001, 2007, 2009-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 1999-2001, 2007, 2009-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* A GNU-like <iconv.h>.
|
||||
|
||||
Copyright (C) 2007-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2007-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
@ -28,6 +28,11 @@
|
||||
#ifndef _@GUARD_PREFIX@_ICONV_H
|
||||
#define _@GUARD_PREFIX@_ICONV_H
|
||||
|
||||
/* This file uses GNULIB_POSIXCHECK, HAVE_RAW_DECL_*. */
|
||||
#if !_GL_CONFIG_H_INCLUDED
|
||||
#error "Please include config.h first."
|
||||
#endif
|
||||
|
||||
/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */
|
||||
|
||||
/* The definition of _GL_ARG_NONNULL is copied here. */
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Character set conversion.
|
||||
Copyright (C) 2007, 2009-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2007, 2009-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Character set conversion.
|
||||
Copyright (C) 2007, 2020-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2007, 2020-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Character set conversion.
|
||||
Copyright (C) 2007, 2020-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2007, 2020-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Character set conversion.
|
||||
Copyright (C) 2007, 2020-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2007, 2020-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Character set conversion.
|
||||
Copyright (C) 2007, 2020-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2007, 2020-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Character set conversion.
|
||||
Copyright (C) 2007, 2009, 2020-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2007, 2009, 2020-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Character set conversion.
|
||||
Copyright (C) 2019-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2019-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Character set conversion.
|
||||
Copyright (C) 2007, 2009-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2007, 2009-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2006-2022 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 2006-2024 Free Software Foundation, Inc.
|
||||
Written by Paul Eggert, Bruno Haible, Derek Price.
|
||||
This file is part of gnulib.
|
||||
|
||||
@ -46,6 +46,11 @@
|
||||
#if ! defined INTTYPES_H && ! defined _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H
|
||||
#define INTTYPES_H
|
||||
|
||||
/* This file uses GNULIB_POSIXCHECK, HAVE_RAW_DECL_*. */
|
||||
#if !_GL_CONFIG_H_INCLUDED
|
||||
#error "Please include config.h first."
|
||||
#endif
|
||||
|
||||
/* Include <stdint.h> or the gnulib replacement.
|
||||
But avoid namespace pollution on glibc systems. */
|
||||
#ifndef __GLIBC__
|
||||
@ -903,8 +908,21 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#if @GNULIB_IMAXABS@
|
||||
# if !@HAVE_DECL_IMAXABS@
|
||||
extern intmax_t imaxabs (intmax_t);
|
||||
# if @REPLACE_IMAXABS@
|
||||
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
|
||||
# undef imaxabs
|
||||
# define imaxabs rpl_imaxabs
|
||||
# endif
|
||||
_GL_FUNCDECL_RPL (imaxabs, intmax_t, (intmax_t x));
|
||||
_GL_CXXALIAS_RPL (imaxabs, intmax_t, (intmax_t x));
|
||||
# else
|
||||
# if !@HAVE_DECL_IMAXABS@
|
||||
_GL_FUNCDECL_SYS (imaxabs, intmax_t, (intmax_t x));
|
||||
# endif
|
||||
_GL_CXXALIAS_SYS (imaxabs, intmax_t, (intmax_t x));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (imaxabs);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
# undef imaxabs
|
||||
@ -921,8 +939,21 @@ typedef struct { intmax_t quot; intmax_t rem; } imaxdiv_t;
|
||||
# define GNULIB_defined_imaxdiv_t 1
|
||||
# endif
|
||||
# endif
|
||||
# if !@HAVE_DECL_IMAXDIV@
|
||||
extern imaxdiv_t imaxdiv (intmax_t, intmax_t);
|
||||
# if @REPLACE_IMAXDIV@
|
||||
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
|
||||
# undef imaxdiv
|
||||
# define imaxdiv rpl_imaxdiv
|
||||
# endif
|
||||
_GL_FUNCDECL_RPL (imaxdiv, imaxdiv_t, (intmax_t numer, intmax_t denom));
|
||||
_GL_CXXALIAS_RPL (imaxdiv, imaxdiv_t, (intmax_t numer, intmax_t denom));
|
||||
# else
|
||||
# if !@HAVE_DECL_IMAXDIV@
|
||||
_GL_FUNCDECL_SYS (imaxdiv, imaxdiv_t, (intmax_t numer, intmax_t denom));
|
||||
# endif
|
||||
_GL_CXXALIAS_SYS (imaxdiv, imaxdiv_t, (intmax_t numer, intmax_t denom));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (imaxdiv);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
# undef imaxdiv
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Dispatching based on the current locale's character encoding.
|
||||
Copyright (C) 2018-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2018-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Dispatching based on the current locale's character encoding.
|
||||
Copyright (C) 2018-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2018-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* A GNU-like <limits.h>.
|
||||
|
||||
Copyright 2016-2022 Free Software Foundation, Inc.
|
||||
Copyright 2016-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
@ -99,7 +99,12 @@
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* Macros specified by C2x and by ISO/IEC TS 18661-1:2014. */
|
||||
/* Assume no multibyte character is longer than 16 bytes. */
|
||||
#ifndef MB_LEN_MAX
|
||||
# define MB_LEN_MAX 16
|
||||
#endif
|
||||
|
||||
/* Macros specified by C23 and by ISO/IEC TS 18661-1:2014. */
|
||||
|
||||
#if (! defined ULLONG_WIDTH \
|
||||
&& (defined _GNU_SOURCE || defined __STDC_WANT_IEC_60559_BFP_EXT__ \
|
||||
@ -117,13 +122,28 @@
|
||||
# define ULLONG_WIDTH _GL_INTEGER_WIDTH (0, ULLONG_MAX)
|
||||
#endif
|
||||
|
||||
/* Macros specified by C2x. */
|
||||
/* Macros specified by C23. */
|
||||
|
||||
#if (! defined BOOL_WIDTH \
|
||||
&& (defined _GNU_SOURCE \
|
||||
|| (defined __STDC_VERSION__ && 201710 < __STDC_VERSION__)))
|
||||
# define BOOL_MAX 1
|
||||
# define BOOL_WIDTH 1
|
||||
#if (defined _GNU_SOURCE \
|
||||
|| (defined __STDC_VERSION__ && 201710 < __STDC_VERSION__))
|
||||
# if ! defined BOOL_WIDTH
|
||||
# define BOOL_WIDTH 1
|
||||
# define BOOL_MAX 1
|
||||
# elif ! defined BOOL_MAX
|
||||
# define BOOL_MAX ((((1U << (BOOL_WIDTH - 1)) - 1) << 1) + 1)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* Macro specified by POSIX. */
|
||||
|
||||
/* The maximum ssize_t value. Although it might not be of ssize_t type
|
||||
as it should be, it's too much trouble to fix this minor detail. */
|
||||
#ifndef SSIZE_MAX
|
||||
# ifdef _WIN64
|
||||
# define SSIZE_MAX LLONG_MAX
|
||||
# else
|
||||
# define SSIZE_MAX LONG_MAX
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#endif /* _@GUARD_PREFIX@_LIMITS_H */
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* Determine a canonical name for the current locale's character encoding.
|
||||
|
||||
Copyright (C) 2000-2006, 2008-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2000-2006, 2008-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
@ -1054,7 +1054,7 @@ locale_charset (void)
|
||||
}
|
||||
}
|
||||
if (0)
|
||||
done_table_lookup: ;
|
||||
done_table_lookup: {}
|
||||
else
|
||||
# endif
|
||||
{
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Determine a canonical name for the current locale's character encoding.
|
||||
Copyright (C) 2000-2003, 2009-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2000-2003, 2009-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU CHARSET Library.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
@ -104,10 +104,8 @@ extern const char * locale_charset (void);
|
||||
GBK glibc aix osf solaris freebsd darwin cygwin windows dos
|
||||
GB18030 glibc hpux solaris freebsd netbsd darwin
|
||||
SHIFT_JIS Y hpux osf solaris freebsd netbsd darwin
|
||||
JOHAB glibc solaris windows
|
||||
JOHAB solaris windows
|
||||
TIS-620 glibc aix hpux osf solaris cygwin zos
|
||||
VISCII Y glibc
|
||||
TCVN5712-1 glibc
|
||||
ARMSCII-8 glibc freebsd netbsd darwin
|
||||
GEORGIAN-PS glibc cygwin
|
||||
PT154 glibc netbsd cygwin
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* A POSIX <locale.h>.
|
||||
Copyright (C) 2007-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2007-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
@ -44,6 +44,11 @@
|
||||
#ifndef _@GUARD_PREFIX@_LOCALE_H
|
||||
#define _@GUARD_PREFIX@_LOCALE_H
|
||||
|
||||
/* This file uses GNULIB_POSIXCHECK, HAVE_RAW_DECL_*. */
|
||||
#if !_GL_CONFIG_H_INCLUDED
|
||||
#error "Please include config.h first."
|
||||
#endif
|
||||
|
||||
/* NetBSD 5.0 mis-defines NULL. */
|
||||
#include <stddef.h>
|
||||
|
||||
@ -229,7 +234,7 @@ _GL_CXXALIAS_SYS (newlocale, locale_t,
|
||||
(int category_mask, const char *name, locale_t base));
|
||||
# endif
|
||||
# endif
|
||||
# if @HAVE_NEWLOCALE@
|
||||
# if __GLIBC__ >= 2 && @HAVE_NEWLOCALE@
|
||||
_GL_CXXALIASWARN (newlocale);
|
||||
# endif
|
||||
# if @HAVE_NEWLOCALE@ || @REPLACE_NEWLOCALE@
|
||||
@ -245,23 +250,23 @@ _GL_WARN_ON_USE (newlocale, "newlocale is not portable");
|
||||
#endif
|
||||
|
||||
#if @GNULIB_DUPLOCALE@ || (@GNULIB_LOCALENAME@ && @LOCALENAME_ENHANCE_LOCALE_FUNCS@ && @HAVE_DUPLOCALE@)
|
||||
# if @REPLACE_DUPLOCALE@
|
||||
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
|
||||
# undef duplocale
|
||||
# define duplocale rpl_duplocale
|
||||
# define GNULIB_defined_duplocale 1
|
||||
# endif
|
||||
# if @HAVE_DUPLOCALE@ /* locale_t may be undefined if !@HAVE_DUPLOCALE@. */
|
||||
# if @REPLACE_DUPLOCALE@
|
||||
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
|
||||
# undef duplocale
|
||||
# define duplocale rpl_duplocale
|
||||
# define GNULIB_defined_duplocale 1
|
||||
# endif
|
||||
_GL_FUNCDECL_RPL (duplocale, locale_t, (locale_t locale) _GL_ARG_NONNULL ((1)));
|
||||
_GL_CXXALIAS_RPL (duplocale, locale_t, (locale_t locale));
|
||||
# else
|
||||
# if @HAVE_DUPLOCALE@
|
||||
# else
|
||||
_GL_CXXALIAS_SYS (duplocale, locale_t, (locale_t locale));
|
||||
# endif
|
||||
# endif
|
||||
# if @HAVE_DUPLOCALE@
|
||||
# if __GLIBC__ >= 2 && @HAVE_DUPLOCALE@
|
||||
_GL_CXXALIASWARN (duplocale);
|
||||
# endif
|
||||
# if @HAVE_DUPLOCALE@ || @REPLACE_DUPLOCALE@
|
||||
# if @HAVE_DUPLOCALE@
|
||||
# ifndef HAVE_WORKING_DUPLOCALE
|
||||
# define HAVE_WORKING_DUPLOCALE 1
|
||||
# endif
|
||||
@ -290,7 +295,7 @@ _GL_CXXALIAS_RPL (freelocale, void, (locale_t locale));
|
||||
_GL_CXXALIAS_SYS_CAST (freelocale, void, (locale_t locale));
|
||||
# endif
|
||||
# endif
|
||||
# if @HAVE_FREELOCALE@
|
||||
# if __GLIBC__ >= 2 && @HAVE_FREELOCALE@
|
||||
_GL_CXXALIASWARN (freelocale);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Convert multibyte character to wide character.
|
||||
Copyright (C) 1999-2002, 2005-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 1999-2002, 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 Lesser General Public License as
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Convert multibyte character to wide character.
|
||||
Copyright (C) 1999-2002, 2005-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 1999-2002, 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 Lesser General Public License as
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Convert multibyte character to wide character.
|
||||
Copyright (C) 1999-2002, 2005-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 1999-2002, 2005-2024 Free Software Foundation, Inc.
|
||||
Written by Bruno Haible <bruno@clisp.org>, 2008.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
@ -28,7 +28,11 @@
|
||||
# include <stdint.h>
|
||||
# include <stdlib.h>
|
||||
|
||||
# if defined _WIN32 && !defined __CYGWIN__
|
||||
# if AVOID_ANY_THREADS
|
||||
|
||||
/* The option '--disable-threads' explicitly requests no locking. */
|
||||
|
||||
# elif defined _WIN32 && !defined __CYGWIN__
|
||||
|
||||
# define WIN32_LEAN_AND_MEAN /* avoid including junk */
|
||||
# include <windows.h>
|
||||
@ -51,11 +55,10 @@
|
||||
# endif
|
||||
|
||||
# include "attribute.h"
|
||||
# include "verify.h"
|
||||
# include "lc-charset-dispatch.h"
|
||||
# include "mbtowc-lock.h"
|
||||
|
||||
verify (sizeof (mbstate_t) >= 4);
|
||||
static_assert (sizeof (mbstate_t) >= 4);
|
||||
static char internal_state[4];
|
||||
|
||||
size_t
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Test for initial conversion state.
|
||||
Copyright (C) 2008-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2008-2024 Free Software Foundation, Inc.
|
||||
Written by Bruno Haible <bruno@clisp.org>, 2008.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
@ -20,7 +20,6 @@
|
||||
/* Specification. */
|
||||
#include <wchar.h>
|
||||
|
||||
#include "verify.h"
|
||||
|
||||
#if GNULIB_defined_mbstate_t
|
||||
|
||||
@ -37,9 +36,9 @@
|
||||
buffered bytes (in the range 0..3), followed by up to 3 buffered bytes.
|
||||
See mbrtowc.c.
|
||||
- In wc -> mb direction, mbstate_t contains no information. In other
|
||||
words, it is always in the initial state. */
|
||||
words, it is always in an initial state. */
|
||||
|
||||
verify (sizeof (mbstate_t) >= 4);
|
||||
static_assert (sizeof (mbstate_t) >= 4);
|
||||
|
||||
int
|
||||
mbsinit (const mbstate_t *ps)
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Convert string to wide string.
|
||||
Copyright (C) 2008-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2008-2024 Free Software Foundation, Inc.
|
||||
Written by Bruno Haible <bruno@clisp.org>, 2008.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
@ -61,7 +61,8 @@ FUNC (DCHAR_T *dest, const char **srcp, size_t len, mbstate_t *ps)
|
||||
/* Here mbsinit (ps). */
|
||||
break;
|
||||
}
|
||||
src += ret;
|
||||
if (!(USES_C32 && ret == (size_t)(-3)))
|
||||
src += ret;
|
||||
}
|
||||
|
||||
*srcp = src;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Convert string to wide string.
|
||||
Copyright (C) 2008-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2008-2024 Free Software Foundation, Inc.
|
||||
Written by Bruno Haible <bruno@clisp.org>, 2008.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
@ -21,7 +21,7 @@
|
||||
|
||||
/* Internal state used by the functions mbsrtowcs() and mbsnrtowcs(). */
|
||||
mbstate_t _gl_mbsrtowcs_state
|
||||
/* The state must initially be in the "initial state"; so, zero-initialize it.
|
||||
/* The state must initially be in an "initial state"; so, zero-initialize it.
|
||||
On most systems, putting it into BSS is sufficient. Not so on Mac OS X 10.3,
|
||||
see <https://lists.gnu.org/r/bug-gnulib/2009-01/msg00329.html>.
|
||||
When it needs an initializer, use 0 or {0} as initializer? 0 only works
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Convert string to wide string.
|
||||
Copyright (C) 2008-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2008-2024 Free Software Foundation, Inc.
|
||||
Written by Bruno Haible <bruno@clisp.org>, 2008.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
@ -33,4 +33,5 @@ extern mbstate_t _gl_mbsrtowcs_state;
|
||||
#define DCHAR_T wchar_t
|
||||
#define INTERNAL_STATE _gl_mbsrtowcs_state
|
||||
#define MBRTOWC mbrtowc
|
||||
#define USES_C32 0
|
||||
#include "mbsrtowcs-impl.h"
|
||||
|
23
lib/mbszero.c
Normal file
23
lib/mbszero.c
Normal file
@ -0,0 +1,23 @@
|
||||
/* Put an mbstate_t into an initial conversion state.
|
||||
Copyright (C) 2023-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
published by the Free Software Foundation; either version 2.1 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 Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>. */
|
||||
|
||||
/* Written by Bruno Haible <bruno@clisp.org>, 2023. */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#define IN_MBSZERO
|
||||
/* Specification and implementation. */
|
||||
#include <wchar.h>
|
@ -1,5 +1,5 @@
|
||||
/* Convert multibyte character to wide character.
|
||||
Copyright (C) 2011-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2011-2024 Free Software Foundation, Inc.
|
||||
Written by Bruno Haible <bruno@clisp.org>, 2011.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
@ -30,7 +30,7 @@ mbtowc (wchar_t *pwc, const char *s, size_t n)
|
||||
wchar_t wc;
|
||||
size_t result;
|
||||
|
||||
memset (&state, 0, sizeof (mbstate_t));
|
||||
mbszero (&state);
|
||||
result = mbrtowc (&wc, s, n, &state);
|
||||
if (result == (size_t)-1 || result == (size_t)-2)
|
||||
{
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Return the internal lock used by mbrtowc and mbrtoc32.
|
||||
Copyright (C) 2019-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2019-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
@ -18,9 +18,10 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
/* The option '--disable-threads' explicitly requests no locking. */
|
||||
/* When it is known that the gl_get_mbtowc_lock function is defined
|
||||
by a dependency library, it should not be defined here. */
|
||||
#if OMIT_MBTOWC_LOCK
|
||||
#if AVOID_ANY_THREADS || OMIT_MBTOWC_LOCK
|
||||
|
||||
/* This declaration is solely to ensure that after preprocessing
|
||||
this file is never empty. */
|
||||
@ -37,14 +38,14 @@ typedef int dummy;
|
||||
|
||||
/* Macro for exporting a symbol (function, not variable) defined in this file,
|
||||
when compiled into a shared library. */
|
||||
# ifndef DLL_EXPORTED
|
||||
# ifndef SHLIB_EXPORTED
|
||||
# if HAVE_VISIBILITY
|
||||
/* Override the effect of the compiler option '-fvisibility=hidden'. */
|
||||
# define DLL_EXPORTED __attribute__((__visibility__("default")))
|
||||
# define SHLIB_EXPORTED __attribute__((__visibility__("default")))
|
||||
# elif defined _WIN32 || defined __CYGWIN__
|
||||
# define DLL_EXPORTED __declspec(dllexport)
|
||||
# define SHLIB_EXPORTED __declspec(dllexport)
|
||||
# else
|
||||
# define DLL_EXPORTED
|
||||
# define SHLIB_EXPORTED
|
||||
# endif
|
||||
# endif
|
||||
|
||||
@ -59,7 +60,7 @@ typedef int dummy;
|
||||
because the latter is not guaranteed to be a stable ABI in the future. */
|
||||
|
||||
/* Make sure the function gets exported from DLLs. */
|
||||
DLL_EXPORTED CRITICAL_SECTION *gl_get_mbtowc_lock (void);
|
||||
SHLIB_EXPORTED CRITICAL_SECTION *gl_get_mbtowc_lock (void);
|
||||
|
||||
static glwthread_initguard_t guard = GLWTHREAD_INITGUARD_INIT;
|
||||
static CRITICAL_SECTION lock;
|
||||
@ -96,7 +97,7 @@ gl_get_mbtowc_lock (void)
|
||||
static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
|
||||
|
||||
/* Make sure the function gets exported from shared libraries. */
|
||||
DLL_EXPORTED pthread_mutex_t *gl_get_mbtowc_lock (void);
|
||||
SHLIB_EXPORTED pthread_mutex_t *gl_get_mbtowc_lock (void);
|
||||
|
||||
/* Returns the internal lock used by mbrtowc and mbrtoc32. */
|
||||
pthread_mutex_t *
|
||||
@ -123,7 +124,7 @@ atomic_init (void)
|
||||
}
|
||||
|
||||
/* Make sure the function gets exported from shared libraries. */
|
||||
DLL_EXPORTED mtx_t *gl_get_mbtowc_lock (void);
|
||||
SHLIB_EXPORTED mtx_t *gl_get_mbtowc_lock (void);
|
||||
|
||||
/* Returns the internal lock used by mbrtowc and mbrtoc32. */
|
||||
mtx_t *
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Use the internal lock used by mbrtowc and mbrtoc32.
|
||||
Copyright (C) 2019-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2019-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
@ -21,7 +21,7 @@
|
||||
static inline int
|
||||
mbtowc_unlocked (wchar_t *pwc, const char *p, size_t m)
|
||||
{
|
||||
/* Put the hidden internal state of mbtowc into its initial state.
|
||||
/* Put the hidden internal state of mbtowc into an initial state.
|
||||
This is needed at least with glibc, uClibc, and MSVC CRT.
|
||||
See <https://sourceware.org/bugzilla/show_bug.cgi?id=9674>. */
|
||||
mbtowc (NULL, NULL, 0);
|
||||
@ -32,7 +32,7 @@ mbtowc_unlocked (wchar_t *pwc, const char *p, size_t m)
|
||||
/* Prohibit renaming this symbol. */
|
||||
#undef gl_get_mbtowc_lock
|
||||
|
||||
#if GNULIB_MBRTOWC_SINGLE_THREAD
|
||||
#if AVOID_ANY_THREADS || GNULIB_MBRTOWC_SINGLE_THREAD
|
||||
|
||||
/* All uses of this function are in a single thread. No locking needed. */
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Convert multibyte character to wide character.
|
||||
Copyright (C) 2011-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2011-2024 Free Software Foundation, Inc.
|
||||
Written by Bruno Haible <bruno@clisp.org>, 2011.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1991, 1993, 1996-1997, 1999-2000, 2003-2004, 2006, 2008-2022
|
||||
/* Copyright (C) 1991, 1993, 1996-1997, 1999-2000, 2003-2004, 2006, 2008-2024
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Based on strlen implementation by Torbjorn Granlund (tege@sics.se),
|
||||
|
@ -1,6 +1,6 @@
|
||||
# Suppress a valgrind message about use of uninitialized memory in memchr().
|
||||
|
||||
# Copyright (C) 2009-2022 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2009-2024 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Lesser General Public License as
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Wrapper around <monetary.h>.
|
||||
Copyright (C) 2017-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2017-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
@ -29,6 +29,11 @@
|
||||
#ifndef _@GUARD_PREFIX@_MONETARY_H
|
||||
#define _@GUARD_PREFIX@_MONETARY_H
|
||||
|
||||
/* This file uses _GL_ATTRIBUTE_FORMAT, GNULIB_POSIXCHECK, HAVE_RAW_DECL_*. */
|
||||
#if !_GL_CONFIG_H_INCLUDED
|
||||
#error "Please include config.h first."
|
||||
#endif
|
||||
|
||||
#if @GNULIB_STRFMON_L@
|
||||
# if @HAVE_XLOCALE_H@
|
||||
/* Get locale_t on Mac OS X 10.12. */
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Return the internal lock used by setlocale_null_r.
|
||||
Copyright (C) 2019-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2019-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
@ -18,9 +18,10 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
/* The option '--disable-threads' explicitly requests no locking. */
|
||||
/* When it is known that the gl_get_setlocale_null_lock function is defined
|
||||
by a dependency library, it should not be defined here. */
|
||||
#if OMIT_SETLOCALE_LOCK
|
||||
#if AVOID_ANY_THREADS || OMIT_SETLOCALE_LOCK
|
||||
|
||||
/* This declaration is solely to ensure that after preprocessing
|
||||
this file is never empty. */
|
||||
@ -37,14 +38,14 @@ typedef int dummy;
|
||||
|
||||
/* Macro for exporting a symbol (function, not variable) defined in this file,
|
||||
when compiled into a shared library. */
|
||||
# ifndef DLL_EXPORTED
|
||||
# ifndef SHLIB_EXPORTED
|
||||
# if HAVE_VISIBILITY
|
||||
/* Override the effect of the compiler option '-fvisibility=hidden'. */
|
||||
# define DLL_EXPORTED __attribute__((__visibility__("default")))
|
||||
# define SHLIB_EXPORTED __attribute__((__visibility__("default")))
|
||||
# elif defined _WIN32 || defined __CYGWIN__
|
||||
# define DLL_EXPORTED __declspec(dllexport)
|
||||
# define SHLIB_EXPORTED __declspec(dllexport)
|
||||
# else
|
||||
# define DLL_EXPORTED
|
||||
# define SHLIB_EXPORTED
|
||||
# endif
|
||||
# endif
|
||||
|
||||
@ -59,7 +60,7 @@ typedef int dummy;
|
||||
because the latter is not guaranteed to be a stable ABI in the future. */
|
||||
|
||||
/* Make sure the function gets exported from DLLs. */
|
||||
DLL_EXPORTED CRITICAL_SECTION *gl_get_setlocale_null_lock (void);
|
||||
SHLIB_EXPORTED CRITICAL_SECTION *gl_get_setlocale_null_lock (void);
|
||||
|
||||
static glwthread_initguard_t guard = GLWTHREAD_INITGUARD_INIT;
|
||||
static CRITICAL_SECTION lock;
|
||||
@ -96,7 +97,7 @@ gl_get_setlocale_null_lock (void)
|
||||
static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
|
||||
|
||||
/* Make sure the function gets exported from shared libraries. */
|
||||
DLL_EXPORTED pthread_mutex_t *gl_get_setlocale_null_lock (void);
|
||||
SHLIB_EXPORTED pthread_mutex_t *gl_get_setlocale_null_lock (void);
|
||||
|
||||
/* Returns the internal lock used by setlocale_null_r. */
|
||||
pthread_mutex_t *
|
||||
@ -123,7 +124,7 @@ atomic_init (void)
|
||||
}
|
||||
|
||||
/* Make sure the function gets exported from shared libraries. */
|
||||
DLL_EXPORTED mtx_t *gl_get_setlocale_null_lock (void);
|
||||
SHLIB_EXPORTED mtx_t *gl_get_setlocale_null_lock (void);
|
||||
|
||||
/* Returns the internal lock used by setlocale_null_r. */
|
||||
mtx_t *
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Query the name of the current global locale.
|
||||
Copyright (C) 2019-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2019-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
@ -30,7 +30,12 @@
|
||||
#endif
|
||||
|
||||
#if !(SETLOCALE_NULL_ALL_MTSAFE && SETLOCALE_NULL_ONE_MTSAFE)
|
||||
# if defined _WIN32 && !defined __CYGWIN__
|
||||
|
||||
# if AVOID_ANY_THREADS
|
||||
|
||||
/* The option '--disable-threads' explicitly requests no locking. */
|
||||
|
||||
# elif defined _WIN32 && !defined __CYGWIN__
|
||||
|
||||
# define WIN32_LEAN_AND_MEAN /* avoid including junk */
|
||||
# include <windows.h>
|
||||
@ -51,6 +56,7 @@
|
||||
# include <threads.h>
|
||||
|
||||
# endif
|
||||
|
||||
#endif
|
||||
|
||||
/* Use the system's setlocale() function, not the gnulib override, here. */
|
||||
@ -173,7 +179,7 @@ setlocale_null_unlocked (int category, char *buf, size_t bufsize)
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !(SETLOCALE_NULL_ALL_MTSAFE && SETLOCALE_NULL_ONE_MTSAFE) /* musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Haiku, Cygwin */
|
||||
#if !(SETLOCALE_NULL_ALL_MTSAFE && SETLOCALE_NULL_ONE_MTSAFE) /* musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Haiku, Cygwin < 3.4.6 */
|
||||
|
||||
/* Use a lock, so that no two threads can invoke setlocale_null_unlocked
|
||||
at the same time. */
|
||||
@ -181,7 +187,12 @@ setlocale_null_unlocked (int category, char *buf, size_t bufsize)
|
||||
/* Prohibit renaming this symbol. */
|
||||
# undef gl_get_setlocale_null_lock
|
||||
|
||||
# if defined _WIN32 && !defined __CYGWIN__
|
||||
# if AVOID_ANY_THREADS
|
||||
|
||||
/* The option '--disable-threads' explicitly requests no locking. */
|
||||
# define setlocale_null_with_lock setlocale_null_unlocked
|
||||
|
||||
# elif defined _WIN32 && !defined __CYGWIN__
|
||||
|
||||
extern __declspec(dllimport) CRITICAL_SECTION *gl_get_setlocale_null_lock (void);
|
||||
|
||||
@ -198,7 +209,7 @@ setlocale_null_with_lock (int category, char *buf, size_t bufsize)
|
||||
return ret;
|
||||
}
|
||||
|
||||
# elif HAVE_PTHREAD_API /* musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Haiku, Cygwin */
|
||||
# elif HAVE_PTHREAD_API /* musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Haiku, Cygwin < 3.4.6 */
|
||||
|
||||
extern
|
||||
# if defined _WIN32 || defined __CYGWIN__
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Query the name of the current global locale.
|
||||
Copyright (C) 2019-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2019-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
|
132
lib/stdbool.in.h
132
lib/stdbool.in.h
@ -1,132 +0,0 @@
|
||||
/* Copyright (C) 2001-2003, 2006-2022 Free Software Foundation, Inc.
|
||||
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
published by the Free Software Foundation; either version 2.1 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 Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>. */
|
||||
|
||||
#ifndef _GL_STDBOOL_H
|
||||
#define _GL_STDBOOL_H
|
||||
|
||||
/* ISO C 99 <stdbool.h> for platforms that lack it. */
|
||||
|
||||
/* Usage suggestions:
|
||||
|
||||
Programs that use <stdbool.h> should be aware of some limitations
|
||||
and standards compliance issues.
|
||||
|
||||
Standards compliance:
|
||||
|
||||
- <stdbool.h> must be #included before 'bool', 'false', 'true'
|
||||
can be used.
|
||||
|
||||
- You cannot assume that sizeof (bool) == 1.
|
||||
|
||||
- Programs should not undefine the macros bool, true, and false,
|
||||
as C99 lists that as an "obsolescent feature".
|
||||
|
||||
Limitations of this substitute, when used in a C89 environment:
|
||||
|
||||
- <stdbool.h> must be #included before the '_Bool' type can be used.
|
||||
|
||||
- You cannot assume that _Bool is a typedef; it might be a macro.
|
||||
|
||||
- Bit-fields of type 'bool' are not supported. Portable code
|
||||
should use 'unsigned int foo : 1;' rather than 'bool foo : 1;'.
|
||||
|
||||
- In C99, casts and automatic conversions to '_Bool' or 'bool' are
|
||||
performed in such a way that every nonzero value gets converted
|
||||
to 'true', and zero gets converted to 'false'. This doesn't work
|
||||
with this substitute. With this substitute, only the values 0 and 1
|
||||
give the expected result when converted to _Bool' or 'bool'.
|
||||
|
||||
- C99 allows the use of (_Bool)0.0 in constant expressions, but
|
||||
this substitute cannot always provide this property.
|
||||
|
||||
Also, it is suggested that programs use 'bool' rather than '_Bool';
|
||||
this isn't required, but 'bool' is more common. */
|
||||
|
||||
|
||||
/* 7.16. Boolean type and values */
|
||||
|
||||
/* BeOS <sys/socket.h> already #defines false 0, true 1. We use the same
|
||||
definitions below, but temporarily we have to #undef them. */
|
||||
#if defined __BEOS__ && !defined __HAIKU__
|
||||
# include <OS.h> /* defines bool but not _Bool */
|
||||
# undef false
|
||||
# undef true
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
# define _Bool bool
|
||||
# define bool bool
|
||||
#else
|
||||
# if defined __BEOS__ && !defined __HAIKU__
|
||||
/* A compiler known to have 'bool'. */
|
||||
/* If the compiler already has both 'bool' and '_Bool', we can assume they
|
||||
are the same types. */
|
||||
# if !@HAVE__BOOL@
|
||||
typedef bool _Bool;
|
||||
# endif
|
||||
# else
|
||||
# if !defined __GNUC__
|
||||
/* If @HAVE__BOOL@:
|
||||
Some HP-UX cc and AIX IBM C compiler versions have compiler bugs when
|
||||
the built-in _Bool type is used. See
|
||||
https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
|
||||
https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
|
||||
https://lists.gnu.org/r/bug-coreutils/2005-10/msg00086.html
|
||||
Similar bugs are likely with other compilers as well; this file
|
||||
wouldn't be used if <stdbool.h> was working.
|
||||
So we override the _Bool type.
|
||||
If !@HAVE__BOOL@:
|
||||
Need to define _Bool ourselves. As 'signed char' or as an enum type?
|
||||
Use of a typedef, with SunPRO C, leads to a stupid
|
||||
"warning: _Bool is a keyword in ISO C99".
|
||||
Use of an enum type, with IRIX cc, leads to a stupid
|
||||
"warning(1185): enumerated type mixed with another type".
|
||||
Even the existence of an enum type, without a typedef,
|
||||
"Invalid enumerator. (badenum)" with HP-UX cc on Tru64.
|
||||
The only benefit of the enum, debuggability, is not important
|
||||
with these compilers. So use 'signed char' and no enum. */
|
||||
# define _Bool signed char
|
||||
# else
|
||||
/* With this compiler, trust the _Bool type if the compiler has it. */
|
||||
# if !@HAVE__BOOL@
|
||||
/* For the sake of symbolic names in gdb, define true and false as
|
||||
enum constants, not only as macros.
|
||||
It is tempting to write
|
||||
typedef enum { false = 0, true = 1 } _Bool;
|
||||
so that gdb prints values of type 'bool' symbolically. But then
|
||||
values of type '_Bool' might promote to 'int' or 'unsigned int'
|
||||
(see ISO C 99 6.7.2.2.(4)); however, '_Bool' must promote to 'int'
|
||||
(see ISO C 99 6.3.1.1.(2)). So add a negative value to the
|
||||
enum; this ensures that '_Bool' promotes to 'int'. */
|
||||
typedef enum { _Bool_must_promote_to_int = -1, false = 0, true = 1 } _Bool;
|
||||
# endif
|
||||
# endif
|
||||
# endif
|
||||
# define bool _Bool
|
||||
#endif
|
||||
|
||||
/* The other macros must be usable in preprocessor directives. */
|
||||
#ifdef __cplusplus
|
||||
# define false false
|
||||
# define true true
|
||||
#else
|
||||
# define false 0
|
||||
# define true 1
|
||||
#endif
|
||||
|
||||
#define __bool_true_false_are_defined 1
|
||||
|
||||
#endif /* _GL_STDBOOL_H */
|
@ -1,6 +1,6 @@
|
||||
/* A substitute for POSIX 2008 <stddef.h>, for platforms that have issues.
|
||||
|
||||
Copyright (C) 2009-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2009-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
@ -18,7 +18,7 @@
|
||||
/* Written by Eric Blake. */
|
||||
|
||||
/*
|
||||
* POSIX 2008 <stddef.h> for platforms that have issues.
|
||||
* POSIX 2008 and ISO C 23 <stddef.h> for platforms that have issues.
|
||||
* <https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stddef.h.html>
|
||||
*/
|
||||
|
||||
@ -37,9 +37,9 @@
|
||||
remember if special invocation has ever been used to obtain wint_t,
|
||||
in which case we need to clean up NULL yet again. */
|
||||
|
||||
# if !(defined _@GUARD_PREFIX@_STDDEF_H && defined _GL_STDDEF_WINT_T)
|
||||
# if !(defined _@GUARD_PREFIX@_STDDEF_H && defined _@GUARD_PREFIX@_STDDEF_WINT_T)
|
||||
# ifdef __need_wint_t
|
||||
# define _GL_STDDEF_WINT_T
|
||||
# define _@GUARD_PREFIX@_STDDEF_WINT_T
|
||||
# endif
|
||||
# @INCLUDE_NEXT@ @NEXT_STDDEF_H@
|
||||
/* On TinyCC, make sure that the macros that indicate the special invocation
|
||||
@ -58,7 +58,7 @@
|
||||
|
||||
/* On AIX 7.2, with xlc in 64-bit mode, <stddef.h> defines max_align_t to a
|
||||
type with alignment 4, but 'long' has alignment 8. */
|
||||
# if defined _AIX && defined __LP64__
|
||||
# if defined _AIX && defined __LP64__ && !@HAVE_MAX_ALIGN_T@
|
||||
# if !GNULIB_defined_max_align_t
|
||||
# ifdef _MAX_ALIGN_T
|
||||
/* /usr/include/stddef.h has already defined max_align_t. Override it. */
|
||||
@ -69,6 +69,7 @@ typedef long rpl_max_align_t;
|
||||
typedef long max_align_t;
|
||||
# define _MAX_ALIGN_T
|
||||
# endif
|
||||
# define __CLANG_MAX_ALIGN_T_DEFINED
|
||||
# define GNULIB_defined_max_align_t 1
|
||||
# endif
|
||||
# endif
|
||||
@ -79,7 +80,7 @@ typedef long max_align_t;
|
||||
|
||||
/* On NetBSD 5.0, the definition of NULL lacks proper parentheses. */
|
||||
# if (@REPLACE_NULL@ \
|
||||
&& (!defined _@GUARD_PREFIX@_STDDEF_H || defined _GL_STDDEF_WINT_T))
|
||||
&& (!defined _@GUARD_PREFIX@_STDDEF_H || defined _@GUARD_PREFIX@_STDDEF_WINT_T))
|
||||
# undef NULL
|
||||
# ifdef __cplusplus
|
||||
/* ISO C++ says that the macro NULL must expand to an integer constant
|
||||
@ -100,6 +101,33 @@ typedef long max_align_t;
|
||||
# ifndef _@GUARD_PREFIX@_STDDEF_H
|
||||
# define _@GUARD_PREFIX@_STDDEF_H
|
||||
|
||||
/* This file uses _Noreturn, _GL_ATTRIBUTE_NOTHROW. */
|
||||
#if !_GL_CONFIG_H_INCLUDED
|
||||
#error "Please include config.h first."
|
||||
#endif
|
||||
|
||||
/* _GL_ATTRIBUTE_NOTHROW declares that the function does not throw exceptions.
|
||||
*/
|
||||
#ifndef _GL_ATTRIBUTE_NOTHROW
|
||||
# if defined __cplusplus
|
||||
# if (__GNUC__ + (__GNUC_MINOR__ >= 8) > 2) || __clang_major >= 4
|
||||
# if __cplusplus >= 201103L
|
||||
# define _GL_ATTRIBUTE_NOTHROW noexcept (true)
|
||||
# else
|
||||
# define _GL_ATTRIBUTE_NOTHROW throw ()
|
||||
# endif
|
||||
# else
|
||||
# define _GL_ATTRIBUTE_NOTHROW
|
||||
# endif
|
||||
# else
|
||||
# if (__GNUC__ + (__GNUC_MINOR__ >= 3) > 3) || defined __clang__
|
||||
# define _GL_ATTRIBUTE_NOTHROW __attribute__ ((__nothrow__))
|
||||
# else
|
||||
# define _GL_ATTRIBUTE_NOTHROW
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* Some platforms lack wchar_t. */
|
||||
#if !@HAVE_WCHAR_T@
|
||||
# define wchar_t int
|
||||
@ -137,11 +165,49 @@ typedef union
|
||||
long int __i _GL_STDDEF_ALIGNAS (long int);
|
||||
} rpl_max_align_t;
|
||||
# define max_align_t rpl_max_align_t
|
||||
# define __CLANG_MAX_ALIGN_T_DEFINED
|
||||
# define GNULIB_defined_max_align_t 1
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* ISO C 23 § 7.21.1 The unreachable macro */
|
||||
#ifndef unreachable
|
||||
|
||||
/* Code borrowed from verify.h. */
|
||||
# ifndef _GL_HAS_BUILTIN_UNREACHABLE
|
||||
# if defined __clang_major__ && __clang_major__ < 5
|
||||
# define _GL_HAS_BUILTIN_UNREACHABLE 0
|
||||
# elif 4 < __GNUC__ + (5 <= __GNUC_MINOR__)
|
||||
# define _GL_HAS_BUILTIN_UNREACHABLE 1
|
||||
# elif defined __has_builtin
|
||||
# define _GL_HAS_BUILTIN_UNREACHABLE __has_builtin (__builtin_unreachable)
|
||||
# else
|
||||
# define _GL_HAS_BUILTIN_UNREACHABLE 0
|
||||
# endif
|
||||
# endif
|
||||
|
||||
# if _GL_HAS_BUILTIN_UNREACHABLE
|
||||
# define unreachable() __builtin_unreachable ()
|
||||
# elif 1200 <= _MSC_VER
|
||||
# define unreachable() __assume (0)
|
||||
# else
|
||||
/* Declare abort(), without including <stdlib.h>. */
|
||||
extern
|
||||
# if defined __cplusplus
|
||||
"C"
|
||||
# endif
|
||||
_Noreturn
|
||||
void abort (void)
|
||||
# if defined __cplusplus && (__GLIBC__ >= 2)
|
||||
_GL_ATTRIBUTE_NOTHROW
|
||||
# endif
|
||||
;
|
||||
# define unreachable() abort ()
|
||||
# endif
|
||||
|
||||
#endif
|
||||
|
||||
# endif /* _@GUARD_PREFIX@_STDDEF_H */
|
||||
# endif /* _@GUARD_PREFIX@_STDDEF_H */
|
||||
#endif /* __need_XXX */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2001-2002, 2004-2022 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 2001-2002, 2004-2024 Free Software Foundation, Inc.
|
||||
Written by Paul Eggert, Bruno Haible, Sam Steingold, Peter Burwood.
|
||||
This file is part of gnulib.
|
||||
|
||||
@ -306,6 +306,8 @@ typedef gl_uint_fast32_t gl_uint_fast16_t;
|
||||
uintptr_t to avoid conflicting declarations of system functions like
|
||||
_findclose in <io.h>. */
|
||||
# if !((defined __KLIBC__ && defined _INTPTR_T_DECLARED) \
|
||||
|| (defined __INTPTR_WIDTH__ \
|
||||
&& __INTPTR_WIDTH__ != (defined _WIN64 ? LLONG_WIDTH : LONG_WIDTH)) \
|
||||
|| defined __MINGW32__)
|
||||
# undef intptr_t
|
||||
# undef uintptr_t
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* POSIX compatible FILE stream read function.
|
||||
Copyright (C) 2008-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2008-2024 Free Software Foundation, Inc.
|
||||
Written by Bruno Haible <bruno@clisp.org>, 2011.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* POSIX compatible FILE stream write function.
|
||||
Copyright (C) 2008-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2008-2024 Free Software Foundation, Inc.
|
||||
Written by Bruno Haible <bruno@clisp.org>, 2008.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
|
156
lib/stdio.in.h
156
lib/stdio.in.h
@ -1,6 +1,6 @@
|
||||
/* A GNU-like <stdio.h>.
|
||||
|
||||
Copyright (C) 2004, 2007-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2004, 2007-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
@ -36,6 +36,18 @@
|
||||
|
||||
#ifndef _@GUARD_PREFIX@_STDIO_H
|
||||
|
||||
/* Suppress macOS deprecation warnings for sprintf and vsprintf. */
|
||||
#if (defined __APPLE__ && defined __MACH__) && !defined _POSIX_C_SOURCE
|
||||
# ifdef __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
|
||||
# include <AvailabilityMacros.h>
|
||||
# endif
|
||||
# if (defined MAC_OS_X_VERSION_MIN_REQUIRED \
|
||||
&& 130000 <= MAC_OS_X_VERSION_MIN_REQUIRED)
|
||||
# define _POSIX_C_SOURCE 200809L
|
||||
# define _GL_DEFINED__POSIX_C_SOURCE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#define _GL_ALREADY_INCLUDING_STDIO_H
|
||||
|
||||
/* The include_next requires a split double-inclusion guard. */
|
||||
@ -43,9 +55,21 @@
|
||||
|
||||
#undef _GL_ALREADY_INCLUDING_STDIO_H
|
||||
|
||||
#ifdef _GL_DEFINED__POSIX_C_SOURCE
|
||||
# undef _GL_DEFINED__POSIX_C_SOURCE
|
||||
# undef _POSIX_C_SOURCE
|
||||
#endif
|
||||
|
||||
#ifndef _@GUARD_PREFIX@_STDIO_H
|
||||
#define _@GUARD_PREFIX@_STDIO_H
|
||||
|
||||
/* This file uses _GL_ATTRIBUTE_DEALLOC, _GL_ATTRIBUTE_FORMAT,
|
||||
_GL_ATTRIBUTE_MALLOC, _GL_ATTRIBUTE_NOTHROW, GNULIB_POSIXCHECK,
|
||||
HAVE_RAW_DECL_*. */
|
||||
#if !_GL_CONFIG_H_INCLUDED
|
||||
#error "Please include config.h first."
|
||||
#endif
|
||||
|
||||
/* Get va_list. Needed on many systems, including glibc 2.8. */
|
||||
#include <stdarg.h>
|
||||
|
||||
@ -116,6 +140,38 @@
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* _GL_ATTRIBUTE_MALLOC declares that the function returns a pointer to freshly
|
||||
allocated memory. */
|
||||
#ifndef _GL_ATTRIBUTE_MALLOC
|
||||
# if __GNUC__ >= 3 || defined __clang__
|
||||
# define _GL_ATTRIBUTE_MALLOC __attribute__ ((__malloc__))
|
||||
# else
|
||||
# define _GL_ATTRIBUTE_MALLOC
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* _GL_ATTRIBUTE_NOTHROW declares that the function does not throw exceptions.
|
||||
*/
|
||||
#ifndef _GL_ATTRIBUTE_NOTHROW
|
||||
# if defined __cplusplus
|
||||
# if (__GNUC__ + (__GNUC_MINOR__ >= 8) > 2) || __clang_major >= 4
|
||||
# if __cplusplus >= 201103L
|
||||
# define _GL_ATTRIBUTE_NOTHROW noexcept (true)
|
||||
# else
|
||||
# define _GL_ATTRIBUTE_NOTHROW throw ()
|
||||
# endif
|
||||
# else
|
||||
# define _GL_ATTRIBUTE_NOTHROW
|
||||
# endif
|
||||
# else
|
||||
# if (__GNUC__ + (__GNUC_MINOR__ >= 3) > 3) || defined __clang__
|
||||
# define _GL_ATTRIBUTE_NOTHROW __attribute__ ((__nothrow__))
|
||||
# else
|
||||
# define _GL_ATTRIBUTE_NOTHROW
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* An __attribute__ __format__ specifier for a function that takes a format
|
||||
string and arguments, where the format string directives are the ones
|
||||
standardized by ISO C99 and POSIX.
|
||||
@ -193,6 +249,36 @@
|
||||
# undef putc_unlocked
|
||||
#endif
|
||||
|
||||
|
||||
/* Maximum number of characters produced by printing a NaN value. */
|
||||
#ifndef _PRINTF_NAN_LEN_MAX
|
||||
# if defined __FreeBSD__ || defined __DragonFly__ \
|
||||
|| defined __NetBSD__ \
|
||||
|| (defined __APPLE__ && defined __MACH__)
|
||||
/* On BSD systems, a NaN value prints as just "nan", without a sign. */
|
||||
# define _PRINTF_NAN_LEN_MAX 3
|
||||
# elif (__GLIBC__ >= 2) || MUSL_LIBC || defined __OpenBSD__ || defined __sun || defined __CYGWIN__
|
||||
/* glibc, musl libc, OpenBSD, Solaris libc, and Cygwin produce "[-]nan". */
|
||||
# define _PRINTF_NAN_LEN_MAX 4
|
||||
# elif defined _AIX
|
||||
/* AIX produces "[-]NaNQ". */
|
||||
# define _PRINTF_NAN_LEN_MAX 5
|
||||
# elif defined _WIN32 && !defined __CYGWIN__
|
||||
/* On native Windows, the output can be:
|
||||
- with MSVC ucrt: "[-]nan" or "[-]nan(ind)" or "[-]nan(snan)",
|
||||
- with mingw: "[-]1.#IND" or "[-]1.#QNAN". */
|
||||
# define _PRINTF_NAN_LEN_MAX 10
|
||||
# elif defined __sgi
|
||||
/* On IRIX, the output typically is "[-]nan0xNNNNNNNN" with 8 hexadecimal
|
||||
digits. */
|
||||
# define _PRINTF_NAN_LEN_MAX 14
|
||||
# else
|
||||
/* We don't know, but 32 should be a safe maximum. */
|
||||
# define _PRINTF_NAN_LEN_MAX 32
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
||||
#if @GNULIB_DPRINTF@
|
||||
# if @REPLACE_DPRINTF@
|
||||
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
|
||||
@ -210,7 +296,9 @@ _GL_FUNCDECL_SYS (dprintf, int, (int fd, const char *restrict format, ...)
|
||||
# endif
|
||||
_GL_CXXALIAS_SYS (dprintf, int, (int fd, const char *restrict format, ...));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (dprintf);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
# undef dprintf
|
||||
# if HAVE_RAW_DECL_DPRINTF
|
||||
@ -273,7 +361,8 @@ _GL_CXXALIASWARN (fcloseall);
|
||||
# endif
|
||||
_GL_FUNCDECL_RPL (fdopen, FILE *,
|
||||
(int fd, const char *mode)
|
||||
_GL_ARG_NONNULL ((2)) _GL_ATTRIBUTE_DEALLOC (fclose, 1));
|
||||
_GL_ARG_NONNULL ((2)) _GL_ATTRIBUTE_DEALLOC (fclose, 1)
|
||||
_GL_ATTRIBUTE_MALLOC);
|
||||
_GL_CXXALIAS_RPL (fdopen, FILE *, (int fd, const char *mode));
|
||||
# elif defined _WIN32 && !defined __CYGWIN__
|
||||
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
|
||||
@ -284,9 +373,18 @@ _GL_CXXALIAS_MDA (fdopen, FILE *, (int fd, const char *mode));
|
||||
# else
|
||||
# if __GNUC__ >= 11
|
||||
/* For -Wmismatched-dealloc: Associate fdopen with fclose or rpl_fclose. */
|
||||
# if __GLIBC__ + (__GLIBC_MINOR__ >= 2) > 2
|
||||
_GL_FUNCDECL_SYS (fdopen, FILE *,
|
||||
(int fd, const char *mode)
|
||||
_GL_ARG_NONNULL ((2)) _GL_ATTRIBUTE_DEALLOC (fclose, 1));
|
||||
_GL_ATTRIBUTE_NOTHROW
|
||||
_GL_ARG_NONNULL ((2)) _GL_ATTRIBUTE_DEALLOC (fclose, 1)
|
||||
_GL_ATTRIBUTE_MALLOC);
|
||||
# else
|
||||
_GL_FUNCDECL_SYS (fdopen, FILE *,
|
||||
(int fd, const char *mode)
|
||||
_GL_ARG_NONNULL ((2)) _GL_ATTRIBUTE_DEALLOC (fclose, 1)
|
||||
_GL_ATTRIBUTE_MALLOC);
|
||||
# endif
|
||||
# endif
|
||||
_GL_CXXALIAS_SYS (fdopen, FILE *, (int fd, const char *mode));
|
||||
# endif
|
||||
@ -294,9 +392,18 @@ _GL_CXXALIASWARN (fdopen);
|
||||
#else
|
||||
# if @GNULIB_FCLOSE@ && __GNUC__ >= 11 && !defined fdopen
|
||||
/* For -Wmismatched-dealloc: Associate fdopen with fclose or rpl_fclose. */
|
||||
# if __GLIBC__ + (__GLIBC_MINOR__ >= 2) > 2
|
||||
_GL_FUNCDECL_SYS (fdopen, FILE *,
|
||||
(int fd, const char *mode)
|
||||
_GL_ARG_NONNULL ((2)) _GL_ATTRIBUTE_DEALLOC (fclose, 1));
|
||||
_GL_ATTRIBUTE_NOTHROW
|
||||
_GL_ARG_NONNULL ((2)) _GL_ATTRIBUTE_DEALLOC (fclose, 1)
|
||||
_GL_ATTRIBUTE_MALLOC);
|
||||
# else
|
||||
_GL_FUNCDECL_SYS (fdopen, FILE *,
|
||||
(int fd, const char *mode)
|
||||
_GL_ARG_NONNULL ((2)) _GL_ATTRIBUTE_DEALLOC (fclose, 1)
|
||||
_GL_ATTRIBUTE_MALLOC);
|
||||
# endif
|
||||
# endif
|
||||
# if defined GNULIB_POSIXCHECK
|
||||
# undef fdopen
|
||||
@ -407,7 +514,8 @@ _GL_CXXALIASWARN (fileno);
|
||||
# endif
|
||||
_GL_FUNCDECL_RPL (fopen, FILE *,
|
||||
(const char *restrict filename, const char *restrict mode)
|
||||
_GL_ARG_NONNULL ((1, 2)) _GL_ATTRIBUTE_DEALLOC (fclose, 1));
|
||||
_GL_ARG_NONNULL ((1, 2)) _GL_ATTRIBUTE_DEALLOC (fclose, 1)
|
||||
_GL_ATTRIBUTE_MALLOC);
|
||||
_GL_CXXALIAS_RPL (fopen, FILE *,
|
||||
(const char *restrict filename, const char *restrict mode));
|
||||
# else
|
||||
@ -882,7 +990,9 @@ _GL_CXXALIAS_SYS (getdelim, ssize_t,
|
||||
int delimiter,
|
||||
FILE *restrict stream));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (getdelim);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
# undef getdelim
|
||||
# if HAVE_RAW_DECL_GETDELIM
|
||||
@ -921,7 +1031,7 @@ _GL_CXXALIAS_SYS (getline, ssize_t,
|
||||
(char **restrict lineptr, size_t *restrict linesize,
|
||||
FILE *restrict stream));
|
||||
# endif
|
||||
# if @HAVE_DECL_GETLINE@
|
||||
# if __GLIBC__ >= 2 && @HAVE_DECL_GETLINE@
|
||||
_GL_CXXALIASWARN (getline);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
@ -951,9 +1061,17 @@ _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
|
||||
# endif
|
||||
_GL_CXXALIAS_MDA (getw, int, (FILE *restrict stream));
|
||||
# else
|
||||
# if @HAVE_DECL_GETW@
|
||||
# if defined __APPLE__ && defined __MACH__
|
||||
/* The presence of the declaration depends on _POSIX_C_SOURCE. */
|
||||
_GL_FUNCDECL_SYS (getw, int, (FILE *restrict stream));
|
||||
# endif
|
||||
_GL_CXXALIAS_SYS (getw, int, (FILE *restrict stream));
|
||||
# endif
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (getw);
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@
|
||||
@ -1052,13 +1170,15 @@ _GL_WARN_ON_USE (perror, "perror is not always POSIX compliant - "
|
||||
# endif
|
||||
_GL_FUNCDECL_RPL (popen, FILE *,
|
||||
(const char *cmd, const char *mode)
|
||||
_GL_ARG_NONNULL ((1, 2)) _GL_ATTRIBUTE_DEALLOC (pclose, 1));
|
||||
_GL_ARG_NONNULL ((1, 2)) _GL_ATTRIBUTE_DEALLOC (pclose, 1)
|
||||
_GL_ATTRIBUTE_MALLOC);
|
||||
_GL_CXXALIAS_RPL (popen, FILE *, (const char *cmd, const char *mode));
|
||||
# else
|
||||
# if !@HAVE_POPEN@ || __GNUC__ >= 11
|
||||
_GL_FUNCDECL_SYS (popen, FILE *,
|
||||
(const char *cmd, const char *mode)
|
||||
_GL_ARG_NONNULL ((1, 2)) _GL_ATTRIBUTE_DEALLOC (pclose, 1));
|
||||
_GL_ARG_NONNULL ((1, 2)) _GL_ATTRIBUTE_DEALLOC (pclose, 1)
|
||||
_GL_ATTRIBUTE_MALLOC);
|
||||
# endif
|
||||
_GL_CXXALIAS_SYS (popen, FILE *, (const char *cmd, const char *mode));
|
||||
# endif
|
||||
@ -1068,7 +1188,8 @@ _GL_CXXALIASWARN (popen);
|
||||
/* For -Wmismatched-dealloc: Associate popen with pclose or rpl_pclose. */
|
||||
_GL_FUNCDECL_SYS (popen, FILE *,
|
||||
(const char *cmd, const char *mode)
|
||||
_GL_ARG_NONNULL ((1, 2)) _GL_ATTRIBUTE_DEALLOC (pclose, 1));
|
||||
_GL_ARG_NONNULL ((1, 2)) _GL_ATTRIBUTE_DEALLOC (pclose, 1)
|
||||
_GL_ATTRIBUTE_MALLOC);
|
||||
# endif
|
||||
# if defined GNULIB_POSIXCHECK
|
||||
# undef popen
|
||||
@ -1190,9 +1311,17 @@ _GL_CXXALIASWARN (puts);
|
||||
# endif
|
||||
_GL_CXXALIAS_MDA (putw, int, (int w, FILE *restrict stream));
|
||||
# else
|
||||
# if @HAVE_DECL_PUTW@
|
||||
# if defined __APPLE__ && defined __MACH__
|
||||
/* The presence of the declaration depends on _POSIX_C_SOURCE. */
|
||||
_GL_FUNCDECL_SYS (putw, int, (int w, FILE *restrict stream));
|
||||
# endif
|
||||
_GL_CXXALIAS_SYS (putw, int, (int w, FILE *restrict stream));
|
||||
# endif
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (putw);
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if @GNULIB_REMOVE@
|
||||
@ -1398,13 +1527,15 @@ _GL_CXXALIASWARN (tempnam);
|
||||
# define tmpfile rpl_tmpfile
|
||||
# endif
|
||||
_GL_FUNCDECL_RPL (tmpfile, FILE *, (void)
|
||||
_GL_ATTRIBUTE_DEALLOC (fclose, 1));
|
||||
_GL_ATTRIBUTE_DEALLOC (fclose, 1)
|
||||
_GL_ATTRIBUTE_MALLOC);
|
||||
_GL_CXXALIAS_RPL (tmpfile, FILE *, (void));
|
||||
# else
|
||||
# if __GNUC__ >= 11
|
||||
/* For -Wmismatched-dealloc: Associate tmpfile with fclose or rpl_fclose. */
|
||||
_GL_FUNCDECL_SYS (tmpfile, FILE *, (void)
|
||||
_GL_ATTRIBUTE_DEALLOC (fclose, 1));
|
||||
_GL_ATTRIBUTE_DEALLOC (fclose, 1)
|
||||
_GL_ATTRIBUTE_MALLOC);
|
||||
# endif
|
||||
_GL_CXXALIAS_SYS (tmpfile, FILE *, (void));
|
||||
# endif
|
||||
@ -1415,7 +1546,8 @@ _GL_CXXALIASWARN (tmpfile);
|
||||
# if @GNULIB_FCLOSE@ && __GNUC__ >= 11 && !defined tmpfile
|
||||
/* For -Wmismatched-dealloc: Associate tmpfile with fclose or rpl_fclose. */
|
||||
_GL_FUNCDECL_SYS (tmpfile, FILE *, (void)
|
||||
_GL_ATTRIBUTE_DEALLOC (fclose, 1));
|
||||
_GL_ATTRIBUTE_DEALLOC (fclose, 1)
|
||||
_GL_ATTRIBUTE_MALLOC);
|
||||
# endif
|
||||
# if defined GNULIB_POSIXCHECK
|
||||
# undef tmpfile
|
||||
|
346
lib/stdlib.in.h
346
lib/stdlib.in.h
@ -1,6 +1,6 @@
|
||||
/* A GNU-like <stdlib.h>.
|
||||
|
||||
Copyright (C) 1995, 2001-2004, 2006-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 1995, 2001-2004, 2006-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
@ -37,6 +37,13 @@
|
||||
#ifndef _@GUARD_PREFIX@_STDLIB_H
|
||||
#define _@GUARD_PREFIX@_STDLIB_H
|
||||
|
||||
/* This file uses _Noreturn, _GL_ATTRIBUTE_DEALLOC, _GL_ATTRIBUTE_MALLOC,
|
||||
_GL_ATTRIBUTE_NOTHROW, _GL_ATTRIBUTE_PURE, GNULIB_POSIXCHECK,
|
||||
HAVE_RAW_DECL_*. */
|
||||
#if !_GL_CONFIG_H_INCLUDED
|
||||
#error "Please include config.h first."
|
||||
#endif
|
||||
|
||||
/* NetBSD 5.0 mis-defines NULL. */
|
||||
#include <stddef.h>
|
||||
|
||||
@ -67,9 +74,7 @@
|
||||
# include <random.h>
|
||||
# endif
|
||||
|
||||
# if !@HAVE_STRUCT_RANDOM_DATA@ || @REPLACE_RANDOM_R@ || !@HAVE_RANDOM_R@
|
||||
# include <stdint.h>
|
||||
# endif
|
||||
# include <stdint.h>
|
||||
|
||||
# if !@HAVE_STRUCT_RANDOM_DATA@
|
||||
/* Define 'struct random_data'.
|
||||
@ -128,6 +133,28 @@ struct random_data
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* _GL_ATTRIBUTE_NOTHROW declares that the function does not throw exceptions.
|
||||
*/
|
||||
#ifndef _GL_ATTRIBUTE_NOTHROW
|
||||
# if defined __cplusplus
|
||||
# if (__GNUC__ + (__GNUC_MINOR__ >= 8) > 2) || __clang_major >= 4
|
||||
# if __cplusplus >= 201103L
|
||||
# define _GL_ATTRIBUTE_NOTHROW noexcept (true)
|
||||
# else
|
||||
# define _GL_ATTRIBUTE_NOTHROW throw ()
|
||||
# endif
|
||||
# else
|
||||
# define _GL_ATTRIBUTE_NOTHROW
|
||||
# endif
|
||||
# else
|
||||
# if (__GNUC__ + (__GNUC_MINOR__ >= 3) > 3) || defined __clang__
|
||||
# define _GL_ATTRIBUTE_NOTHROW __attribute__ ((__nothrow__))
|
||||
# else
|
||||
# define _GL_ATTRIBUTE_NOTHROW
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* The __attribute__ feature is available in gcc versions 2.5 and later.
|
||||
The attribute __pure__ was added in gcc 2.96. */
|
||||
#ifndef _GL_ATTRIBUTE_PURE
|
||||
@ -164,11 +191,22 @@ struct random_data
|
||||
#if @GNULIB__EXIT@
|
||||
/* Terminate the current process with the given return code, without running
|
||||
the 'atexit' handlers. */
|
||||
# if !@HAVE__EXIT@
|
||||
# if @REPLACE__EXIT@
|
||||
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
|
||||
# undef _Exit
|
||||
# define _Exit rpl__Exit
|
||||
# endif
|
||||
_GL_FUNCDECL_RPL (_Exit, _Noreturn void, (int status));
|
||||
_GL_CXXALIAS_RPL (_Exit, void, (int status));
|
||||
# else
|
||||
# if !@HAVE__EXIT@
|
||||
_GL_FUNCDECL_SYS (_Exit, _Noreturn void, (int status));
|
||||
# endif
|
||||
# endif
|
||||
_GL_CXXALIAS_SYS (_Exit, void, (int status));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (_Exit);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
# undef _Exit
|
||||
# if HAVE_RAW_DECL__EXIT
|
||||
@ -185,7 +223,7 @@ _GL_WARN_ON_USE (_Exit, "_Exit is unportable - "
|
||||
# define free rpl_free
|
||||
# endif
|
||||
# if defined __cplusplus && (__GLIBC__ + (__GLIBC_MINOR__ >= 14) > 2)
|
||||
_GL_FUNCDECL_RPL (free, void, (void *ptr) throw ());
|
||||
_GL_FUNCDECL_RPL (free, void, (void *ptr) _GL_ATTRIBUTE_NOTHROW);
|
||||
# else
|
||||
_GL_FUNCDECL_RPL (free, void, (void *ptr));
|
||||
# endif
|
||||
@ -219,22 +257,36 @@ _GL_CXXALIAS_RPL (aligned_alloc, void *, (size_t alignment, size_t size));
|
||||
# if @HAVE_ALIGNED_ALLOC@
|
||||
# if __GNUC__ >= 11
|
||||
/* For -Wmismatched-dealloc: Associate aligned_alloc with free or rpl_free. */
|
||||
# if __GLIBC__ + (__GLIBC_MINOR__ >= 16) > 2
|
||||
_GL_FUNCDECL_SYS (aligned_alloc, void *,
|
||||
(size_t alignment, size_t size)
|
||||
_GL_ATTRIBUTE_NOTHROW
|
||||
_GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
|
||||
# else
|
||||
_GL_FUNCDECL_SYS (aligned_alloc, void *,
|
||||
(size_t alignment, size_t size)
|
||||
_GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
|
||||
# endif
|
||||
# endif
|
||||
_GL_CXXALIAS_SYS (aligned_alloc, void *, (size_t alignment, size_t size));
|
||||
# endif
|
||||
# endif
|
||||
# if @HAVE_ALIGNED_ALLOC@
|
||||
# if (__GLIBC__ >= 2) && @HAVE_ALIGNED_ALLOC@
|
||||
_GL_CXXALIASWARN (aligned_alloc);
|
||||
# endif
|
||||
#else
|
||||
# if @GNULIB_FREE_POSIX@ && __GNUC__ >= 11 && !defined aligned_alloc
|
||||
/* For -Wmismatched-dealloc: Associate aligned_alloc with free or rpl_free. */
|
||||
# if __GLIBC__ + (__GLIBC_MINOR__ >= 16) > 2
|
||||
_GL_FUNCDECL_SYS (aligned_alloc, void *,
|
||||
(size_t alignment, size_t size)
|
||||
_GL_ATTRIBUTE_NOTHROW
|
||||
_GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
|
||||
# else
|
||||
_GL_FUNCDECL_SYS (aligned_alloc, void *,
|
||||
(size_t alignment, size_t size)
|
||||
_GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
|
||||
# endif
|
||||
# endif
|
||||
# if defined GNULIB_POSIXCHECK
|
||||
# undef aligned_alloc
|
||||
@ -277,9 +329,16 @@ _GL_CXXALIAS_RPL (calloc, void *, (size_t nmemb, size_t size));
|
||||
# else
|
||||
# if __GNUC__ >= 11
|
||||
/* For -Wmismatched-dealloc: Associate calloc with free or rpl_free. */
|
||||
# if __GLIBC__ + (__GLIBC_MINOR__ >= 14) > 2
|
||||
_GL_FUNCDECL_SYS (calloc, void *,
|
||||
(size_t nmemb, size_t size)
|
||||
_GL_ATTRIBUTE_NOTHROW
|
||||
_GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
|
||||
# else
|
||||
_GL_FUNCDECL_SYS (calloc, void *,
|
||||
(size_t nmemb, size_t size)
|
||||
_GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
|
||||
# endif
|
||||
# endif
|
||||
_GL_CXXALIAS_SYS (calloc, void *, (size_t nmemb, size_t size));
|
||||
# endif
|
||||
@ -289,9 +348,16 @@ _GL_CXXALIASWARN (calloc);
|
||||
#else
|
||||
# if @GNULIB_FREE_POSIX@ && __GNUC__ >= 11 && !defined calloc
|
||||
/* For -Wmismatched-dealloc: Associate calloc with free or rpl_free. */
|
||||
# if __GLIBC__ + (__GLIBC_MINOR__ >= 14) > 2
|
||||
_GL_FUNCDECL_SYS (calloc, void *,
|
||||
(size_t nmemb, size_t size)
|
||||
_GL_ATTRIBUTE_NOTHROW
|
||||
_GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
|
||||
# else
|
||||
_GL_FUNCDECL_SYS (calloc, void *,
|
||||
(size_t nmemb, size_t size)
|
||||
_GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
|
||||
# endif
|
||||
# endif
|
||||
# if defined GNULIB_POSIXCHECK
|
||||
# undef calloc
|
||||
@ -313,10 +379,18 @@ _GL_FUNCDECL_RPL (canonicalize_file_name, char *,
|
||||
_GL_CXXALIAS_RPL (canonicalize_file_name, char *, (const char *name));
|
||||
# else
|
||||
# if !@HAVE_CANONICALIZE_FILE_NAME@ || __GNUC__ >= 11
|
||||
# if __GLIBC__ + (__GLIBC_MINOR__ >= 2) > 2
|
||||
_GL_FUNCDECL_SYS (canonicalize_file_name, char *,
|
||||
(const char *name)
|
||||
_GL_ATTRIBUTE_NOTHROW
|
||||
_GL_ARG_NONNULL ((1))
|
||||
_GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
|
||||
# else
|
||||
_GL_FUNCDECL_SYS (canonicalize_file_name, char *,
|
||||
(const char *name)
|
||||
_GL_ARG_NONNULL ((1))
|
||||
_GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
|
||||
# endif
|
||||
# endif
|
||||
_GL_CXXALIAS_SYS (canonicalize_file_name, char *, (const char *name));
|
||||
# endif
|
||||
@ -329,10 +403,18 @@ _GL_CXXALIASWARN (canonicalize_file_name);
|
||||
# if @GNULIB_FREE_POSIX@ && __GNUC__ >= 11 && !defined canonicalize_file_name
|
||||
/* For -Wmismatched-dealloc: Associate canonicalize_file_name with free or
|
||||
rpl_free. */
|
||||
# if __GLIBC__ + (__GLIBC_MINOR__ >= 2) > 2
|
||||
_GL_FUNCDECL_SYS (canonicalize_file_name, char *,
|
||||
(const char *name)
|
||||
_GL_ATTRIBUTE_NOTHROW
|
||||
_GL_ARG_NONNULL ((1))
|
||||
_GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
|
||||
# else
|
||||
_GL_FUNCDECL_SYS (canonicalize_file_name, char *,
|
||||
(const char *name)
|
||||
_GL_ARG_NONNULL ((1))
|
||||
_GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
|
||||
# endif
|
||||
# endif
|
||||
# if defined GNULIB_POSIXCHECK
|
||||
# undef canonicalize_file_name
|
||||
@ -416,12 +498,24 @@ _GL_CXXALIASWARN (gcvt);
|
||||
The three numbers are the load average of the last 1 minute, the last 5
|
||||
minutes, and the last 15 minutes, respectively.
|
||||
LOADAVG is an array of NELEM numbers. */
|
||||
# if !@HAVE_DECL_GETLOADAVG@
|
||||
# if @REPLACE_GETLOADAVG@
|
||||
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
|
||||
# undef getloadavg
|
||||
# define getloadavg rpl_getloadavg
|
||||
# endif
|
||||
_GL_FUNCDECL_RPL (getloadavg, int, (double loadavg[], int nelem)
|
||||
_GL_ARG_NONNULL ((1)));
|
||||
_GL_CXXALIAS_RPL (getloadavg, int, (double loadavg[], int nelem));
|
||||
# else
|
||||
# if !@HAVE_DECL_GETLOADAVG@
|
||||
_GL_FUNCDECL_SYS (getloadavg, int, (double loadavg[], int nelem)
|
||||
_GL_ARG_NONNULL ((1)));
|
||||
# endif
|
||||
# endif
|
||||
_GL_CXXALIAS_SYS (getloadavg, int, (double loadavg[], int nelem));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (getloadavg);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
# undef getloadavg
|
||||
# if HAVE_RAW_DECL_GETLOADAVG
|
||||
@ -430,6 +524,41 @@ _GL_WARN_ON_USE (getloadavg, "getloadavg is not portable - "
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if @GNULIB_GETPROGNAME@
|
||||
/* Return the base name of the executing program.
|
||||
On native Windows this will usually end in ".exe" or ".EXE". */
|
||||
# if @REPLACE_GETPROGNAME@
|
||||
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
|
||||
# undef getprogname
|
||||
# define getprogname rpl_getprogname
|
||||
# endif
|
||||
# if @HAVE_DECL_PROGRAM_INVOCATION_NAME@
|
||||
_GL_FUNCDECL_RPL (getprogname, const char *, (void) _GL_ATTRIBUTE_PURE);
|
||||
# else
|
||||
_GL_FUNCDECL_RPL (getprogname, const char *, (void));
|
||||
# endif
|
||||
_GL_CXXALIAS_RPL (getprogname, const char *, (void));
|
||||
# else
|
||||
# if !@HAVE_GETPROGNAME@
|
||||
# if @HAVE_DECL_PROGRAM_INVOCATION_NAME@
|
||||
_GL_FUNCDECL_SYS (getprogname, const char *, (void) _GL_ATTRIBUTE_PURE);
|
||||
# else
|
||||
_GL_FUNCDECL_SYS (getprogname, const char *, (void));
|
||||
# endif
|
||||
# endif
|
||||
_GL_CXXALIAS_SYS (getprogname, const char *, (void));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (getprogname);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
# undef getprogname
|
||||
# if HAVE_RAW_DECL_GETPROGNAME
|
||||
_GL_WARN_ON_USE (getprogname, "getprogname is unportable - "
|
||||
"use gnulib module getprogname for portability");
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if @GNULIB_GETSUBOPT@
|
||||
/* Assuming *OPTIONP is a comma separated list of elements of the form
|
||||
"token" or "token=value", getsubopt parses the first of these elements.
|
||||
@ -442,14 +571,28 @@ _GL_WARN_ON_USE (getloadavg, "getloadavg is not portable - "
|
||||
Otherwise it returns -1, and *OPTIONP and *VALUEP are undefined.
|
||||
For more details see the POSIX specification.
|
||||
https://pubs.opengroup.org/onlinepubs/9699919799/functions/getsubopt.html */
|
||||
# if !@HAVE_GETSUBOPT@
|
||||
# if @REPLACE_GETSUBOPT@
|
||||
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
|
||||
# undef getsubopt
|
||||
# define getsubopt rpl_getsubopt
|
||||
# endif
|
||||
_GL_FUNCDECL_RPL (getsubopt, int,
|
||||
(char **optionp, char *const *tokens, char **valuep)
|
||||
_GL_ARG_NONNULL ((1, 2, 3)));
|
||||
_GL_CXXALIAS_RPL (getsubopt, int,
|
||||
(char **optionp, char *const *tokens, char **valuep));
|
||||
# else
|
||||
# if !@HAVE_GETSUBOPT@
|
||||
_GL_FUNCDECL_SYS (getsubopt, int,
|
||||
(char **optionp, char *const *tokens, char **valuep)
|
||||
_GL_ARG_NONNULL ((1, 2, 3)));
|
||||
# endif
|
||||
# endif
|
||||
_GL_CXXALIAS_SYS (getsubopt, int,
|
||||
(char **optionp, char *const *tokens, char **valuep));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (getsubopt);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
# undef getsubopt
|
||||
# if HAVE_RAW_DECL_GETSUBOPT
|
||||
@ -493,9 +636,16 @@ _GL_CXXALIAS_RPL (malloc, void *, (size_t size));
|
||||
# else
|
||||
# if __GNUC__ >= 11
|
||||
/* For -Wmismatched-dealloc: Associate malloc with free or rpl_free. */
|
||||
# if __GLIBC__ + (__GLIBC_MINOR__ >= 14) > 2
|
||||
_GL_FUNCDECL_SYS (malloc, void *,
|
||||
(size_t size)
|
||||
_GL_ATTRIBUTE_NOTHROW
|
||||
_GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
|
||||
# else
|
||||
_GL_FUNCDECL_SYS (malloc, void *,
|
||||
(size_t size)
|
||||
_GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
|
||||
# endif
|
||||
# endif
|
||||
_GL_CXXALIAS_SYS (malloc, void *, (size_t size));
|
||||
# endif
|
||||
@ -505,9 +655,16 @@ _GL_CXXALIASWARN (malloc);
|
||||
#else
|
||||
# if @GNULIB_FREE_POSIX@ && __GNUC__ >= 11 && !defined malloc
|
||||
/* For -Wmismatched-dealloc: Associate malloc with free or rpl_free. */
|
||||
# if __GLIBC__ + (__GLIBC_MINOR__ >= 14) > 2
|
||||
_GL_FUNCDECL_SYS (malloc, void *,
|
||||
(size_t size)
|
||||
_GL_ATTRIBUTE_NOTHROW
|
||||
_GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
|
||||
# else
|
||||
_GL_FUNCDECL_SYS (malloc, void *,
|
||||
(size_t size)
|
||||
_GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
|
||||
# endif
|
||||
# endif
|
||||
# if defined GNULIB_POSIXCHECK && !_GL_USE_STDLIB_ALLOC
|
||||
# undef malloc
|
||||
@ -517,6 +674,51 @@ _GL_WARN_ON_USE (malloc, "malloc is not POSIX compliant everywhere - "
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* Return maximum number of bytes of a multibyte character. */
|
||||
#if @REPLACE_MB_CUR_MAX@
|
||||
# if !GNULIB_defined_MB_CUR_MAX
|
||||
static inline
|
||||
int gl_MB_CUR_MAX (void)
|
||||
{
|
||||
/* Turn the value 3 to the value 4, as needed for the UTF-8 encoding. */
|
||||
return MB_CUR_MAX + (MB_CUR_MAX == 3);
|
||||
}
|
||||
# undef MB_CUR_MAX
|
||||
# define MB_CUR_MAX gl_MB_CUR_MAX ()
|
||||
# define GNULIB_defined_MB_CUR_MAX 1
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* Convert a string to a wide string. */
|
||||
#if @GNULIB_MBSTOWCS@
|
||||
# if @REPLACE_MBSTOWCS@
|
||||
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
|
||||
# undef mbstowcs
|
||||
# define mbstowcs rpl_mbstowcs
|
||||
# endif
|
||||
_GL_FUNCDECL_RPL (mbstowcs, size_t,
|
||||
(wchar_t *restrict dest, const char *restrict src,
|
||||
size_t len)
|
||||
_GL_ARG_NONNULL ((2)));
|
||||
_GL_CXXALIAS_RPL (mbstowcs, size_t,
|
||||
(wchar_t *restrict dest, const char *restrict src,
|
||||
size_t len));
|
||||
# else
|
||||
_GL_CXXALIAS_SYS (mbstowcs, size_t,
|
||||
(wchar_t *restrict dest, const char *restrict src,
|
||||
size_t len));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (mbstowcs);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
# undef mbstowcs
|
||||
# if HAVE_RAW_DECL_MBSTOWCS
|
||||
_GL_WARN_ON_USE (mbstowcs, "mbstowcs is unportable - "
|
||||
"use gnulib module mbstowcs for portability");
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* Convert a multibyte character to a wide character. */
|
||||
#if @GNULIB_MBTOWC@
|
||||
# if @REPLACE_MBTOWC@
|
||||
@ -579,12 +781,24 @@ _GL_WARN_ON_USE (mkdtemp, "mkdtemp is unportable - "
|
||||
implementation.
|
||||
Returns the open file descriptor if successful, otherwise -1 and errno
|
||||
set. */
|
||||
# if !@HAVE_MKOSTEMP@
|
||||
# if @REPLACE_MKOSTEMP@
|
||||
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
|
||||
# undef mkostemp
|
||||
# define mkostemp rpl_mkostemp
|
||||
# endif
|
||||
_GL_FUNCDECL_RPL (mkostemp, int, (char * /*template*/, int /*flags*/)
|
||||
_GL_ARG_NONNULL ((1)));
|
||||
_GL_CXXALIAS_RPL (mkostemp, int, (char * /*template*/, int /*flags*/));
|
||||
# else
|
||||
# if !@HAVE_MKOSTEMP@
|
||||
_GL_FUNCDECL_SYS (mkostemp, int, (char * /*template*/, int /*flags*/)
|
||||
_GL_ARG_NONNULL ((1)));
|
||||
# endif
|
||||
# endif
|
||||
_GL_CXXALIAS_SYS (mkostemp, int, (char * /*template*/, int /*flags*/));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (mkostemp);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
# undef mkostemp
|
||||
# if HAVE_RAW_DECL_MKOSTEMP
|
||||
@ -607,14 +821,28 @@ _GL_WARN_ON_USE (mkostemp, "mkostemp is unportable - "
|
||||
implementation.
|
||||
Returns the open file descriptor if successful, otherwise -1 and errno
|
||||
set. */
|
||||
# if !@HAVE_MKOSTEMPS@
|
||||
# if @REPLACE_MKOSTEMPS@
|
||||
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
|
||||
# undef mkostemps
|
||||
# define mkostemps rpl_mkostemps
|
||||
# endif
|
||||
_GL_FUNCDECL_RPL (mkostemps, int,
|
||||
(char * /*template*/, int /*suffixlen*/, int /*flags*/)
|
||||
_GL_ARG_NONNULL ((1)));
|
||||
_GL_CXXALIAS_RPL (mkostemps, int,
|
||||
(char * /*template*/, int /*suffixlen*/, int /*flags*/));
|
||||
# else
|
||||
# if !@HAVE_MKOSTEMPS@
|
||||
_GL_FUNCDECL_SYS (mkostemps, int,
|
||||
(char * /*template*/, int /*suffixlen*/, int /*flags*/)
|
||||
_GL_ARG_NONNULL ((1)));
|
||||
# endif
|
||||
# endif
|
||||
_GL_CXXALIAS_SYS (mkostemps, int,
|
||||
(char * /*template*/, int /*suffixlen*/, int /*flags*/));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (mkostemps);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
# undef mkostemps
|
||||
# if HAVE_RAW_DECL_MKOSTEMPS
|
||||
@ -713,7 +941,7 @@ _GL_CXXALIAS_SYS (posix_memalign, int,
|
||||
(void **memptr, size_t alignment, size_t size));
|
||||
# endif
|
||||
# endif
|
||||
# if @HAVE_POSIX_MEMALIGN@
|
||||
# if __GLIBC__ >= 2 && @HAVE_POSIX_MEMALIGN@
|
||||
_GL_CXXALIASWARN (posix_memalign);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
@ -727,11 +955,22 @@ _GL_WARN_ON_USE (posix_memalign, "posix_memalign is not portable - "
|
||||
#if @GNULIB_POSIX_OPENPT@
|
||||
/* Return an FD open to the master side of a pseudo-terminal. Flags should
|
||||
include O_RDWR, and may also include O_NOCTTY. */
|
||||
# if !@HAVE_POSIX_OPENPT@
|
||||
# if @REPLACE_POSIX_OPENPT@
|
||||
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
|
||||
# undef posix_openpt
|
||||
# define posix_openpt rpl_posix_openpt
|
||||
# endif
|
||||
_GL_FUNCDECL_RPL (posix_openpt, int, (int flags));
|
||||
_GL_CXXALIAS_RPL (posix_openpt, int, (int flags));
|
||||
# else
|
||||
# if !@HAVE_POSIX_OPENPT@
|
||||
_GL_FUNCDECL_SYS (posix_openpt, int, (int flags));
|
||||
# endif
|
||||
# endif
|
||||
_GL_CXXALIAS_SYS (posix_openpt, int, (int flags));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (posix_openpt);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
# undef posix_openpt
|
||||
# if HAVE_RAW_DECL_POSIX_OPENPT
|
||||
@ -808,6 +1047,10 @@ _GL_CXXALIAS_RPL (putenv, int, (char *string));
|
||||
# define putenv _putenv
|
||||
# endif
|
||||
_GL_CXXALIAS_MDA (putenv, int, (char *string));
|
||||
# elif defined __KLIBC__
|
||||
/* Need to cast, because on OS/2 kLIBC, the first parameter is
|
||||
const char *string. */
|
||||
_GL_CXXALIAS_SYS_CAST (putenv, int, (char *string));
|
||||
# else
|
||||
_GL_CXXALIAS_SYS (putenv, int, (char *string));
|
||||
# endif
|
||||
@ -824,6 +1067,10 @@ _GL_CXXALIASWARN (putenv);
|
||||
/* Need to cast, because on mingw, the parameter is either
|
||||
'const char *string' or 'char *string'. */
|
||||
_GL_CXXALIAS_MDA_CAST (putenv, int, (char *string));
|
||||
# elif defined __KLIBC__
|
||||
/* Need to cast, because on OS/2 kLIBC, the first parameter is
|
||||
const char *string. */
|
||||
_GL_CXXALIAS_SYS_CAST (putenv, int, (char *string));
|
||||
# else
|
||||
_GL_CXXALIAS_SYS (putenv, int, (char *string));
|
||||
# endif
|
||||
@ -875,11 +1122,26 @@ _GL_WARN_ON_USE (qsort_r, "qsort_r is not portable - "
|
||||
#endif
|
||||
|
||||
|
||||
#if @GNULIB_RANDOM_R@
|
||||
# if !@HAVE_RANDOM_R@
|
||||
# ifndef RAND_MAX
|
||||
# define RAND_MAX 2147483647
|
||||
#if @GNULIB_RAND@ || (@GNULIB_RANDOM_R@ && !@HAVE_RANDOM_R@)
|
||||
# ifndef RAND_MAX
|
||||
# define RAND_MAX 2147483647
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
||||
#if @GNULIB_RAND@
|
||||
# if @REPLACE_RAND@
|
||||
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
|
||||
# undef rand
|
||||
# define rand rpl_rand
|
||||
# endif
|
||||
_GL_FUNCDECL_RPL (rand, int, (void));
|
||||
_GL_CXXALIAS_RPL (rand, int, (void));
|
||||
# else
|
||||
_GL_CXXALIAS_SYS (rand, int, (void));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (rand);
|
||||
# endif
|
||||
#endif
|
||||
|
||||
@ -900,7 +1162,9 @@ _GL_FUNCDECL_SYS (random, long, (void));
|
||||
int. */
|
||||
_GL_CXXALIAS_SYS_CAST (random, long, (void));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (random);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
# undef random
|
||||
# if HAVE_RAW_DECL_RANDOM
|
||||
@ -925,7 +1189,9 @@ _GL_FUNCDECL_SYS (srandom, void, (unsigned int seed));
|
||||
unsigned long seed. */
|
||||
_GL_CXXALIAS_SYS_CAST (srandom, void, (unsigned int seed));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (srandom);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
# undef srandom
|
||||
# if HAVE_RAW_DECL_SRANDOM
|
||||
@ -956,7 +1222,9 @@ _GL_FUNCDECL_SYS (initstate, char *,
|
||||
_GL_CXXALIAS_SYS_CAST (initstate, char *,
|
||||
(unsigned int seed, char *buf, size_t buf_size));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (initstate);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
# undef initstate
|
||||
# if HAVE_RAW_DECL_INITSTATE
|
||||
@ -981,7 +1249,9 @@ _GL_FUNCDECL_SYS (setstate, char *, (char *arg_state) _GL_ARG_NONNULL ((1)));
|
||||
is const char *arg_state. */
|
||||
_GL_CXXALIAS_SYS_CAST (setstate, char *, (char *arg_state));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (setstate);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
# undef setstate
|
||||
# if HAVE_RAW_DECL_SETSTATE
|
||||
@ -1126,8 +1396,16 @@ _GL_CXXALIAS_RPL (realloc, void *, (void *ptr, size_t size));
|
||||
# else
|
||||
# if __GNUC__ >= 11
|
||||
/* For -Wmismatched-dealloc: Associate realloc with free or rpl_free. */
|
||||
_GL_FUNCDECL_SYS (realloc, void *, (void *ptr, size_t size)
|
||||
_GL_ATTRIBUTE_DEALLOC_FREE);
|
||||
# if __GLIBC__ + (__GLIBC_MINOR__ >= 14) > 2
|
||||
_GL_FUNCDECL_SYS (realloc, void *,
|
||||
(void *ptr, size_t size)
|
||||
_GL_ATTRIBUTE_NOTHROW
|
||||
_GL_ATTRIBUTE_DEALLOC_FREE);
|
||||
# else
|
||||
_GL_FUNCDECL_SYS (realloc, void *,
|
||||
(void *ptr, size_t size)
|
||||
_GL_ATTRIBUTE_DEALLOC_FREE);
|
||||
# endif
|
||||
# endif
|
||||
_GL_CXXALIAS_SYS (realloc, void *, (void *ptr, size_t size));
|
||||
# endif
|
||||
@ -1137,8 +1415,16 @@ _GL_CXXALIASWARN (realloc);
|
||||
#else
|
||||
# if @GNULIB_FREE_POSIX@ && __GNUC__ >= 11 && !defined realloc
|
||||
/* For -Wmismatched-dealloc: Associate realloc with free or rpl_free. */
|
||||
_GL_FUNCDECL_SYS (realloc, void *, (void *ptr, size_t size)
|
||||
_GL_ATTRIBUTE_DEALLOC_FREE);
|
||||
# if __GLIBC__ + (__GLIBC_MINOR__ >= 14) > 2
|
||||
_GL_FUNCDECL_SYS (realloc, void *,
|
||||
(void *ptr, size_t size)
|
||||
_GL_ATTRIBUTE_NOTHROW
|
||||
_GL_ATTRIBUTE_DEALLOC_FREE);
|
||||
# else
|
||||
_GL_FUNCDECL_SYS (realloc, void *,
|
||||
(void *ptr, size_t size)
|
||||
_GL_ATTRIBUTE_DEALLOC_FREE);
|
||||
# endif
|
||||
# endif
|
||||
# if defined GNULIB_POSIXCHECK && !_GL_USE_STDLIB_ALLOC
|
||||
# undef realloc
|
||||
@ -1167,7 +1453,9 @@ _GL_FUNCDECL_SYS (reallocarray, void *,
|
||||
_GL_CXXALIAS_SYS (reallocarray, void *,
|
||||
(void *ptr, size_t nmemb, size_t size));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (reallocarray);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
# undef reallocarray
|
||||
# if HAVE_RAW_DECL_REALLOCARRAY
|
||||
@ -1363,7 +1651,9 @@ _GL_CXXALIAS_SYS (strtol, long,
|
||||
(const char *restrict string, char **restrict endptr,
|
||||
int base));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (strtol);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
# undef strtol
|
||||
# if HAVE_RAW_DECL_STRTOL
|
||||
@ -1444,7 +1734,9 @@ _GL_CXXALIAS_SYS (strtoul, unsigned long,
|
||||
(const char *restrict string, char **restrict endptr,
|
||||
int base));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (strtoul);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
# undef strtoul
|
||||
# if HAVE_RAW_DECL_STRTOUL
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Optimized string comparison.
|
||||
Copyright (C) 2001-2002, 2007, 2009-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2001-2002, 2007, 2009-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Charset conversion.
|
||||
Copyright (C) 2001-2007, 2010-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2001-2007, 2010-2024 Free Software Foundation, Inc.
|
||||
Written by Bruno Haible and Simon Josefsson.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Charset conversion.
|
||||
Copyright (C) 2001-2004, 2006-2007, 2009-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2001-2004, 2006-2007, 2009-2024 Free Software Foundation, Inc.
|
||||
Written by Bruno Haible and Simon Josefsson.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
@ -18,6 +18,11 @@
|
||||
#ifndef _STRICONV_H
|
||||
#define _STRICONV_H
|
||||
|
||||
/* This file uses _GL_ATTRIBUTE_MALLOC, HAVE_ICONV. */
|
||||
#if !_GL_CONFIG_H_INCLUDED
|
||||
#error "Please include config.h first."
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#if HAVE_ICONV
|
||||
#include <iconv.h>
|
||||
|
214
lib/string.in.h
214
lib/string.in.h
@ -1,6 +1,6 @@
|
||||
/* A GNU-like <string.h>.
|
||||
|
||||
Copyright (C) 1995-1996, 2001-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 1995-1996, 2001-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
@ -44,6 +44,13 @@
|
||||
#ifndef _@GUARD_PREFIX@_STRING_H
|
||||
#define _@GUARD_PREFIX@_STRING_H
|
||||
|
||||
/* This file uses _GL_ATTRIBUTE_DEALLOC, _GL_ATTRIBUTE_MALLOC,
|
||||
_GL_ATTRIBUTE_NOTHROW, _GL_ATTRIBUTE_PURE, GNULIB_POSIXCHECK,
|
||||
HAVE_RAW_DECL_*. */
|
||||
#if !_GL_CONFIG_H_INCLUDED
|
||||
#error "Please include config.h first."
|
||||
#endif
|
||||
|
||||
/* NetBSD 5.0 mis-defines NULL. */
|
||||
#include <stddef.h>
|
||||
|
||||
@ -59,10 +66,11 @@
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
/* AIX 7.2 declares ffsl and ffsll in <strings.h>, not in <string.h>. */
|
||||
/* AIX 7.2 and Android 13 declare ffsl and ffsll in <strings.h>, not in
|
||||
<string.h>. */
|
||||
/* But in any case avoid namespace pollution on glibc systems. */
|
||||
#if ((@GNULIB_FFSL@ || @GNULIB_FFSLL@ || defined GNULIB_POSIXCHECK) \
|
||||
&& defined _AIX) \
|
||||
&& (defined _AIX || defined __ANDROID__)) \
|
||||
&& ! defined __GLIBC__
|
||||
# include <strings.h>
|
||||
#endif
|
||||
@ -82,7 +90,14 @@
|
||||
can be freed via 'free'; it can be used only after declaring 'free'. */
|
||||
/* Applies to: functions. Cannot be used on inline functions. */
|
||||
#ifndef _GL_ATTRIBUTE_DEALLOC_FREE
|
||||
# define _GL_ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_DEALLOC (free, 1)
|
||||
# if defined __cplusplus && defined __GNUC__ && !defined __clang__
|
||||
/* Work around GCC bug <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108231> */
|
||||
# define _GL_ATTRIBUTE_DEALLOC_FREE \
|
||||
_GL_ATTRIBUTE_DEALLOC ((void (*) (void *)) free, 1)
|
||||
# else
|
||||
# define _GL_ATTRIBUTE_DEALLOC_FREE \
|
||||
_GL_ATTRIBUTE_DEALLOC (free, 1)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* _GL_ATTRIBUTE_MALLOC declares that the function returns a pointer to freshly
|
||||
@ -96,6 +111,28 @@
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* _GL_ATTRIBUTE_NOTHROW declares that the function does not throw exceptions.
|
||||
*/
|
||||
#ifndef _GL_ATTRIBUTE_NOTHROW
|
||||
# if defined __cplusplus
|
||||
# if (__GNUC__ + (__GNUC_MINOR__ >= 8) > 2) || __clang_major >= 4
|
||||
# if __cplusplus >= 201103L
|
||||
# define _GL_ATTRIBUTE_NOTHROW noexcept (true)
|
||||
# else
|
||||
# define _GL_ATTRIBUTE_NOTHROW throw ()
|
||||
# endif
|
||||
# else
|
||||
# define _GL_ATTRIBUTE_NOTHROW
|
||||
# endif
|
||||
# else
|
||||
# if (__GNUC__ + (__GNUC_MINOR__ >= 3) > 3) || defined __clang__
|
||||
# define _GL_ATTRIBUTE_NOTHROW __attribute__ ((__nothrow__))
|
||||
# else
|
||||
# define _GL_ATTRIBUTE_NOTHROW
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* The __attribute__ feature is available in gcc versions 2.5 and later.
|
||||
The attribute __pure__ was added in gcc 2.96. */
|
||||
#ifndef _GL_ATTRIBUTE_PURE
|
||||
@ -118,7 +155,11 @@
|
||||
# if (@REPLACE_FREE@ && !defined free \
|
||||
&& !(defined __cplusplus && defined GNULIB_NAMESPACE))
|
||||
/* We can't do '#define free rpl_free' here. */
|
||||
# if defined __cplusplus && (__GLIBC__ + (__GLIBC_MINOR__ >= 14) > 2)
|
||||
_GL_EXTERN_C void rpl_free (void *) _GL_ATTRIBUTE_NOTHROW;
|
||||
# else
|
||||
_GL_EXTERN_C void rpl_free (void *);
|
||||
# endif
|
||||
# undef _GL_ATTRIBUTE_DEALLOC_FREE
|
||||
# define _GL_ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_DEALLOC (rpl_free, 1)
|
||||
# else
|
||||
@ -130,7 +171,7 @@ _GL_EXTERN_C
|
||||
void __cdecl free (void *);
|
||||
# else
|
||||
# if defined __cplusplus && (__GLIBC__ + (__GLIBC_MINOR__ >= 14) > 2)
|
||||
_GL_EXTERN_C void free (void *) throw ();
|
||||
_GL_EXTERN_C void free (void *) _GL_ATTRIBUTE_NOTHROW;
|
||||
# else
|
||||
_GL_EXTERN_C void free (void *);
|
||||
# endif
|
||||
@ -145,7 +186,7 @@ _GL_EXTERN_C
|
||||
void __cdecl free (void *);
|
||||
# else
|
||||
# if defined __cplusplus && (__GLIBC__ + (__GLIBC_MINOR__ >= 14) > 2)
|
||||
_GL_EXTERN_C void free (void *) throw ();
|
||||
_GL_EXTERN_C void free (void *) _GL_ATTRIBUTE_NOTHROW;
|
||||
# else
|
||||
_GL_EXTERN_C void free (void *);
|
||||
# endif
|
||||
@ -248,9 +289,12 @@ _GL_CXXALIAS_SYS_CAST2 (memchr,
|
||||
# if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 10) && !defined __UCLIBC__) \
|
||||
&& (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4) \
|
||||
|| defined __clang__)
|
||||
_GL_CXXALIASWARN1 (memchr, void *, (void *__s, int __c, size_t __n) throw ());
|
||||
_GL_CXXALIASWARN1 (memchr, void *,
|
||||
(void *__s, int __c, size_t __n)
|
||||
_GL_ATTRIBUTE_NOTHROW);
|
||||
_GL_CXXALIASWARN1 (memchr, void const *,
|
||||
(void const *__s, int __c, size_t __n) throw ());
|
||||
(void const *__s, int __c, size_t __n)
|
||||
_GL_ATTRIBUTE_NOTHROW);
|
||||
# elif __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (memchr);
|
||||
# endif
|
||||
@ -300,16 +344,32 @@ _GL_WARN_ON_USE (memmem, "memmem is unportable and often quadratic - "
|
||||
/* Copy N bytes of SRC to DEST, return pointer to bytes after the
|
||||
last written byte. */
|
||||
#if @GNULIB_MEMPCPY@
|
||||
# if ! @HAVE_MEMPCPY@
|
||||
# if @REPLACE_MEMPCPY@
|
||||
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
|
||||
# undef mempcpy
|
||||
# define mempcpy rpl_mempcpy
|
||||
# endif
|
||||
_GL_FUNCDECL_RPL (mempcpy, void *,
|
||||
(void *restrict __dest, void const *restrict __src,
|
||||
size_t __n)
|
||||
_GL_ARG_NONNULL ((1, 2)));
|
||||
_GL_CXXALIAS_RPL (mempcpy, void *,
|
||||
(void *restrict __dest, void const *restrict __src,
|
||||
size_t __n));
|
||||
# else
|
||||
# if !@HAVE_MEMPCPY@
|
||||
_GL_FUNCDECL_SYS (mempcpy, void *,
|
||||
(void *restrict __dest, void const *restrict __src,
|
||||
size_t __n)
|
||||
_GL_ARG_NONNULL ((1, 2)));
|
||||
# endif
|
||||
# endif
|
||||
_GL_CXXALIAS_SYS (mempcpy, void *,
|
||||
(void *restrict __dest, void const *restrict __src,
|
||||
size_t __n));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (mempcpy);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
# undef mempcpy
|
||||
# if HAVE_RAW_DECL_MEMPCPY
|
||||
@ -334,9 +394,13 @@ _GL_CXXALIAS_SYS_CAST2 (memrchr,
|
||||
# if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 10) && !defined __UCLIBC__) \
|
||||
&& (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4) \
|
||||
|| defined __clang__)
|
||||
_GL_CXXALIASWARN1 (memrchr, void *, (void *, int, size_t) throw ());
|
||||
_GL_CXXALIASWARN1 (memrchr, void const *, (void const *, int, size_t) throw ());
|
||||
# else
|
||||
_GL_CXXALIASWARN1 (memrchr, void *,
|
||||
(void *, int, size_t)
|
||||
_GL_ATTRIBUTE_NOTHROW);
|
||||
_GL_CXXALIASWARN1 (memrchr, void const *,
|
||||
(void const *, int, size_t)
|
||||
_GL_ATTRIBUTE_NOTHROW);
|
||||
# elif __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (memrchr);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
@ -347,6 +411,23 @@ _GL_WARN_ON_USE (memrchr, "memrchr is unportable - "
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* Overwrite a block of memory. The compiler will not optimize
|
||||
effects away, even if the block is dead after the call. */
|
||||
#if @GNULIB_MEMSET_EXPLICIT@
|
||||
# if ! @HAVE_MEMSET_EXPLICIT@
|
||||
_GL_FUNCDECL_SYS (memset_explicit, void *,
|
||||
(void *__dest, int __c, size_t __n) _GL_ARG_NONNULL ((1)));
|
||||
# endif
|
||||
_GL_CXXALIAS_SYS (memset_explicit, void *, (void *__dest, int __c, size_t __n));
|
||||
_GL_CXXALIASWARN (memset_explicit);
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
# undef memset_explicit
|
||||
# if HAVE_RAW_DECL_MEMSET_EXPLICIT
|
||||
_GL_WARN_ON_USE (memset_explicit, "memset_explicit is unportable - "
|
||||
"use gnulib module memset_explicit for portability");
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* Find the first occurrence of C in S. More efficient than
|
||||
memchr(S,C,N), at the expense of undefined behavior if C does not
|
||||
occur within N bytes. */
|
||||
@ -365,9 +446,12 @@ _GL_CXXALIAS_SYS_CAST2 (rawmemchr,
|
||||
# if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 10) && !defined __UCLIBC__) \
|
||||
&& (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4) \
|
||||
|| defined __clang__)
|
||||
_GL_CXXALIASWARN1 (rawmemchr, void *, (void *__s, int __c_in) throw ());
|
||||
_GL_CXXALIASWARN1 (rawmemchr, void *,
|
||||
(void *__s, int __c_in)
|
||||
_GL_ATTRIBUTE_NOTHROW);
|
||||
_GL_CXXALIASWARN1 (rawmemchr, void const *,
|
||||
(void const *__s, int __c_in) throw ());
|
||||
(void const *__s, int __c_in)
|
||||
_GL_ATTRIBUTE_NOTHROW);
|
||||
# else
|
||||
_GL_CXXALIASWARN (rawmemchr);
|
||||
# endif
|
||||
@ -381,14 +465,28 @@ _GL_WARN_ON_USE (rawmemchr, "rawmemchr is unportable - "
|
||||
|
||||
/* Copy SRC to DST, returning the address of the terminating '\0' in DST. */
|
||||
#if @GNULIB_STPCPY@
|
||||
# if ! @HAVE_STPCPY@
|
||||
# if @REPLACE_STPCPY@
|
||||
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
|
||||
# undef stpcpy
|
||||
# define stpcpy rpl_stpcpy
|
||||
# endif
|
||||
_GL_FUNCDECL_RPL (stpcpy, char *,
|
||||
(char *restrict __dst, char const *restrict __src)
|
||||
_GL_ARG_NONNULL ((1, 2)));
|
||||
_GL_CXXALIAS_RPL (stpcpy, char *,
|
||||
(char *restrict __dst, char const *restrict __src));
|
||||
# else
|
||||
# if !@HAVE_STPCPY@
|
||||
_GL_FUNCDECL_SYS (stpcpy, char *,
|
||||
(char *restrict __dst, char const *restrict __src)
|
||||
_GL_ARG_NONNULL ((1, 2)));
|
||||
# endif
|
||||
# endif
|
||||
_GL_CXXALIAS_SYS (stpcpy, char *,
|
||||
(char *restrict __dst, char const *restrict __src));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (stpcpy);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
# undef stpcpy
|
||||
# if HAVE_RAW_DECL_STPCPY
|
||||
@ -423,7 +521,9 @@ _GL_CXXALIAS_SYS (stpncpy, char *,
|
||||
(char *restrict __dst, char const *restrict __src,
|
||||
size_t __n));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (stpncpy);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
# undef stpncpy
|
||||
# if HAVE_RAW_DECL_STPNCPY
|
||||
@ -471,10 +571,13 @@ _GL_CXXALIAS_SYS_CAST2 (strchrnul,
|
||||
# if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 10) && !defined __UCLIBC__) \
|
||||
&& (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4) \
|
||||
|| defined __clang__)
|
||||
_GL_CXXALIASWARN1 (strchrnul, char *, (char *__s, int __c_in) throw ());
|
||||
_GL_CXXALIASWARN1 (strchrnul, char *,
|
||||
(char *__s, int __c_in)
|
||||
_GL_ATTRIBUTE_NOTHROW);
|
||||
_GL_CXXALIASWARN1 (strchrnul, char const *,
|
||||
(char const *__s, int __c_in) throw ());
|
||||
# else
|
||||
(char const *__s, int __c_in)
|
||||
_GL_ATTRIBUTE_NOTHROW);
|
||||
# elif __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (strchrnul);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
@ -509,10 +612,18 @@ _GL_CXXALIAS_MDA (strdup, char *, (char const *__s));
|
||||
# undef strdup
|
||||
# endif
|
||||
# if (!@HAVE_DECL_STRDUP@ || __GNUC__ >= 11) && !defined strdup
|
||||
# if __GLIBC__ + (__GLIBC_MINOR__ >= 2) > 2
|
||||
_GL_FUNCDECL_SYS (strdup, char *,
|
||||
(char const *__s)
|
||||
_GL_ATTRIBUTE_NOTHROW
|
||||
_GL_ARG_NONNULL ((1))
|
||||
_GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
|
||||
# else
|
||||
_GL_FUNCDECL_SYS (strdup, char *,
|
||||
(char const *__s)
|
||||
_GL_ARG_NONNULL ((1))
|
||||
_GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
|
||||
# endif
|
||||
# endif
|
||||
_GL_CXXALIAS_SYS (strdup, char *, (char const *__s));
|
||||
# endif
|
||||
@ -520,10 +631,18 @@ _GL_CXXALIASWARN (strdup);
|
||||
#else
|
||||
# if __GNUC__ >= 11 && !defined strdup
|
||||
/* For -Wmismatched-dealloc: Associate strdup with free or rpl_free. */
|
||||
# if __GLIBC__ + (__GLIBC_MINOR__ >= 2) > 2
|
||||
_GL_FUNCDECL_SYS (strdup, char *,
|
||||
(char const *__s)
|
||||
_GL_ATTRIBUTE_NOTHROW
|
||||
_GL_ARG_NONNULL ((1))
|
||||
_GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
|
||||
# else
|
||||
_GL_FUNCDECL_SYS (strdup, char *,
|
||||
(char const *__s)
|
||||
_GL_ARG_NONNULL ((1))
|
||||
_GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
|
||||
# endif
|
||||
# endif
|
||||
# if defined GNULIB_POSIXCHECK
|
||||
# undef strdup
|
||||
@ -592,10 +711,18 @@ _GL_FUNCDECL_RPL (strndup, char *,
|
||||
_GL_CXXALIAS_RPL (strndup, char *, (char const *__s, size_t __n));
|
||||
# else
|
||||
# if !@HAVE_DECL_STRNDUP@ || (__GNUC__ >= 11 && !defined strndup)
|
||||
# if __GLIBC__ + (__GLIBC_MINOR__ >= 2) > 2
|
||||
_GL_FUNCDECL_SYS (strndup, char *,
|
||||
(char const *__s, size_t __n)
|
||||
_GL_ATTRIBUTE_NOTHROW
|
||||
_GL_ARG_NONNULL ((1))
|
||||
_GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
|
||||
# else
|
||||
_GL_FUNCDECL_SYS (strndup, char *,
|
||||
(char const *__s, size_t __n)
|
||||
_GL_ARG_NONNULL ((1))
|
||||
_GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
|
||||
# endif
|
||||
# endif
|
||||
_GL_CXXALIAS_SYS (strndup, char *, (char const *__s, size_t __n));
|
||||
# endif
|
||||
@ -603,10 +730,18 @@ _GL_CXXALIASWARN (strndup);
|
||||
#else
|
||||
# if __GNUC__ >= 11 && !defined strndup
|
||||
/* For -Wmismatched-dealloc: Associate strndup with free or rpl_free. */
|
||||
# if __GLIBC__ + (__GLIBC_MINOR__ >= 2) > 2
|
||||
_GL_FUNCDECL_SYS (strndup, char *,
|
||||
(char const *__s, size_t __n)
|
||||
_GL_ATTRIBUTE_NOTHROW
|
||||
_GL_ARG_NONNULL ((1))
|
||||
_GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
|
||||
# else
|
||||
_GL_FUNCDECL_SYS (strndup, char *,
|
||||
(char const *__s, size_t __n)
|
||||
_GL_ARG_NONNULL ((1))
|
||||
_GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
|
||||
# endif
|
||||
# endif
|
||||
# if defined GNULIB_POSIXCHECK
|
||||
# undef strndup
|
||||
@ -675,9 +810,12 @@ _GL_CXXALIAS_SYS_CAST2 (strpbrk,
|
||||
# if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 10) && !defined __UCLIBC__) \
|
||||
&& (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4) \
|
||||
|| defined __clang__)
|
||||
_GL_CXXALIASWARN1 (strpbrk, char *, (char *__s, char const *__accept) throw ());
|
||||
_GL_CXXALIASWARN1 (strpbrk, char *,
|
||||
(char *__s, char const *__accept)
|
||||
_GL_ATTRIBUTE_NOTHROW);
|
||||
_GL_CXXALIASWARN1 (strpbrk, char const *,
|
||||
(char const *__s, char const *__accept) throw ());
|
||||
(char const *__s, char const *__accept)
|
||||
_GL_ATTRIBUTE_NOTHROW);
|
||||
# elif __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (strpbrk);
|
||||
# endif
|
||||
@ -785,9 +923,11 @@ _GL_CXXALIAS_SYS_CAST2 (strstr,
|
||||
&& (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4) \
|
||||
|| defined __clang__)
|
||||
_GL_CXXALIASWARN1 (strstr, char *,
|
||||
(char *haystack, const char *needle) throw ());
|
||||
(char *haystack, const char *needle)
|
||||
_GL_ATTRIBUTE_NOTHROW);
|
||||
_GL_CXXALIASWARN1 (strstr, const char *,
|
||||
(const char *haystack, const char *needle) throw ());
|
||||
(const char *haystack, const char *needle)
|
||||
_GL_ATTRIBUTE_NOTHROW);
|
||||
# elif __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (strstr);
|
||||
# endif
|
||||
@ -836,10 +976,12 @@ _GL_CXXALIAS_SYS_CAST2 (strcasestr,
|
||||
&& (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4) \
|
||||
|| defined __clang__)
|
||||
_GL_CXXALIASWARN1 (strcasestr, char *,
|
||||
(char *haystack, const char *needle) throw ());
|
||||
(char *haystack, const char *needle)
|
||||
_GL_ATTRIBUTE_NOTHROW);
|
||||
_GL_CXXALIASWARN1 (strcasestr, const char *,
|
||||
(const char *haystack, const char *needle) throw ());
|
||||
# else
|
||||
(const char *haystack, const char *needle)
|
||||
_GL_ATTRIBUTE_NOTHROW);
|
||||
# elif __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (strcasestr);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
@ -943,7 +1085,9 @@ _GL_FUNCDECL_SYS (mbslen, size_t, (const char *string)
|
||||
_GL_ARG_NONNULL ((1)));
|
||||
_GL_CXXALIAS_SYS (mbslen, size_t, (const char *string));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (mbslen);
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if @GNULIB_MBSNLEN@
|
||||
@ -1185,7 +1329,7 @@ _GL_FUNCDECL_SYS (strerror_r, int, (int errnum, char *buf, size_t buflen)
|
||||
# endif
|
||||
_GL_CXXALIAS_SYS (strerror_r, int, (int errnum, char *buf, size_t buflen));
|
||||
# endif
|
||||
# if @HAVE_DECL_STRERROR_R@
|
||||
# if __GLIBC__ >= 2 && @HAVE_DECL_STRERROR_R@
|
||||
_GL_CXXALIASWARN (strerror_r);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
@ -1275,12 +1419,22 @@ _GL_WARN_ON_USE (strsignal, "strsignal is unportable - "
|
||||
#endif
|
||||
|
||||
#if @GNULIB_STRVERSCMP@
|
||||
# if !@HAVE_STRVERSCMP@
|
||||
# if @REPLACE_STRVERSCMP@
|
||||
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
|
||||
# define strverscmp rpl_strverscmp
|
||||
# endif
|
||||
_GL_FUNCDECL_RPL (strverscmp, int, (const char *, const char *)
|
||||
_GL_ATTRIBUTE_PURE
|
||||
_GL_ARG_NONNULL ((1, 2)));
|
||||
_GL_CXXALIAS_RPL (strverscmp, int, (const char *, const char *));
|
||||
# else
|
||||
# if !@HAVE_STRVERSCMP@
|
||||
_GL_FUNCDECL_SYS (strverscmp, int, (const char *, const char *)
|
||||
_GL_ATTRIBUTE_PURE
|
||||
_GL_ARG_NONNULL ((1, 2)));
|
||||
# endif
|
||||
# endif
|
||||
_GL_CXXALIAS_SYS (strverscmp, int, (const char *, const char *));
|
||||
# endif
|
||||
_GL_CXXALIASWARN (strverscmp);
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
# undef strverscmp
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Find the length of STRING + 1, but scan at most MAXLEN bytes.
|
||||
Copyright (C) 2005-2006, 2009-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2005-2006, 2009-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Find the length of STRING + 1, but scan at most MAXLEN bytes.
|
||||
Copyright (C) 2005, 2009-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2005, 2009-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
@ -17,6 +17,11 @@
|
||||
#ifndef _STRNLEN1_H
|
||||
#define _STRNLEN1_H
|
||||
|
||||
/* This file uses _GL_ATTRIBUTE_PURE. */
|
||||
#if !_GL_CONFIG_H_INCLUDED
|
||||
#error "Please include config.h first."
|
||||
#endif
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Provide a more complete sys/stat.h header file.
|
||||
Copyright (C) 2005-2022 Free Software Foundation, Inc.
|
||||
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 Lesser General Public License as
|
||||
@ -25,6 +25,13 @@
|
||||
#endif
|
||||
@PRAGMA_COLUMNS@
|
||||
|
||||
/* This file uses #include_next of a system file that defines time_t.
|
||||
For the 'year2038' module to work right, <config.h> needs to have been
|
||||
included before. */
|
||||
#if !_GL_CONFIG_H_INCLUDED
|
||||
#error "Please include config.h first."
|
||||
#endif
|
||||
|
||||
#if defined __need_system_sys_stat_h
|
||||
/* Special invocation convention. */
|
||||
|
||||
@ -48,12 +55,41 @@
|
||||
#ifndef _@GUARD_PREFIX@_SYS_STAT_H
|
||||
#define _@GUARD_PREFIX@_SYS_STAT_H
|
||||
|
||||
/* This file uses _GL_ATTRIBUTE_NOTHROW, GNULIB_POSIXCHECK, HAVE_RAW_DECL_*. */
|
||||
#if !_GL_CONFIG_H_INCLUDED
|
||||
#error "Please include config.h first."
|
||||
#endif
|
||||
|
||||
|
||||
/* _GL_ATTRIBUTE_NOTHROW declares that the function does not throw exceptions.
|
||||
*/
|
||||
#ifndef _GL_ATTRIBUTE_NOTHROW
|
||||
# if defined __cplusplus
|
||||
# if (__GNUC__ + (__GNUC_MINOR__ >= 8) > 2) || __clang_major >= 4
|
||||
# if __cplusplus >= 201103L
|
||||
# define _GL_ATTRIBUTE_NOTHROW noexcept (true)
|
||||
# else
|
||||
# define _GL_ATTRIBUTE_NOTHROW throw ()
|
||||
# endif
|
||||
# else
|
||||
# define _GL_ATTRIBUTE_NOTHROW
|
||||
# endif
|
||||
# else
|
||||
# if (__GNUC__ + (__GNUC_MINOR__ >= 3) > 3) || defined __clang__
|
||||
# define _GL_ATTRIBUTE_NOTHROW __attribute__ ((__nothrow__))
|
||||
# else
|
||||
# define _GL_ATTRIBUTE_NOTHROW
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */
|
||||
|
||||
/* The definition of _GL_ARG_NONNULL is copied here. */
|
||||
|
||||
/* The definition of _GL_WARN_ON_USE is copied here. */
|
||||
|
||||
|
||||
/* Before doing "#define mknod rpl_mknod" below, we need to include all
|
||||
headers that may declare mknod(). OS/2 kLIBC declares mknod() in
|
||||
<unistd.h>, not in <sys/stat.h>. */
|
||||
@ -549,7 +585,7 @@ _GL_FUNCDECL_SYS (futimens, int, (int fd, struct timespec const times[2]));
|
||||
# endif
|
||||
_GL_CXXALIAS_SYS (futimens, int, (int fd, struct timespec const times[2]));
|
||||
# endif
|
||||
# if @HAVE_FUTIMENS@
|
||||
# if __GLIBC__ >= 2 && @HAVE_FUTIMENS@
|
||||
_GL_CXXALIASWARN (futimens);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
@ -563,7 +599,11 @@ _GL_WARN_ON_USE (futimens, "futimens is not portable - "
|
||||
|
||||
#if @GNULIB_GETUMASK@
|
||||
# if !@HAVE_GETUMASK@
|
||||
# if __GLIBC__ + (__GLIBC_MINOR__ >= 2) > 2
|
||||
_GL_FUNCDECL_SYS (getumask, mode_t, (void) _GL_ATTRIBUTE_NOTHROW);
|
||||
# else
|
||||
_GL_FUNCDECL_SYS (getumask, mode_t, (void));
|
||||
# endif
|
||||
# endif
|
||||
_GL_CXXALIAS_SYS (getumask, mode_t, (void));
|
||||
# if @HAVE_GETUMASK@
|
||||
@ -596,44 +636,6 @@ _GL_WARN_ON_USE (lchmod, "lchmod is unportable - "
|
||||
#endif
|
||||
|
||||
|
||||
#if @GNULIB_LSTAT@
|
||||
# if ! @HAVE_LSTAT@
|
||||
/* mingw does not support symlinks, therefore it does not have lstat. But
|
||||
without links, stat does just fine. */
|
||||
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
|
||||
# define lstat stat
|
||||
# endif
|
||||
_GL_CXXALIAS_RPL_1 (lstat, stat, int,
|
||||
(const char *restrict name, struct stat *restrict buf));
|
||||
# elif @REPLACE_LSTAT@
|
||||
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
|
||||
# undef lstat
|
||||
# define lstat rpl_lstat
|
||||
# endif
|
||||
_GL_FUNCDECL_RPL (lstat, int,
|
||||
(const char *restrict name, struct stat *restrict buf)
|
||||
_GL_ARG_NONNULL ((1, 2)));
|
||||
_GL_CXXALIAS_RPL (lstat, int,
|
||||
(const char *restrict name, struct stat *restrict buf));
|
||||
# else
|
||||
_GL_CXXALIAS_SYS (lstat, int,
|
||||
(const char *restrict name, struct stat *restrict buf));
|
||||
# endif
|
||||
# if @HAVE_LSTAT@
|
||||
_GL_CXXALIASWARN (lstat);
|
||||
# endif
|
||||
#elif @GNULIB_OVERRIDES_STRUCT_STAT@
|
||||
# undef lstat
|
||||
# define lstat lstat_used_without_requesting_gnulib_module_lstat
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
# undef lstat
|
||||
# if HAVE_RAW_DECL_LSTAT
|
||||
_GL_WARN_ON_USE (lstat, "lstat is unportable - "
|
||||
"use gnulib module lstat for portability");
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
||||
#if @GNULIB_MKDIR@
|
||||
# if @REPLACE_MKDIR@
|
||||
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
|
||||
@ -754,7 +756,9 @@ _GL_FUNCDECL_SYS (mkfifoat, int, (int fd, char const *file, mode_t mode)
|
||||
# endif
|
||||
_GL_CXXALIAS_SYS (mkfifoat, int, (int fd, char const *file, mode_t mode));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (mkfifoat);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
# undef mkfifoat
|
||||
# if HAVE_RAW_DECL_MKFIFOAT
|
||||
@ -811,7 +815,9 @@ _GL_FUNCDECL_SYS (mknodat, int,
|
||||
_GL_CXXALIAS_SYS (mknodat, int,
|
||||
(int fd, char const *file, mode_t mode, dev_t dev));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (mknodat);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
# undef mknodat
|
||||
# if HAVE_RAW_DECL_MKNODAT
|
||||
@ -895,6 +901,44 @@ _GL_WARN_ON_USE (stat, "stat is unportable - "
|
||||
#endif
|
||||
|
||||
|
||||
#if @GNULIB_LSTAT@
|
||||
# if ! @HAVE_LSTAT@
|
||||
/* mingw does not support symlinks, therefore it does not have lstat. But
|
||||
without links, stat does just fine. */
|
||||
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
|
||||
# define lstat stat
|
||||
# endif
|
||||
_GL_CXXALIAS_RPL_1 (lstat, stat, int,
|
||||
(const char *restrict name, struct stat *restrict buf));
|
||||
# elif @REPLACE_LSTAT@
|
||||
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
|
||||
# undef lstat
|
||||
# define lstat rpl_lstat
|
||||
# endif
|
||||
_GL_FUNCDECL_RPL (lstat, int,
|
||||
(const char *restrict name, struct stat *restrict buf)
|
||||
_GL_ARG_NONNULL ((1, 2)));
|
||||
_GL_CXXALIAS_RPL (lstat, int,
|
||||
(const char *restrict name, struct stat *restrict buf));
|
||||
# else
|
||||
_GL_CXXALIAS_SYS (lstat, int,
|
||||
(const char *restrict name, struct stat *restrict buf));
|
||||
# endif
|
||||
# if @HAVE_LSTAT@
|
||||
_GL_CXXALIASWARN (lstat);
|
||||
# endif
|
||||
#elif @GNULIB_OVERRIDES_STRUCT_STAT@
|
||||
# undef lstat
|
||||
# define lstat lstat_used_without_requesting_gnulib_module_lstat
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
# undef lstat
|
||||
# if HAVE_RAW_DECL_LSTAT
|
||||
_GL_WARN_ON_USE (lstat, "lstat is unportable - "
|
||||
"use gnulib module lstat for portability");
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
||||
#if @GNULIB_MDA_UMASK@
|
||||
/* On native Windows, map 'umask' to '_umask', so that -loldnames is not
|
||||
required. In C++ with GNULIB_NAMESPACE, avoid differences between
|
||||
@ -937,7 +981,7 @@ _GL_FUNCDECL_SYS (utimensat, int, (int fd, char const *name,
|
||||
_GL_CXXALIAS_SYS (utimensat, int, (int fd, char const *name,
|
||||
struct timespec const times[2], int flag));
|
||||
# endif
|
||||
# if @HAVE_UTIMENSAT@
|
||||
# if __GLIBC__ >= 2 && @HAVE_UTIMENSAT@
|
||||
_GL_CXXALIASWARN (utimensat);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* Provide a more complete sys/time.h.
|
||||
|
||||
Copyright (C) 2007-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2007-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
@ -24,6 +24,13 @@
|
||||
#endif
|
||||
@PRAGMA_COLUMNS@
|
||||
|
||||
/* This file uses #include_next of a system file that defines time_t.
|
||||
For the 'year2038' module to work right, <config.h> needs to have been
|
||||
included before. */
|
||||
#if !_GL_CONFIG_H_INCLUDED
|
||||
#error "Please include config.h first."
|
||||
#endif
|
||||
|
||||
/* On Cygwin and on many BSDish systems, <sys/time.h> includes itself
|
||||
recursively via <sys/select.h>.
|
||||
Simply delegate to the system's header in this case; it is a no-op.
|
||||
@ -41,6 +48,11 @@
|
||||
#ifndef _@GUARD_PREFIX@_SYS_TIME_H
|
||||
#define _@GUARD_PREFIX@_SYS_TIME_H
|
||||
|
||||
/* This file uses GNULIB_POSIXCHECK, HAVE_RAW_DECL_*. */
|
||||
#if !_GL_CONFIG_H_INCLUDED
|
||||
#error "Please include config.h first."
|
||||
#endif
|
||||
|
||||
#if ! @HAVE_SYS_TIME_H@
|
||||
# include <time.h>
|
||||
#endif
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* Provide a more complete sys/types.h.
|
||||
|
||||
Copyright (C) 2011-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2011-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
@ -20,6 +20,13 @@
|
||||
#endif
|
||||
@PRAGMA_COLUMNS@
|
||||
|
||||
/* This file uses #include_next of a system file that defines time_t.
|
||||
For the 'year2038' module to work right, <config.h> needs to have been
|
||||
included before. */
|
||||
#if !_GL_CONFIG_H_INCLUDED
|
||||
#error "Please include config.h first."
|
||||
#endif
|
||||
|
||||
#if defined _WIN32 && !defined __CYGWIN__ \
|
||||
&& (defined __need_off_t || defined __need___off64_t \
|
||||
|| defined __need_ssize_t || defined __need_time_t)
|
||||
|
137
lib/time.in.h
137
lib/time.in.h
@ -1,6 +1,6 @@
|
||||
/* A more-standard <time.h>.
|
||||
|
||||
Copyright (C) 2007-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2007-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
@ -20,6 +20,13 @@
|
||||
#endif
|
||||
@PRAGMA_COLUMNS@
|
||||
|
||||
/* This file uses #include_next of a system file that defines time_t.
|
||||
For the 'year2038' module to work right, <config.h> needs to have been
|
||||
included before. */
|
||||
#if !_GL_CONFIG_H_INCLUDED
|
||||
#error "Please include config.h first."
|
||||
#endif
|
||||
|
||||
/* Don't get in the way of glibc when it includes time.h merely to
|
||||
declare a few standard symbols, rather than to declare all the
|
||||
symbols. (However, skip this for MinGW as it treats __need_time_t
|
||||
@ -45,6 +52,12 @@
|
||||
|
||||
# @INCLUDE_NEXT@ @NEXT_TIME_H@
|
||||
|
||||
/* This file uses _GL_ATTRIBUTE_DEPRECATED, GNULIB_POSIXCHECK,
|
||||
HAVE_RAW_DECL_*. */
|
||||
# if !_GL_CONFIG_H_INCLUDED
|
||||
# error "Please include config.h first."
|
||||
# endif
|
||||
|
||||
/* NetBSD 5.0 mis-defines NULL. */
|
||||
# include <stddef.h>
|
||||
|
||||
@ -112,12 +125,30 @@ struct __time_t_must_be_integral {
|
||||
/* Set *TS to the current time, and return BASE.
|
||||
Upon failure, return 0. */
|
||||
# if @GNULIB_TIMESPEC_GET@
|
||||
# if ! @HAVE_TIMESPEC_GET@
|
||||
# if @REPLACE_TIMESPEC_GET@
|
||||
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
|
||||
# undef timespec_get
|
||||
# define timespec_get rpl_timespec_get
|
||||
# endif
|
||||
_GL_FUNCDECL_RPL (timespec_get, int, (struct timespec *ts, int base)
|
||||
_GL_ARG_NONNULL ((1)));
|
||||
_GL_CXXALIAS_RPL (timespec_get, int, (struct timespec *ts, int base));
|
||||
# else
|
||||
# if !@HAVE_TIMESPEC_GET@
|
||||
_GL_FUNCDECL_SYS (timespec_get, int, (struct timespec *ts, int base)
|
||||
_GL_ARG_NONNULL ((1)));
|
||||
# endif
|
||||
# endif
|
||||
_GL_CXXALIAS_SYS (timespec_get, int, (struct timespec *ts, int base));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (timespec_get);
|
||||
# endif
|
||||
# elif defined GNULIB_POSIXCHECK
|
||||
# undef timespec_get
|
||||
# if HAVE_RAW_DECL_TIMESPEC_GET
|
||||
_GL_WARN_ON_USE (timespec_get, "timespec_get is unportable - "
|
||||
"use gnulib module timespec_get for portability");
|
||||
# endif
|
||||
# endif
|
||||
|
||||
/* Set *TS to the current time resolution, and return BASE.
|
||||
@ -129,6 +160,34 @@ _GL_FUNCDECL_SYS (timespec_getres, int, (struct timespec *ts, int base)
|
||||
# endif
|
||||
_GL_CXXALIAS_SYS (timespec_getres, int, (struct timespec *ts, int base));
|
||||
_GL_CXXALIASWARN (timespec_getres);
|
||||
# elif defined GNULIB_POSIXCHECK
|
||||
# undef timespec_getres
|
||||
# if HAVE_RAW_DECL_TIMESPEC_GETRES
|
||||
_GL_WARN_ON_USE (timespec_getres, "timespec_getres is unportable - "
|
||||
"use gnulib module timespec_getres for portability");
|
||||
# endif
|
||||
# endif
|
||||
|
||||
/* Return the number of seconds that have elapsed since the Epoch. */
|
||||
# if @GNULIB_TIME@
|
||||
# if @REPLACE_TIME@
|
||||
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
|
||||
# define time rpl_time
|
||||
# endif
|
||||
_GL_FUNCDECL_RPL (time, time_t, (time_t *__tp));
|
||||
_GL_CXXALIAS_RPL (time, time_t, (time_t *__tp));
|
||||
# else
|
||||
_GL_CXXALIAS_SYS (time, time_t, (time_t *__tp));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (time);
|
||||
# endif
|
||||
# elif defined GNULIB_POSIXCHECK
|
||||
# undef time
|
||||
# if HAVE_RAW_DECL_TIME
|
||||
_GL_WARN_ON_USE (time, "time has consistency problems - "
|
||||
"use gnulib module time for portability");
|
||||
# endif
|
||||
# endif
|
||||
|
||||
/* Sleep for at least RQTP seconds unless interrupted, If interrupted,
|
||||
@ -154,6 +213,12 @@ _GL_CXXALIAS_SYS (nanosleep, int,
|
||||
(struct timespec const *__rqtp, struct timespec *__rmtp));
|
||||
# endif
|
||||
_GL_CXXALIASWARN (nanosleep);
|
||||
# elif defined GNULIB_POSIXCHECK
|
||||
# undef nanosleep
|
||||
# if HAVE_RAW_DECL_NANOSLEEP
|
||||
_GL_WARN_ON_USE (nanosleep, "nanosleep is unportable - "
|
||||
"use gnulib module nanosleep for portability");
|
||||
# endif
|
||||
# endif
|
||||
|
||||
/* Initialize time conversion information. */
|
||||
@ -189,6 +254,12 @@ _GL_CXXALIAS_MDA (tzset, void, (void));
|
||||
_GL_CXXALIAS_SYS (tzset, void, (void));
|
||||
# endif
|
||||
_GL_CXXALIASWARN (tzset);
|
||||
# elif defined GNULIB_POSIXCHECK
|
||||
# undef tzset
|
||||
# if HAVE_RAW_DECL_TZSET
|
||||
_GL_WARN_ON_USE (tzset, "tzset has portability problems - "
|
||||
"use gnulib module tzset for portability");
|
||||
# endif
|
||||
# endif
|
||||
|
||||
/* Return the 'time_t' representation of TP and normalize TP. */
|
||||
@ -205,6 +276,12 @@ _GL_CXXALIAS_SYS (mktime, time_t, (struct tm *__tp));
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (mktime);
|
||||
# endif
|
||||
# elif defined GNULIB_POSIXCHECK
|
||||
# undef mktime
|
||||
# if HAVE_RAW_DECL_MKTIME
|
||||
_GL_WARN_ON_USE (mktime, "mktime has portability problems - "
|
||||
"use gnulib module mktime for portability");
|
||||
# endif
|
||||
# endif
|
||||
|
||||
/* Convert TIMER to RESULT, assuming local time and UTC respectively. See
|
||||
@ -255,6 +332,17 @@ _GL_CXXALIAS_SYS (gmtime_r, struct tm *, (time_t const *restrict __timer,
|
||||
# if @HAVE_DECL_LOCALTIME_R@
|
||||
_GL_CXXALIASWARN (gmtime_r);
|
||||
# endif
|
||||
# elif defined GNULIB_POSIXCHECK
|
||||
# undef localtime_r
|
||||
# if HAVE_RAW_DECL_LOCALTIME_R
|
||||
_GL_WARN_ON_USE (localtime_r, "localtime_r is unportable - "
|
||||
"use gnulib module time_r for portability");
|
||||
# endif
|
||||
# undef gmtime_r
|
||||
# if HAVE_RAW_DECL_GMTIME_R
|
||||
_GL_WARN_ON_USE (gmtime_r, "gmtime_r is unportable - "
|
||||
"use gnulib module time_r for portability");
|
||||
# endif
|
||||
# endif
|
||||
|
||||
/* Convert TIMER to RESULT, assuming local time and UTC respectively. See
|
||||
@ -275,6 +363,12 @@ _GL_CXXALIAS_SYS (localtime, struct tm *, (time_t const *__timer));
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (localtime);
|
||||
# endif
|
||||
# elif defined GNULIB_POSIXCHECK
|
||||
# undef localtime
|
||||
# if HAVE_RAW_DECL_LOCALTIME
|
||||
_GL_WARN_ON_USE (localtime, "localtime has portability problems - "
|
||||
"use gnulib module localtime for portability");
|
||||
# endif
|
||||
# endif
|
||||
|
||||
# if 0 || @REPLACE_GMTIME@
|
||||
@ -306,6 +400,12 @@ _GL_CXXALIAS_SYS (strptime, char *, (char const *restrict __buf,
|
||||
char const *restrict __format,
|
||||
struct tm *restrict __tm));
|
||||
_GL_CXXALIASWARN (strptime);
|
||||
# elif defined GNULIB_POSIXCHECK
|
||||
# undef strptime
|
||||
# if HAVE_RAW_DECL_STRPTIME
|
||||
_GL_WARN_ON_USE (strptime, "strptime is unportable - "
|
||||
"use gnulib module strptime for portability");
|
||||
# endif
|
||||
# endif
|
||||
|
||||
/* Convert *TP to a date and time string. See
|
||||
@ -315,6 +415,9 @@ _GL_CXXALIASWARN (strptime);
|
||||
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
|
||||
# define ctime rpl_ctime
|
||||
# endif
|
||||
# ifndef __cplusplus
|
||||
_GL_ATTRIBUTE_DEPRECATED
|
||||
# endif
|
||||
_GL_FUNCDECL_RPL (ctime, char *, (time_t const *__tp)
|
||||
_GL_ARG_NONNULL ((1)));
|
||||
_GL_CXXALIAS_RPL (ctime, char *, (time_t const *__tp));
|
||||
@ -324,6 +427,12 @@ _GL_CXXALIAS_SYS (ctime, char *, (time_t const *__tp));
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (ctime);
|
||||
# endif
|
||||
# elif defined GNULIB_POSIXCHECK
|
||||
# undef ctime
|
||||
# if HAVE_RAW_DECL_CTIME
|
||||
_GL_WARN_ON_USE (ctime, "ctime has portability problems - "
|
||||
"use gnulib module ctime for portability");
|
||||
# endif
|
||||
# endif
|
||||
|
||||
/* Convert *TP to a date and time string. See
|
||||
@ -348,6 +457,12 @@ _GL_CXXALIAS_SYS (strftime, size_t,
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (strftime);
|
||||
# endif
|
||||
# elif defined GNULIB_POSIXCHECK
|
||||
# undef strftime
|
||||
# if HAVE_RAW_DECL_STRFTIME
|
||||
_GL_WARN_ON_USE (strftime, "strftime has portability problems - "
|
||||
"use gnulib module strftime-fixes for portability");
|
||||
# endif
|
||||
# endif
|
||||
|
||||
# if defined _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@
|
||||
@ -422,7 +537,15 @@ _GL_FUNCDECL_SYS (timegm, time_t, (struct tm *__tm) _GL_ARG_NONNULL ((1)));
|
||||
# endif
|
||||
_GL_CXXALIAS_SYS (timegm, time_t, (struct tm *__tm));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (timegm);
|
||||
# endif
|
||||
# elif defined GNULIB_POSIXCHECK
|
||||
# undef timegm
|
||||
# if HAVE_RAW_DECL_TIMEGM
|
||||
_GL_WARN_ON_USE (timegm, "timegm is unportable - "
|
||||
"use gnulib module timegm for portability");
|
||||
# endif
|
||||
# endif
|
||||
|
||||
/* Encourage applications to avoid unsafe functions that can overrun
|
||||
@ -430,23 +553,31 @@ _GL_CXXALIASWARN (timegm);
|
||||
applications should use strftime (or even sprintf) instead. */
|
||||
# if defined GNULIB_POSIXCHECK
|
||||
# undef asctime
|
||||
# if HAVE_RAW_DECL_ASCTIME
|
||||
_GL_WARN_ON_USE (asctime, "asctime can overrun buffers in some cases - "
|
||||
"better use strftime (or even sprintf) instead");
|
||||
# endif
|
||||
# endif
|
||||
# if defined GNULIB_POSIXCHECK
|
||||
# undef asctime_r
|
||||
# if HAVE_RAW_DECL_ASCTIME_R
|
||||
_GL_WARN_ON_USE (asctime_r, "asctime_r can overrun buffers in some cases - "
|
||||
"better use strftime (or even sprintf) instead");
|
||||
# endif
|
||||
# endif
|
||||
# if defined GNULIB_POSIXCHECK
|
||||
# undef ctime
|
||||
# if HAVE_RAW_DECL_CTIME
|
||||
_GL_WARN_ON_USE (ctime, "ctime can overrun buffers in some cases - "
|
||||
"better use strftime (or even sprintf) instead");
|
||||
# endif
|
||||
# endif
|
||||
# if defined GNULIB_POSIXCHECK
|
||||
# undef ctime_r
|
||||
# if HAVE_RAW_DECL_CTIME_R
|
||||
_GL_WARN_ON_USE (ctime_r, "ctime_r can overrun buffers in some cases - "
|
||||
"better use strftime (or even sprintf) instead");
|
||||
# endif
|
||||
# endif
|
||||
|
||||
#endif
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* Inline functions for <unistd.h>.
|
||||
|
||||
Copyright (C) 2012-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
@ -18,5 +18,5 @@
|
||||
#include <config.h>
|
||||
|
||||
#define _GL_UNISTD_INLINE _GL_EXTERN_INLINE
|
||||
#include "unistd.h"
|
||||
#include <unistd.h>
|
||||
typedef int dummy;
|
||||
|
144
lib/unistd.in.h
144
lib/unistd.in.h
@ -1,5 +1,5 @@
|
||||
/* Substitute for and wrapper around <unistd.h>.
|
||||
Copyright (C) 2003-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2003-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
@ -40,6 +40,24 @@
|
||||
# undef _GL_INCLUDING_UNISTD_H
|
||||
#endif
|
||||
|
||||
/* Avoid lseek bugs in FreeBSD, macOS <https://bugs.gnu.org/61386>.
|
||||
This bug is fixed after FreeBSD 13; see <https://bugs.freebsd.org/256205>.
|
||||
Use macOS "9999" to stand for a future fixed macOS version. */
|
||||
#if defined __FreeBSD__ && __FreeBSD__ < 14
|
||||
# undef SEEK_DATA
|
||||
# undef SEEK_HOLE
|
||||
#elif defined __APPLE__ && defined __MACH__ && defined SEEK_DATA
|
||||
# ifdef __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
|
||||
# include <AvailabilityMacros.h>
|
||||
# endif
|
||||
# if (!defined MAC_OS_X_VERSION_MIN_REQUIRED \
|
||||
|| MAC_OS_X_VERSION_MIN_REQUIRED < 99990000)
|
||||
# include <sys/fcntl.h> /* It also defines the two macros. */
|
||||
# undef SEEK_DATA
|
||||
# undef SEEK_HOLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* Get all possible declarations of gethostname(). */
|
||||
#if @GNULIB_GETHOSTNAME@ && @UNISTD_H_HAVE_WINSOCK2_H@ \
|
||||
&& !defined _GL_INCLUDING_WINSOCK2_H
|
||||
@ -51,6 +69,12 @@
|
||||
#if !defined _@GUARD_PREFIX@_UNISTD_H && !defined _GL_INCLUDING_WINSOCK2_H
|
||||
#define _@GUARD_PREFIX@_UNISTD_H
|
||||
|
||||
/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE, GNULIB_POSIXCHECK,
|
||||
HAVE_RAW_DECL_*. */
|
||||
#if !_GL_CONFIG_H_INCLUDED
|
||||
#error "Please include config.h first."
|
||||
#endif
|
||||
|
||||
/* NetBSD 5.0 mis-defines NULL. Also get size_t. */
|
||||
/* But avoid namespace pollution on glibc systems. */
|
||||
#ifndef __GLIBC__
|
||||
@ -152,9 +176,6 @@
|
||||
# include <getopt-pfx-core.h>
|
||||
#endif
|
||||
|
||||
#ifndef _GL_INLINE_HEADER_BEGIN
|
||||
#error "Please include config.h first."
|
||||
#endif
|
||||
_GL_INLINE_HEADER_BEGIN
|
||||
#ifndef _GL_UNISTD_INLINE
|
||||
# define _GL_UNISTD_INLINE _GL_INLINE
|
||||
@ -541,17 +562,22 @@ _GL_CXXALIASWARN (dup2);
|
||||
Return newfd if successful, otherwise -1 and errno set.
|
||||
See the Linux man page at
|
||||
<https://www.kernel.org/doc/man-pages/online/pages/man2/dup3.2.html>. */
|
||||
# if @HAVE_DUP3@
|
||||
# if @REPLACE_DUP3@
|
||||
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
|
||||
# undef dup3
|
||||
# define dup3 rpl_dup3
|
||||
# endif
|
||||
_GL_FUNCDECL_RPL (dup3, int, (int oldfd, int newfd, int flags));
|
||||
_GL_CXXALIAS_RPL (dup3, int, (int oldfd, int newfd, int flags));
|
||||
# else
|
||||
# if !@HAVE_DUP3@
|
||||
_GL_FUNCDECL_SYS (dup3, int, (int oldfd, int newfd, int flags));
|
||||
# endif
|
||||
_GL_CXXALIAS_SYS (dup3, int, (int oldfd, int newfd, int flags));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (dup3);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
# undef dup3
|
||||
# if HAVE_RAW_DECL_DUP3
|
||||
@ -870,7 +896,9 @@ _GL_FUNCDECL_SYS (execvpe, int,
|
||||
_GL_CXXALIAS_SYS (execvpe, int,
|
||||
(const char *program, char * const *argv, char * const *env));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (execvpe);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
# undef execvpe
|
||||
# if HAVE_RAW_DECL_EXECVPE
|
||||
@ -925,7 +953,9 @@ _GL_FUNCDECL_SYS (faccessat, int,
|
||||
_GL_CXXALIAS_SYS (faccessat, int,
|
||||
(int fd, char const *file, int mode, int flag));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (faccessat);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
# undef faccessat
|
||||
# if HAVE_RAW_DECL_FACCESSAT
|
||||
@ -941,23 +971,28 @@ _GL_WARN_ON_USE (faccessat, "faccessat is not portable - "
|
||||
Return 0 if successful, otherwise -1 and errno set.
|
||||
See the POSIX:2008 specification
|
||||
<https://pubs.opengroup.org/onlinepubs/9699919799/functions/fchdir.html>. */
|
||||
# if ! @HAVE_FCHDIR@
|
||||
# if @REPLACE_FCHDIR@
|
||||
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
|
||||
# undef fchdir
|
||||
# define fchdir rpl_fchdir
|
||||
# endif
|
||||
_GL_FUNCDECL_RPL (fchdir, int, (int /*fd*/));
|
||||
_GL_CXXALIAS_RPL (fchdir, int, (int /*fd*/));
|
||||
# else
|
||||
# if !@HAVE_FCHDIR@ || !@HAVE_DECL_FCHDIR@
|
||||
_GL_FUNCDECL_SYS (fchdir, int, (int /*fd*/));
|
||||
|
||||
# endif
|
||||
_GL_CXXALIAS_SYS (fchdir, int, (int /*fd*/));
|
||||
# endif
|
||||
_GL_CXXALIASWARN (fchdir);
|
||||
# if @REPLACE_FCHDIR@ || !@HAVE_FCHDIR@
|
||||
/* Gnulib internal hooks needed to maintain the fchdir metadata. */
|
||||
_GL_EXTERN_C int _gl_register_fd (int fd, const char *filename)
|
||||
_GL_ARG_NONNULL ((2));
|
||||
_GL_EXTERN_C void _gl_unregister_fd (int fd);
|
||||
_GL_EXTERN_C int _gl_register_dup (int oldfd, int newfd);
|
||||
_GL_EXTERN_C const char *_gl_directory_name (int fd);
|
||||
|
||||
# else
|
||||
# if !@HAVE_DECL_FCHDIR@
|
||||
_GL_FUNCDECL_SYS (fchdir, int, (int /*fd*/));
|
||||
# endif
|
||||
# endif
|
||||
_GL_CXXALIAS_SYS (fchdir, int, (int /*fd*/));
|
||||
_GL_CXXALIASWARN (fchdir);
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
# undef fchdir
|
||||
# if HAVE_RAW_DECL_FCHDIR
|
||||
@ -1002,11 +1037,22 @@ _GL_WARN_ON_USE (fchownat, "fchownat is not portable - "
|
||||
Return 0 if successful, otherwise -1 and errno set.
|
||||
See POSIX:2008 specification
|
||||
<https://pubs.opengroup.org/onlinepubs/9699919799/functions/fdatasync.html>. */
|
||||
# if !@HAVE_FDATASYNC@ || !@HAVE_DECL_FDATASYNC@
|
||||
# if @REPLACE_FDATASYNC@
|
||||
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
|
||||
# undef fdatasync
|
||||
# define fdatasync rpl_fdatasync
|
||||
# endif
|
||||
_GL_FUNCDECL_RPL (fdatasync, int, (int fd));
|
||||
_GL_CXXALIAS_RPL (fdatasync, int, (int fd));
|
||||
# else
|
||||
# if !@HAVE_FDATASYNC@|| !@HAVE_DECL_FDATASYNC@
|
||||
_GL_FUNCDECL_SYS (fdatasync, int, (int fd));
|
||||
# endif
|
||||
# endif
|
||||
_GL_CXXALIAS_SYS (fdatasync, int, (int fd));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (fdatasync);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
# undef fdatasync
|
||||
# if HAVE_RAW_DECL_FDATASYNC
|
||||
@ -1053,7 +1099,9 @@ _GL_FUNCDECL_SYS (ftruncate, int, (int fd, off_t length));
|
||||
# endif
|
||||
_GL_CXXALIAS_SYS (ftruncate, int, (int fd, off_t length));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (ftruncate);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
# undef ftruncate
|
||||
# if HAVE_RAW_DECL_FTRUNCATE
|
||||
@ -1070,10 +1118,10 @@ _GL_WARN_ON_USE (ftruncate, "ftruncate is unportable - "
|
||||
or SIZE was too small.
|
||||
See the POSIX:2008 specification
|
||||
<https://pubs.opengroup.org/onlinepubs/9699919799/functions/getcwd.html>.
|
||||
Additionally, the gnulib module 'getcwd' guarantees the following GNU
|
||||
extension: If BUF is NULL, an array is allocated with 'malloc'; the array
|
||||
is SIZE bytes long, unless SIZE == 0, in which case it is as big as
|
||||
necessary. */
|
||||
Additionally, the gnulib module 'getcwd' or 'getcwd-lgpl' guarantees the
|
||||
following GNU extension: If BUF is NULL, an array is allocated with
|
||||
'malloc'; the array is SIZE bytes long, unless SIZE == 0, in which case
|
||||
it is as big as necessary. */
|
||||
# if @REPLACE_GETCWD@
|
||||
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
|
||||
# define getcwd rpl_getcwd
|
||||
@ -1143,7 +1191,9 @@ _GL_FUNCDECL_SYS (getdomainname, int, (char *name, size_t len)
|
||||
# endif
|
||||
_GL_CXXALIAS_SYS (getdomainname, int, (char *name, size_t len));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (getdomainname);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
# undef getdomainname
|
||||
# if HAVE_RAW_DECL_GETDOMAINNAME
|
||||
@ -1183,11 +1233,22 @@ _GL_WARN_ON_USE (getdtablesize, "getdtablesize is unportable - "
|
||||
|
||||
#if @GNULIB_GETENTROPY@
|
||||
/* Fill a buffer with random bytes. */
|
||||
# if !@HAVE_GETENTROPY@
|
||||
# if @REPLACE_GETENTROPY@
|
||||
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
|
||||
# undef getentropy
|
||||
# define getentropy rpl_getentropy
|
||||
# endif
|
||||
_GL_FUNCDECL_RPL (getentropy, int, (void *buffer, size_t length));
|
||||
_GL_CXXALIAS_RPL (getentropy, int, (void *buffer, size_t length));
|
||||
# else
|
||||
# if !@HAVE_GETENTROPY@
|
||||
_GL_FUNCDECL_SYS (getentropy, int, (void *buffer, size_t length));
|
||||
# endif
|
||||
# endif
|
||||
_GL_CXXALIAS_SYS (getentropy, int, (void *buffer, size_t length));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (getentropy);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
# undef getentropy
|
||||
# if HAVE_RAW_DECL_GETENTROPY
|
||||
@ -1321,7 +1382,9 @@ _GL_FUNCDECL_SYS (getlogin_r, int, (char *name, size_t size)
|
||||
int size. */
|
||||
_GL_CXXALIAS_SYS_CAST (getlogin_r, int, (char *name, size_t size));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (getlogin_r);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
# undef getlogin_r
|
||||
# if HAVE_RAW_DECL_GETLOGIN_R
|
||||
@ -1659,7 +1722,9 @@ _GL_CXXALIAS_SYS (linkat, int,
|
||||
(int fd1, const char *path1, int fd2, const char *path2,
|
||||
int flag));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (linkat);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
# undef linkat
|
||||
# if HAVE_RAW_DECL_LINKAT
|
||||
@ -1740,8 +1805,9 @@ _GL_WARN_ON_USE (pipe, "pipe is unportable - "
|
||||
Return 0 upon success, or -1 with errno set upon failure.
|
||||
See also the Linux man page at
|
||||
<https://www.kernel.org/doc/man-pages/online/pages/man2/pipe2.2.html>. */
|
||||
# if @HAVE_PIPE2@
|
||||
# if @REPLACE_PIPE2@
|
||||
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
|
||||
# undef pipe2
|
||||
# define pipe2 rpl_pipe2
|
||||
# endif
|
||||
_GL_FUNCDECL_RPL (pipe2, int, (int fd[2], int flags) _GL_ARG_NONNULL ((1)));
|
||||
@ -1750,7 +1816,9 @@ _GL_CXXALIAS_RPL (pipe2, int, (int fd[2], int flags));
|
||||
_GL_FUNCDECL_SYS (pipe2, int, (int fd[2], int flags) _GL_ARG_NONNULL ((1)));
|
||||
_GL_CXXALIAS_SYS (pipe2, int, (int fd[2], int flags));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (pipe2);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
# undef pipe2
|
||||
# if HAVE_RAW_DECL_PIPE2
|
||||
@ -1785,7 +1853,9 @@ _GL_FUNCDECL_SYS (pread, ssize_t,
|
||||
_GL_CXXALIAS_SYS (pread, ssize_t,
|
||||
(int fd, void *buf, size_t bufsize, off_t offset));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (pread);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
# undef pread
|
||||
# if HAVE_RAW_DECL_PREAD
|
||||
@ -1820,7 +1890,9 @@ _GL_FUNCDECL_SYS (pwrite, ssize_t,
|
||||
_GL_CXXALIAS_SYS (pwrite, ssize_t,
|
||||
(int fd, const void *buf, size_t bufsize, off_t offset));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (pwrite);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
# undef pwrite
|
||||
# if HAVE_RAW_DECL_PWRITE
|
||||
@ -1934,7 +2006,9 @@ _GL_CXXALIAS_SYS (readlinkat, ssize_t,
|
||||
(int fd, char const *restrict file,
|
||||
char *restrict buf, size_t len));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (readlinkat);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
# undef readlinkat
|
||||
# if HAVE_RAW_DECL_READLINKAT
|
||||
@ -1994,15 +2068,27 @@ _GL_CXXALIASWARN (rmdir);
|
||||
|
||||
Platforms with no ability to set the hostname return -1 and set
|
||||
errno = ENOSYS. */
|
||||
# if !@HAVE_SETHOSTNAME@ || !@HAVE_DECL_SETHOSTNAME@
|
||||
# if @REPLACE_SETHOSTNAME@
|
||||
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
|
||||
# undef sethostname
|
||||
# define sethostname rpl_sethostname
|
||||
# endif
|
||||
_GL_FUNCDECL_RPL (sethostname, int, (const char *name, size_t len)
|
||||
_GL_ARG_NONNULL ((1)));
|
||||
_GL_CXXALIAS_RPL (sethostname, int, (const char *name, size_t len));
|
||||
# else
|
||||
# if !@HAVE_SETHOSTNAME@ || !@HAVE_DECL_SETHOSTNAME@
|
||||
_GL_FUNCDECL_SYS (sethostname, int, (const char *name, size_t len)
|
||||
_GL_ARG_NONNULL ((1)));
|
||||
# endif
|
||||
# endif
|
||||
/* Need to cast, because on Solaris 11 2011-10, Mac OS X 10.5, IRIX 6.5
|
||||
and FreeBSD 6.4 the second parameter is int. On Solaris 11
|
||||
2011-10, the first parameter is not const. */
|
||||
_GL_CXXALIAS_SYS_CAST (sethostname, int, (const char *name, size_t len));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (sethostname);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
# undef sethostname
|
||||
# if HAVE_RAW_DECL_SETHOSTNAME
|
||||
@ -2055,7 +2141,7 @@ _GL_CXXALIAS_MDA_CAST (swab, void, (char *from, char *to, int n));
|
||||
# else
|
||||
# if defined __hpux /* HP-UX */
|
||||
_GL_CXXALIAS_SYS (swab, void, (const char *from, char *to, int n));
|
||||
# elif defined __sun && !defined _XPG4 /* Solaris */
|
||||
# elif defined __sun && (defined __SunOS_5_10 || defined __XOPEN_OR_POSIX) && !defined _XPG4 /* Solaris */
|
||||
_GL_CXXALIAS_SYS (swab, void, (const char *from, char *to, ssize_t n));
|
||||
# else
|
||||
_GL_CXXALIAS_SYS (swab, void, (const void *from, void *to, ssize_t n));
|
||||
@ -2111,7 +2197,9 @@ _GL_FUNCDECL_SYS (symlinkat, int,
|
||||
_GL_CXXALIAS_SYS (symlinkat, int,
|
||||
(char const *contents, int fd, char const *file));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (symlinkat);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
# undef symlinkat
|
||||
# if HAVE_RAW_DECL_SYMLINKAT
|
||||
@ -2141,7 +2229,9 @@ _GL_FUNCDECL_SYS (truncate, int, (const char *filename, off_t length)
|
||||
# endif
|
||||
_GL_CXXALIAS_SYS (truncate, int, (const char *filename, off_t length));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (truncate);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
# undef truncate
|
||||
# if HAVE_RAW_DECL_TRUNCATE
|
||||
@ -2171,7 +2261,9 @@ _GL_FUNCDECL_SYS (ttyname_r, int,
|
||||
_GL_CXXALIAS_SYS (ttyname_r, int,
|
||||
(int fd, char *buf, size_t buflen));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (ttyname_r);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
# undef ttyname_r
|
||||
# if HAVE_RAW_DECL_TTYNAME_R
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Elementary Unicode string functions.
|
||||
Copyright (C) 2001-2002, 2005-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2001-2002, 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 Lesser General Public License as
|
||||
@ -380,6 +380,15 @@ extern uint16_t *
|
||||
extern uint32_t *
|
||||
u32_cpy (uint32_t *_UC_RESTRICT dest, const uint32_t *src, size_t n);
|
||||
|
||||
/* Copy N units from SRC to DEST, returning pointer after last written unit. */
|
||||
/* Similar to mempcpy(). */
|
||||
extern uint8_t *
|
||||
u8_pcpy (uint8_t *_UC_RESTRICT dest, const uint8_t *src, size_t n);
|
||||
extern uint16_t *
|
||||
u16_pcpy (uint16_t *_UC_RESTRICT dest, const uint16_t *src, size_t n);
|
||||
extern uint32_t *
|
||||
u32_pcpy (uint32_t *_UC_RESTRICT dest, const uint32_t *src, size_t n);
|
||||
|
||||
/* Copy N units from SRC to DEST, guaranteeing correct behavior for
|
||||
overlapping memory areas. */
|
||||
/* Similar to memmove(). */
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Look at first character in UTF-8 string, returning an error code.
|
||||
Copyright (C) 1999-2002, 2006-2007, 2009-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 1999-2002, 2006-2007, 2009-2024 Free Software Foundation, Inc.
|
||||
Written by Bruno Haible <bruno@clisp.org>, 2001.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
@ -86,13 +86,13 @@ u8_mbtoucr (ucs4_t *puc, const uint8_t *s, size_t n)
|
||||
return -2;
|
||||
}
|
||||
}
|
||||
else if (c < 0xf8)
|
||||
else if (c <= 0xf4)
|
||||
{
|
||||
if (n >= 2)
|
||||
{
|
||||
if ((s[1] ^ 0x80) < 0x40
|
||||
&& (c >= 0xf1 || s[1] >= 0x90)
|
||||
&& (c < 0xf4 || (c == 0xf4 && s[1] < 0x90)))
|
||||
&& (c < 0xf4 || (/* c == 0xf4 && */ s[1] < 0x90)))
|
||||
{
|
||||
if (n >= 3)
|
||||
{
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Conversion UCS-4 to UTF-8.
|
||||
Copyright (C) 2002, 2006-2007, 2009-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2002, 2006-2007, 2009-2024 Free Software Foundation, Inc.
|
||||
Written by Bruno Haible <bruno@clisp.org>, 2002.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Store a character in UTF-8 string.
|
||||
Copyright (C) 2002, 2005-2006, 2009-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2002, 2005-2006, 2009-2024 Free Software Foundation, Inc.
|
||||
Written by Bruno Haible <bruno@clisp.org>, 2002.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Elementary types and macros for the GNU UniString library.
|
||||
Copyright (C) 2002, 2005-2006, 2009-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2002, 2005-2006, 2009-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
|
107
lib/verify.h
107
lib/verify.h
@ -1,6 +1,6 @@
|
||||
/* Compile-time assert-like macros.
|
||||
|
||||
Copyright (C) 2005-2006, 2009-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2005-2006, 2009-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
@ -25,19 +25,19 @@
|
||||
works as per C11. This is supported by GCC 4.6.0+ and by clang 4+.
|
||||
|
||||
Define _GL_HAVE__STATIC_ASSERT1 to 1 if _Static_assert (R) works as
|
||||
per C2x. This is supported by GCC 9.1+.
|
||||
per C23. This is supported by GCC 9.1+.
|
||||
|
||||
Support compilers claiming conformance to the relevant standard,
|
||||
and also support GCC when not pedantic. If we were willing to slow
|
||||
'configure' down we could also use it with other compilers, but
|
||||
since this affects only the quality of diagnostics, why bother? */
|
||||
#ifndef __cplusplus
|
||||
# if (201112L <= __STDC_VERSION__ \
|
||||
# if (201112 <= __STDC_VERSION__ \
|
||||
|| (!defined __STRICT_ANSI__ \
|
||||
&& (4 < __GNUC__ + (6 <= __GNUC_MINOR__) || 5 <= __clang_major__)))
|
||||
# define _GL_HAVE__STATIC_ASSERT 1
|
||||
# endif
|
||||
# if (202000L <= __STDC_VERSION__ \
|
||||
# if (202311 <= __STDC_VERSION__ \
|
||||
|| (!defined __STRICT_ANSI__ && 9 <= __GNUC__))
|
||||
# define _GL_HAVE__STATIC_ASSERT1 1
|
||||
# endif
|
||||
@ -188,9 +188,9 @@ template <int w>
|
||||
_gl_verify_type<(R) ? 1 : -1>
|
||||
#elif defined _GL_HAVE__STATIC_ASSERT
|
||||
# define _GL_VERIFY_TYPE(R, DIAGNOSTIC) \
|
||||
struct { \
|
||||
_Static_assert (R, DIAGNOSTIC); \
|
||||
int _gl_dummy; \
|
||||
struct { \
|
||||
_Static_assert (R, DIAGNOSTIC); \
|
||||
int _gl_dummy; \
|
||||
}
|
||||
#else
|
||||
# define _GL_VERIFY_TYPE(R, DIAGNOSTIC) \
|
||||
@ -202,18 +202,18 @@ template <int w>
|
||||
|
||||
This macro requires three or more arguments but uses at most the first
|
||||
two, so that the _Static_assert macro optionally defined below supports
|
||||
both the C11 two-argument syntax and the C2x one-argument syntax.
|
||||
both the C11 two-argument syntax and the C23 one-argument syntax.
|
||||
|
||||
Unfortunately, unlike C11, this implementation must appear as an
|
||||
ordinary declaration, and cannot appear inside struct { ... }. */
|
||||
|
||||
#if 200410 <= __cpp_static_assert
|
||||
#if 202311 <= __STDC_VERSION__ || 200410 <= __cpp_static_assert
|
||||
# define _GL_VERIFY(R, DIAGNOSTIC, ...) static_assert (R, DIAGNOSTIC)
|
||||
#elif defined _GL_HAVE__STATIC_ASSERT
|
||||
# define _GL_VERIFY(R, DIAGNOSTIC, ...) _Static_assert (R, DIAGNOSTIC)
|
||||
#else
|
||||
# define _GL_VERIFY(R, DIAGNOSTIC, ...) \
|
||||
extern int (*_GL_GENSYM (_gl_verify_function) (void)) \
|
||||
# define _GL_VERIFY(R, DIAGNOSTIC, ...) \
|
||||
extern int (*_GL_GENSYM (_gl_verify_function) (void)) \
|
||||
[_GL_VERIFY_TRUE (R, DIAGNOSTIC)]
|
||||
# if 4 < __GNUC__ + (6 <= __GNUC_MINOR__)
|
||||
# pragma GCC diagnostic ignored "-Wnested-externs"
|
||||
@ -222,18 +222,68 @@ template <int w>
|
||||
|
||||
/* _GL_STATIC_ASSERT_H is defined if this code is copied into assert.h. */
|
||||
#ifdef _GL_STATIC_ASSERT_H
|
||||
# if !defined _GL_HAVE__STATIC_ASSERT1 && !defined _Static_assert
|
||||
# define _Static_assert(...) \
|
||||
_GL_VERIFY (__VA_ARGS__, "static assertion failed", -)
|
||||
/* Define _Static_assert if needed. */
|
||||
/* With clang ≥ 3.8.0 in C++ mode, _Static_assert already works and accepts
|
||||
1 or 2 arguments. We better don't override it, because clang's standard
|
||||
C++ library uses static_assert inside classes in several places, and our
|
||||
replacement via _GL_VERIFY does not work in these contexts. */
|
||||
# if (defined __cplusplus && defined __clang__ \
|
||||
&& (4 <= __clang_major__ + (8 <= __clang_minor__)))
|
||||
# if 5 <= __clang_major__
|
||||
/* Avoid "warning: 'static_assert' with no message is a C++17 extension". */
|
||||
# pragma clang diagnostic ignored "-Wc++17-extensions"
|
||||
# else
|
||||
/* Avoid "warning: static_assert with no message is a C++1z extension". */
|
||||
# pragma clang diagnostic ignored "-Wc++1z-extensions"
|
||||
# endif
|
||||
# elif !defined _GL_HAVE__STATIC_ASSERT1 && !defined _Static_assert
|
||||
# if !defined _MSC_VER || defined __clang__
|
||||
# define _Static_assert(...) \
|
||||
_GL_VERIFY (__VA_ARGS__, "static assertion failed", -)
|
||||
# else
|
||||
# if defined __cplusplus && _MSC_VER >= 1910
|
||||
/* In MSVC 14.1 or newer, static_assert accepts one or two arguments,
|
||||
but _Static_assert is not defined. */
|
||||
# define _Static_assert static_assert
|
||||
# else
|
||||
/* Work around MSVC preprocessor incompatibility with ISO C; see
|
||||
<https://stackoverflow.com/questions/5134523/>. */
|
||||
# define _Static_assert(R, ...) \
|
||||
_GL_VERIFY ((R), "static assertion failed", -)
|
||||
# endif
|
||||
# endif
|
||||
# endif
|
||||
# if __cpp_static_assert < 201411 && !defined static_assert
|
||||
# define static_assert _Static_assert /* C11 requires this #define. */
|
||||
/* Define static_assert if needed. */
|
||||
# if (!defined static_assert \
|
||||
&& __STDC_VERSION__ < 202311 \
|
||||
&& (!defined __cplusplus \
|
||||
|| (__cpp_static_assert < 201411 \
|
||||
&& __GNUG__ < 6 && __clang_major__ < 6 && _MSC_VER < 1910)))
|
||||
# if defined __cplusplus && _MSC_VER >= 1900 && !defined __clang__
|
||||
/* MSVC 14 in C++ mode supports the two-arguments static_assert but not
|
||||
the one-argument static_assert, and it does not support _Static_assert.
|
||||
We have to play preprocessor tricks to distinguish the two cases.
|
||||
Since the MSVC preprocessor is not ISO C compliant (see above),.
|
||||
the solution is specific to MSVC. */
|
||||
# define _GL_EXPAND(x) x
|
||||
# define _GL_SA1(a1) static_assert ((a1), "static assertion failed")
|
||||
# define _GL_SA2 static_assert
|
||||
# define _GL_SA3 static_assert
|
||||
# define _GL_SA_PICK(x1,x2,x3,x4,...) x4
|
||||
# define static_assert(...) _GL_EXPAND(_GL_SA_PICK(__VA_ARGS__,_GL_SA3,_GL_SA2,_GL_SA1)) (__VA_ARGS__)
|
||||
/* Avoid "fatal error C1189: #error: The C++ Standard Library forbids macroizing keywords." */
|
||||
# define _ALLOW_KEYWORD_MACROS 1
|
||||
# else
|
||||
# define static_assert _Static_assert /* C11 requires this #define. */
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* @assert.h omit start@ */
|
||||
|
||||
#if 3 < __GNUC__ + (3 < __GNUC_MINOR__ + (4 <= __GNUC_PATCHLEVEL__))
|
||||
#if defined __clang_major__ && __clang_major__ < 5
|
||||
# define _GL_HAS_BUILTIN_TRAP 0
|
||||
#elif 3 < __GNUC__ + (3 < __GNUC_MINOR__ + (4 <= __GNUC_PATCHLEVEL__))
|
||||
# define _GL_HAS_BUILTIN_TRAP 1
|
||||
#elif defined __has_builtin
|
||||
# define _GL_HAS_BUILTIN_TRAP __has_builtin (__builtin_trap)
|
||||
@ -241,12 +291,16 @@ template <int w>
|
||||
# define _GL_HAS_BUILTIN_TRAP 0
|
||||
#endif
|
||||
|
||||
#if 4 < __GNUC__ + (5 <= __GNUC_MINOR__)
|
||||
# define _GL_HAS_BUILTIN_UNREACHABLE 1
|
||||
#elif defined __has_builtin
|
||||
# define _GL_HAS_BUILTIN_UNREACHABLE __has_builtin (__builtin_unreachable)
|
||||
#else
|
||||
# define _GL_HAS_BUILTIN_UNREACHABLE 0
|
||||
#ifndef _GL_HAS_BUILTIN_UNREACHABLE
|
||||
# if defined __clang_major__ && __clang_major__ < 5
|
||||
# define _GL_HAS_BUILTIN_UNREACHABLE 0
|
||||
# elif 4 < __GNUC__ + (5 <= __GNUC_MINOR__)
|
||||
# define _GL_HAS_BUILTIN_UNREACHABLE 1
|
||||
# elif defined __has_builtin
|
||||
# define _GL_HAS_BUILTIN_UNREACHABLE __has_builtin (__builtin_unreachable)
|
||||
# else
|
||||
# define _GL_HAS_BUILTIN_UNREACHABLE 0
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* Each of these macros verifies that its argument R is nonzero. To
|
||||
@ -303,13 +357,16 @@ template <int w>
|
||||
# define assume(R) ((R) ? (void) 0 : __builtin_unreachable ())
|
||||
#elif 1200 <= _MSC_VER
|
||||
# define assume(R) __assume (R)
|
||||
#elif 202311 <= __STDC_VERSION__
|
||||
# include <stddef.h>
|
||||
# define assume(R) ((R) ? (void) 0 : unreachable ())
|
||||
#elif (defined GCC_LINT || defined lint) && _GL_HAS_BUILTIN_TRAP
|
||||
/* Doing it this way helps various packages when configured with
|
||||
--enable-gcc-warnings, which compiles with -Dlint. It's nicer
|
||||
when 'assume' silences warnings even with older GCCs. */
|
||||
if 'assume' silences warnings with GCC 3.4 through GCC 4.4.7 (2012). */
|
||||
# define assume(R) ((R) ? (void) 0 : __builtin_trap ())
|
||||
#else
|
||||
/* Some tools grok NOTREACHED, e.g., Oracle Studio 12.6. */
|
||||
/* Some older tools grok NOTREACHED, e.g., Oracle Studio 12.6 (2017). */
|
||||
# define assume(R) ((R) ? (void) 0 : /*NOTREACHED*/ (void) 0)
|
||||
#endif
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* A C macro for emitting warnings if a function is used.
|
||||
Copyright (C) 2010-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2010-2024 Free Software Foundation, Inc.
|
||||
|
||||
This program is free software: you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published
|
||||
|
415
lib/wchar.in.h
415
lib/wchar.in.h
@ -1,6 +1,6 @@
|
||||
/* A substitute for ISO C99 <wchar.h>, for platforms that have issues.
|
||||
|
||||
Copyright (C) 2007-2022 Free Software Foundation, Inc.
|
||||
Copyright (C) 2007-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
@ -84,6 +84,13 @@
|
||||
#ifndef _@GUARD_PREFIX@_WCHAR_H
|
||||
#define _@GUARD_PREFIX@_WCHAR_H
|
||||
|
||||
/* This file uses _GL_ATTRIBUTE_DEALLOC, _GL_ATTRIBUTE_MALLOC,
|
||||
_GL_ATTRIBUTE_NOTHROW, _GL_ATTRIBUTE_PURE, GNULIB_POSIXCHECK,
|
||||
HAVE_RAW_DECL_*. */
|
||||
#if !_GL_CONFIG_H_INCLUDED
|
||||
#error "Please include config.h first."
|
||||
#endif
|
||||
|
||||
/* _GL_ATTRIBUTE_DEALLOC (F, I) declares that the function returns pointers
|
||||
that can be freed by passing them as the Ith argument to the
|
||||
function F. */
|
||||
@ -99,7 +106,14 @@
|
||||
can be freed via 'free'; it can be used only after declaring 'free'. */
|
||||
/* Applies to: functions. Cannot be used on inline functions. */
|
||||
#ifndef _GL_ATTRIBUTE_DEALLOC_FREE
|
||||
# define _GL_ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_DEALLOC (free, 1)
|
||||
# if defined __cplusplus && defined __GNUC__ && !defined __clang__
|
||||
/* Work around GCC bug <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108231> */
|
||||
# define _GL_ATTRIBUTE_DEALLOC_FREE \
|
||||
_GL_ATTRIBUTE_DEALLOC ((void (*) (void *)) free, 1)
|
||||
# else
|
||||
# define _GL_ATTRIBUTE_DEALLOC_FREE \
|
||||
_GL_ATTRIBUTE_DEALLOC (free, 1)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* _GL_ATTRIBUTE_MALLOC declares that the function returns a pointer to freshly
|
||||
@ -123,6 +137,28 @@
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* _GL_ATTRIBUTE_NOTHROW declares that the function does not throw exceptions.
|
||||
*/
|
||||
#ifndef _GL_ATTRIBUTE_NOTHROW
|
||||
# if defined __cplusplus
|
||||
# if (__GNUC__ + (__GNUC_MINOR__ >= 8) > 2) || __clang_major >= 4
|
||||
# if __cplusplus >= 201103L
|
||||
# define _GL_ATTRIBUTE_NOTHROW noexcept (true)
|
||||
# else
|
||||
# define _GL_ATTRIBUTE_NOTHROW throw ()
|
||||
# endif
|
||||
# else
|
||||
# define _GL_ATTRIBUTE_NOTHROW
|
||||
# endif
|
||||
# else
|
||||
# if (__GNUC__ + (__GNUC_MINOR__ >= 3) > 3) || defined __clang__
|
||||
# define _GL_ATTRIBUTE_NOTHROW __attribute__ ((__nothrow__))
|
||||
# else
|
||||
# define _GL_ATTRIBUTE_NOTHROW
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */
|
||||
|
||||
/* The definition of _GL_ARG_NONNULL is copied here. */
|
||||
@ -181,7 +217,11 @@ typedef int rpl_mbstate_t;
|
||||
# if (@REPLACE_FREE@ && !defined free \
|
||||
&& !(defined __cplusplus && defined GNULIB_NAMESPACE))
|
||||
/* We can't do '#define free rpl_free' here. */
|
||||
# if defined __cplusplus && (__GLIBC__ + (__GLIBC_MINOR__ >= 14) > 2)
|
||||
_GL_EXTERN_C void rpl_free (void *) _GL_ATTRIBUTE_NOTHROW;
|
||||
# else
|
||||
_GL_EXTERN_C void rpl_free (void *);
|
||||
# endif
|
||||
# undef _GL_ATTRIBUTE_DEALLOC_FREE
|
||||
# define _GL_ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_DEALLOC (rpl_free, 1)
|
||||
# else
|
||||
@ -193,7 +233,7 @@ _GL_EXTERN_C
|
||||
void __cdecl free (void *);
|
||||
# else
|
||||
# if defined __cplusplus && (__GLIBC__ + (__GLIBC_MINOR__ >= 14) > 2)
|
||||
_GL_EXTERN_C void free (void *) throw ();
|
||||
_GL_EXTERN_C void free (void *) _GL_ATTRIBUTE_NOTHROW;
|
||||
# else
|
||||
_GL_EXTERN_C void free (void *);
|
||||
# endif
|
||||
@ -208,13 +248,20 @@ _GL_EXTERN_C
|
||||
void __cdecl free (void *);
|
||||
# else
|
||||
# if defined __cplusplus && (__GLIBC__ + (__GLIBC_MINOR__ >= 14) > 2)
|
||||
_GL_EXTERN_C void free (void *) throw ();
|
||||
_GL_EXTERN_C void free (void *) _GL_ATTRIBUTE_NOTHROW;
|
||||
# else
|
||||
_GL_EXTERN_C void free (void *);
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
||||
#if @GNULIB_MBSZERO@
|
||||
/* Get memset(). */
|
||||
# include <string.h>
|
||||
#endif
|
||||
|
||||
|
||||
/* Convert a single-byte character to a wide character. */
|
||||
#if @GNULIB_BTOWC@
|
||||
# if @REPLACE_BTOWC@
|
||||
@ -271,7 +318,7 @@ _GL_WARN_ON_USE (wctob, "wctob is unportable - "
|
||||
#endif
|
||||
|
||||
|
||||
/* Test whether *PS is in the initial state. */
|
||||
/* Test whether *PS is in an initial state. */
|
||||
#if @GNULIB_MBSINIT@
|
||||
# if @REPLACE_MBSINIT@
|
||||
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
|
||||
@ -298,6 +345,208 @@ _GL_WARN_ON_USE (mbsinit, "mbsinit is unportable - "
|
||||
#endif
|
||||
|
||||
|
||||
/* Put *PS into an initial state. */
|
||||
#if @GNULIB_MBSZERO@
|
||||
/* ISO C 23 § 7.31.6.(3) says that zeroing an mbstate_t is a way to put the
|
||||
mbstate_t into an initial state. However, on many platforms an mbstate_t
|
||||
is large, and it is possible - as an optimization - to get away with zeroing
|
||||
only part of it. So, instead of
|
||||
|
||||
mbstate_t state = { 0 };
|
||||
|
||||
or
|
||||
|
||||
mbstate_t state;
|
||||
memset (&state, 0, sizeof (mbstate_t));
|
||||
|
||||
we can write this faster code:
|
||||
|
||||
mbstate_t state;
|
||||
mbszero (&state);
|
||||
*/
|
||||
/* _GL_MBSTATE_INIT_SIZE describes how mbsinit() behaves: It is the number of
|
||||
bytes at the beginning of an mbstate_t that need to be zero, for mbsinit()
|
||||
to return true.
|
||||
_GL_MBSTATE_ZERO_SIZE is the number of bytes at the beginning of an mbstate_t
|
||||
that need to be zero,
|
||||
- for mbsinit() to return true, and
|
||||
- for all other multibyte-aware functions to operate properly.
|
||||
0 < _GL_MBSTATE_INIT_SIZE <= _GL_MBSTATE_ZERO_SIZE <= sizeof (mbstate_t).
|
||||
These values are determined by source code inspection, where possible, and
|
||||
by running the gnulib unit tests.
|
||||
We need _GL_MBSTATE_INIT_SIZE because if we define _GL_MBSTATE_ZERO_SIZE
|
||||
without considering what mbsinit() does, we get test failures such as
|
||||
assertion "mbsinit (&iter->state)" failed
|
||||
*/
|
||||
# if GNULIB_defined_mbstate_t /* AIX, IRIX */
|
||||
/* mbstate_t has at least 4 bytes. They are used as coded in
|
||||
gnulib/lib/mbrtowc.c. */
|
||||
# define _GL_MBSTATE_INIT_SIZE 1
|
||||
/* define _GL_MBSTATE_ZERO_SIZE 4
|
||||
does not work: it causes test failures.
|
||||
So, use the safe fallback value, below. */
|
||||
# elif __GLIBC__ + (__GLIBC_MINOR__ >= 2) > 2 /* glibc */
|
||||
/* mbstate_t is defined in <bits/types/__mbstate_t.h>.
|
||||
For more details, see glibc/iconv/skeleton.c. */
|
||||
# define _GL_MBSTATE_INIT_SIZE 4 /* sizeof (((mbstate_t) {0}).__count) */
|
||||
# define _GL_MBSTATE_ZERO_SIZE /* 8 */ sizeof (mbstate_t)
|
||||
# elif defined MUSL_LIBC /* musl libc */
|
||||
/* mbstate_t is defined in <bits/alltypes.h>.
|
||||
It is an opaque aligned 8-byte struct, of which at most the first
|
||||
4 bytes are used.
|
||||
For more details, see src/multibyte/mbrtowc.c. */
|
||||
# define _GL_MBSTATE_INIT_SIZE 4 /* sizeof (unsigned) */
|
||||
# define _GL_MBSTATE_ZERO_SIZE 4
|
||||
# elif defined __APPLE__ && defined __MACH__ /* macOS */
|
||||
/* On macOS, mbstate_t is defined in <machine/_types.h>.
|
||||
It is an opaque aligned 128-byte struct, of which at most the first
|
||||
12 bytes are used.
|
||||
For more details, see the __mbsinit implementations in
|
||||
Libc-<version>/locale/FreeBSD/
|
||||
{ascii,none,euc,mskanji,big5,gb2312,gbk,gb18030,utf8,utf2}.c. */
|
||||
/* File INIT_SIZE ZERO_SIZE
|
||||
ascii.c 0 0
|
||||
none.c 0 0
|
||||
euc.c 12 12
|
||||
mskanji.c 4 4
|
||||
big5.c 4 4
|
||||
gb2312.c 4 6
|
||||
gbk.c 4 4
|
||||
gb18030.c 4 8
|
||||
utf8.c 8 10
|
||||
utf2.c 8 12 */
|
||||
# define _GL_MBSTATE_INIT_SIZE 12
|
||||
# define _GL_MBSTATE_ZERO_SIZE 12
|
||||
# elif defined __FreeBSD__ /* FreeBSD */
|
||||
/* On FreeBSD, mbstate_t is defined in src/sys/sys/_types.h.
|
||||
It is an opaque aligned 128-byte struct, of which at most the first
|
||||
12 bytes are used.
|
||||
For more details, see the __mbsinit implementations in
|
||||
src/lib/libc/locale/
|
||||
{ascii,none,euc,mskanji,big5,gb2312,gbk,gb18030,utf8}.c. */
|
||||
/* File INIT_SIZE ZERO_SIZE
|
||||
ascii.c 0 0
|
||||
none.c 0 0
|
||||
euc.c 12 12
|
||||
mskanji.c 4 4
|
||||
big5.c 4 4
|
||||
gb2312.c 4 6
|
||||
gbk.c 4 4
|
||||
gb18030.c 4 8
|
||||
utf8.c 8 12 */
|
||||
# define _GL_MBSTATE_INIT_SIZE 12
|
||||
# define _GL_MBSTATE_ZERO_SIZE 12
|
||||
# elif defined __NetBSD__ /* NetBSD */
|
||||
/* On NetBSD, mbstate_t is defined in src/sys/sys/ansi.h.
|
||||
It is an opaque aligned 128-byte struct, of which at most the first
|
||||
28 bytes are used.
|
||||
For more details, see the *State types in
|
||||
src/lib/libc/citrus/modules/citrus_*.c
|
||||
(ignoring citrus_{hz,iso2022,utf7,viqr,zw}.c, since these implement
|
||||
stateful encodings, not usable as locale encodings). */
|
||||
/* File ZERO_SIZE
|
||||
citrus/citrus_none.c 0
|
||||
citrus/modules/citrus_euc.c 8
|
||||
citrus/modules/citrus_euctw.c 8
|
||||
citrus/modules/citrus_mskanji.c 8
|
||||
citrus/modules/citrus_big5.c 8
|
||||
citrus/modules/citrus_gbk2k.c 8
|
||||
citrus/modules/citrus_dechanyu.c 8
|
||||
citrus/modules/citrus_johab.c 6
|
||||
citrus/modules/citrus_utf8.c 12 */
|
||||
/* But 12 is not the correct value for _GL_MBSTATE_ZERO_SIZE: we get test
|
||||
failures for values < 28. */
|
||||
# define _GL_MBSTATE_ZERO_SIZE 28
|
||||
# elif defined __OpenBSD__ /* OpenBSD */
|
||||
/* On OpenBSD, mbstate_t is defined in src/sys/sys/_types.h.
|
||||
It is an opaque aligned 128-byte struct, of which at most the first
|
||||
12 bytes are used.
|
||||
For more details, see src/lib/libc/citrus/citrus_*.c. */
|
||||
/* File INIT_SIZE ZERO_SIZE
|
||||
citrus_none.c 0 0
|
||||
citrus_utf8.c 12 12 */
|
||||
# define _GL_MBSTATE_INIT_SIZE 12
|
||||
# define _GL_MBSTATE_ZERO_SIZE 12
|
||||
# elif defined __minix /* Minix */
|
||||
/* On Minix, mbstate_t is defined in sys/sys/ansi.h.
|
||||
It is an opaque aligned 128-byte struct.
|
||||
For more details, see the *State types in
|
||||
lib/libc/citrus/citrus_*.c. */
|
||||
/* File INIT_SIZE ZERO_SIZE
|
||||
citrus_none.c 0 0 */
|
||||
/* But 1 is not the correct value for _GL_MBSTATE_ZERO_SIZE: we get test
|
||||
failures for values < 4. */
|
||||
# define _GL_MBSTATE_ZERO_SIZE 4
|
||||
# elif defined __sun /* Solaris */
|
||||
/* On Solaris, mbstate_t is defined in <wchar_impl.h>.
|
||||
It is an opaque aligned 24-byte or 32-byte struct, of which at most the first
|
||||
20 or 28 bytes are used.
|
||||
For more details on OpenSolaris derivatives, see the *State types in
|
||||
illumos-gate/usr/src/lib/libc/port/locale/
|
||||
{none,euc,mskanji,big5,gb2312,gbk,gb18030,utf8}.c. */
|
||||
/* File INIT_SIZE ZERO_SIZE
|
||||
none.c 0 0
|
||||
euc.c 12 12
|
||||
mskanji.c 4 4
|
||||
big5.c 4 4
|
||||
gb2312.c 4 6
|
||||
gbk.c 4 4
|
||||
gb18030.c 4 8
|
||||
utf8.c 12 12 */
|
||||
/* But 12 is not the correct value for _GL_MBSTATE_ZERO_SIZE: we get test
|
||||
failures
|
||||
- in OpenIndiana and OmniOS: for values < 16,
|
||||
- in Solaris 10 and 11: for values < 20 (in 32-bit mode)
|
||||
or < 28 (in 64-bit mode).
|
||||
Since we don't have a good way to distinguish the OpenSolaris derivatives
|
||||
from the proprietary Solaris versions, and can't inspect the Solaris source
|
||||
code, use the safe fallback values, below. */
|
||||
# elif defined __CYGWIN__ /* Cygwin */
|
||||
/* On Cygwin, mbstate_t is defined in <sys/_types.h>.
|
||||
For more details, see newlib/libc/stdlib/mbtowc_r.c and
|
||||
winsup/cygwin/strfuncs.cc. */
|
||||
# define _GL_MBSTATE_INIT_SIZE 4 /* sizeof (int) */
|
||||
# define _GL_MBSTATE_ZERO_SIZE 8
|
||||
# elif defined _WIN32 && !defined __CYGWIN__ /* Native Windows. */
|
||||
/* MSVC defines 'mbstate_t' as an aligned 8-byte struct.
|
||||
On mingw, 'mbstate_t' is sometimes defined as 'int', sometimes defined
|
||||
as an aligned 8-byte struct, of which the first 4 bytes matter.
|
||||
Use the safe values, below. */
|
||||
# elif defined __ANDROID__ /* Android */
|
||||
/* Android defines 'mbstate_t' in <bits/mbstate_t.h>.
|
||||
It is an opaque 4-byte or 8-byte struct.
|
||||
For more details, see
|
||||
bionic/libc/private/bionic_mbstate.h
|
||||
bionic/libc/bionic/mbrtoc32.cpp
|
||||
bionic/libc/bionic/mbrtoc16.cpp
|
||||
*/
|
||||
# define _GL_MBSTATE_INIT_SIZE 4
|
||||
# define _GL_MBSTATE_ZERO_SIZE 4
|
||||
# endif
|
||||
/* Use safe values as defaults. */
|
||||
# ifndef _GL_MBSTATE_INIT_SIZE
|
||||
# define _GL_MBSTATE_INIT_SIZE sizeof (mbstate_t)
|
||||
# endif
|
||||
# ifndef _GL_MBSTATE_ZERO_SIZE
|
||||
# define _GL_MBSTATE_ZERO_SIZE sizeof (mbstate_t)
|
||||
# endif
|
||||
_GL_BEGIN_C_LINKAGE
|
||||
# if defined IN_MBSZERO
|
||||
_GL_EXTERN_INLINE
|
||||
# else
|
||||
_GL_INLINE
|
||||
# endif
|
||||
_GL_ARG_NONNULL ((1)) void
|
||||
mbszero (mbstate_t *ps)
|
||||
{
|
||||
memset (ps, 0, _GL_MBSTATE_ZERO_SIZE);
|
||||
}
|
||||
_GL_END_C_LINKAGE
|
||||
_GL_CXXALIAS_SYS (mbszero, void, (mbstate_t *ps));
|
||||
_GL_CXXALIASWARN (mbszero);
|
||||
#endif
|
||||
|
||||
|
||||
/* Convert a multibyte character to a wide character. */
|
||||
#if @GNULIB_MBRTOWC@
|
||||
# if @REPLACE_MBRTOWC@
|
||||
@ -434,7 +683,9 @@ _GL_CXXALIAS_SYS (mbsnrtowcs, size_t,
|
||||
const char **restrict srcp, size_t srclen, size_t len,
|
||||
mbstate_t *restrict ps));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (mbsnrtowcs);
|
||||
# endif
|
||||
#elif defined GNULIB_POSIXCHECK
|
||||
# undef mbsnrtowcs
|
||||
# if HAVE_RAW_DECL_MBSNRTOWCS
|
||||
@ -622,13 +873,25 @@ _GL_WARN_ON_USE (wmemchr, "wmemchr is unportable - "
|
||||
|
||||
/* Compare N wide characters of S1 and S2. */
|
||||
#if @GNULIB_WMEMCMP@
|
||||
# if !@HAVE_WMEMCMP@
|
||||
# if @REPLACE_WMEMCMP@
|
||||
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
|
||||
# undef wmemcmp
|
||||
# define wmemcmp rpl_wmemcmp
|
||||
# endif
|
||||
_GL_FUNCDECL_RPL (wmemcmp, int,
|
||||
(const wchar_t *s1, const wchar_t *s2, size_t n)
|
||||
_GL_ATTRIBUTE_PURE);
|
||||
_GL_CXXALIAS_RPL (wmemcmp, int,
|
||||
(const wchar_t *s1, const wchar_t *s2, size_t n));
|
||||
# else
|
||||
# if !@HAVE_WMEMCMP@
|
||||
_GL_FUNCDECL_SYS (wmemcmp, int,
|
||||
(const wchar_t *s1, const wchar_t *s2, size_t n)
|
||||
_GL_ATTRIBUTE_PURE);
|
||||
# endif
|
||||
# endif
|
||||
_GL_CXXALIAS_SYS (wmemcmp, int,
|
||||
(const wchar_t *s1, const wchar_t *s2, size_t n));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (wmemcmp);
|
||||
# endif
|
||||
@ -687,14 +950,27 @@ _GL_WARN_ON_USE (wmemmove, "wmemmove is unportable - "
|
||||
/* Copy N wide characters of SRC to DEST.
|
||||
Return pointer to wide characters after the last written wide character. */
|
||||
#if @GNULIB_WMEMPCPY@
|
||||
# if !@HAVE_WMEMPCPY@
|
||||
# if @REPLACE_WMEMPCPY@
|
||||
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
|
||||
# undef wmempcpy
|
||||
# define wmempcpy rpl_wmempcpy
|
||||
# endif
|
||||
_GL_FUNCDECL_RPL (wmempcpy, wchar_t *,
|
||||
(wchar_t *restrict dest,
|
||||
const wchar_t *restrict src, size_t n));
|
||||
_GL_CXXALIAS_RPL (wmempcpy, wchar_t *,
|
||||
(wchar_t *restrict dest,
|
||||
const wchar_t *restrict src, size_t n));
|
||||
# else
|
||||
# if !@HAVE_WMEMPCPY@
|
||||
_GL_FUNCDECL_SYS (wmempcpy, wchar_t *,
|
||||
(wchar_t *restrict dest,
|
||||
const wchar_t *restrict src, size_t n));
|
||||
# endif
|
||||
# endif
|
||||
_GL_CXXALIAS_SYS (wmempcpy, wchar_t *,
|
||||
(wchar_t *restrict dest,
|
||||
const wchar_t *restrict src, size_t n));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (wmempcpy);
|
||||
# endif
|
||||
@ -745,7 +1021,10 @@ _GL_WARN_ON_USE (wcslen, "wcslen is unportable - "
|
||||
|
||||
/* Return the number of wide characters in S, but at most MAXLEN. */
|
||||
#if @GNULIB_WCSNLEN@
|
||||
# if !@HAVE_WCSNLEN@
|
||||
/* On Solaris 11.3, the header files declare the function in the std::
|
||||
namespace, not in the global namespace. So, force a declaration in
|
||||
the global namespace. */
|
||||
# if !@HAVE_WCSNLEN@ || (defined __sun && defined __cplusplus)
|
||||
_GL_FUNCDECL_SYS (wcsnlen, size_t, (const wchar_t *s, size_t maxlen)
|
||||
_GL_ATTRIBUTE_PURE);
|
||||
# endif
|
||||
@ -782,7 +1061,10 @@ _GL_WARN_ON_USE (wcscpy, "wcscpy is unportable - "
|
||||
|
||||
/* Copy SRC to DEST, returning the address of the terminating L'\0' in DEST. */
|
||||
#if @GNULIB_WCPCPY@
|
||||
# if !@HAVE_WCPCPY@
|
||||
/* On Solaris 11.3, the header files declare the function in the std::
|
||||
namespace, not in the global namespace. So, force a declaration in
|
||||
the global namespace. */
|
||||
# if !@HAVE_WCPCPY@ || (defined __sun && defined __cplusplus)
|
||||
_GL_FUNCDECL_SYS (wcpcpy, wchar_t *,
|
||||
(wchar_t *restrict dest, const wchar_t *restrict src));
|
||||
# endif
|
||||
@ -823,7 +1105,10 @@ _GL_WARN_ON_USE (wcsncpy, "wcsncpy is unportable - "
|
||||
/* Copy no more than N characters of SRC to DEST, returning the address of
|
||||
the last character written into DEST. */
|
||||
#if @GNULIB_WCPNCPY@
|
||||
# if !@HAVE_WCPNCPY@
|
||||
/* On Solaris 11.3, the header files declare the function in the std::
|
||||
namespace, not in the global namespace. So, force a declaration in
|
||||
the global namespace. */
|
||||
# if !@HAVE_WCPNCPY@ || (defined __sun && defined __cplusplus)
|
||||
_GL_FUNCDECL_SYS (wcpncpy, wchar_t *,
|
||||
(wchar_t *restrict dest,
|
||||
const wchar_t *restrict src, size_t n));
|
||||
@ -885,11 +1170,21 @@ _GL_WARN_ON_USE (wcsncat, "wcsncat is unportable - "
|
||||
|
||||
/* Compare S1 and S2. */
|
||||
#if @GNULIB_WCSCMP@
|
||||
# if !@HAVE_WCSCMP@
|
||||
# if @REPLACE_WCSCMP@
|
||||
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
|
||||
# undef wcscmp
|
||||
# define wcscmp rpl_wcscmp
|
||||
# endif
|
||||
_GL_FUNCDECL_RPL (wcscmp, int, (const wchar_t *s1, const wchar_t *s2)
|
||||
_GL_ATTRIBUTE_PURE);
|
||||
_GL_CXXALIAS_RPL (wcscmp, int, (const wchar_t *s1, const wchar_t *s2));
|
||||
# else
|
||||
# if !@HAVE_WCSCMP@
|
||||
_GL_FUNCDECL_SYS (wcscmp, int, (const wchar_t *s1, const wchar_t *s2)
|
||||
_GL_ATTRIBUTE_PURE);
|
||||
# endif
|
||||
# endif
|
||||
_GL_CXXALIAS_SYS (wcscmp, int, (const wchar_t *s1, const wchar_t *s2));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (wcscmp);
|
||||
# endif
|
||||
@ -904,13 +1199,25 @@ _GL_WARN_ON_USE (wcscmp, "wcscmp is unportable - "
|
||||
|
||||
/* Compare no more than N wide characters of S1 and S2. */
|
||||
#if @GNULIB_WCSNCMP@
|
||||
# if !@HAVE_WCSNCMP@
|
||||
# if @REPLACE_WCSNCMP@
|
||||
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
|
||||
# undef wcsncmp
|
||||
# define wcsncmp rpl_wcsncmp
|
||||
# endif
|
||||
_GL_FUNCDECL_RPL (wcsncmp, int,
|
||||
(const wchar_t *s1, const wchar_t *s2, size_t n)
|
||||
_GL_ATTRIBUTE_PURE);
|
||||
_GL_CXXALIAS_RPL (wcsncmp, int,
|
||||
(const wchar_t *s1, const wchar_t *s2, size_t n));
|
||||
# else
|
||||
# if !@HAVE_WCSNCMP@
|
||||
_GL_FUNCDECL_SYS (wcsncmp, int,
|
||||
(const wchar_t *s1, const wchar_t *s2, size_t n)
|
||||
_GL_ATTRIBUTE_PURE);
|
||||
# endif
|
||||
# endif
|
||||
_GL_CXXALIAS_SYS (wcsncmp, int,
|
||||
(const wchar_t *s1, const wchar_t *s2, size_t n));
|
||||
# endif
|
||||
# if __GLIBC__ >= 2
|
||||
_GL_CXXALIASWARN (wcsncmp);
|
||||
# endif
|
||||
@ -925,7 +1232,10 @@ _GL_WARN_ON_USE (wcsncmp, "wcsncmp is unportable - "
|
||||
|
||||
/* Compare S1 and S2, ignoring case. */
|
||||
#if @GNULIB_WCSCASECMP@
|
||||
# if !@HAVE_WCSCASECMP@
|
||||
/* On Solaris 11.3, the header files declare the function in the std::
|
||||
namespace, not in the global namespace. So, force a declaration in
|
||||
the global namespace. */
|
||||
# if !@HAVE_WCSCASECMP@ || (defined __sun && defined __cplusplus)
|
||||
_GL_FUNCDECL_SYS (wcscasecmp, int, (const wchar_t *s1, const wchar_t *s2)
|
||||
_GL_ATTRIBUTE_PURE);
|
||||
# endif
|
||||
@ -942,7 +1252,10 @@ _GL_WARN_ON_USE (wcscasecmp, "wcscasecmp is unportable - "
|
||||
|
||||
/* Compare no more than N chars of S1 and S2, ignoring case. */
|
||||
#if @GNULIB_WCSNCASECMP@
|
||||
# if !@HAVE_WCSNCASECMP@
|
||||
/* On Solaris 11.3, the header files declare the function in the std::
|
||||
namespace, not in the global namespace. So, force a declaration in
|
||||
the global namespace. */
|
||||
# if !@HAVE_WCSNCASECMP@ || (defined __sun && defined __cplusplus)
|
||||
_GL_FUNCDECL_SYS (wcsncasecmp, int,
|
||||
(const wchar_t *s1, const wchar_t *s2, size_t n)
|
||||
_GL_ATTRIBUTE_PURE);
|
||||
@ -1009,10 +1322,20 @@ _GL_WARN_ON_USE (wcsxfrm, "wcsxfrm is unportable - "
|
||||
# endif
|
||||
_GL_CXXALIAS_MDA (wcsdup, wchar_t *, (const wchar_t *s));
|
||||
# else
|
||||
# if !@HAVE_WCSDUP@ || __GNUC__ >= 11
|
||||
/* On Solaris 11.3, the header files declare the function in the std::
|
||||
namespace, not in the global namespace. So, force a declaration in
|
||||
the global namespace. */
|
||||
# if !@HAVE_WCSDUP@ || (defined __sun && defined __cplusplus) || __GNUC__ >= 11
|
||||
# if __GLIBC__ + (__GLIBC_MINOR__ >= 2) > 2
|
||||
_GL_FUNCDECL_SYS (wcsdup, wchar_t *,
|
||||
(const wchar_t *s)
|
||||
_GL_ATTRIBUTE_NOTHROW
|
||||
_GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
|
||||
# else
|
||||
_GL_FUNCDECL_SYS (wcsdup, wchar_t *,
|
||||
(const wchar_t *s)
|
||||
_GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
|
||||
# endif
|
||||
# endif
|
||||
_GL_CXXALIAS_SYS (wcsdup, wchar_t *, (const wchar_t *s));
|
||||
# endif
|
||||
@ -1020,9 +1343,16 @@ _GL_CXXALIASWARN (wcsdup);
|
||||
#else
|
||||
# if __GNUC__ >= 11 && !defined wcsdup
|
||||
/* For -Wmismatched-dealloc: Associate wcsdup with free or rpl_free. */
|
||||
# if __GLIBC__ + (__GLIBC_MINOR__ >= 2) > 2
|
||||
_GL_FUNCDECL_SYS (wcsdup, wchar_t *,
|
||||
(const wchar_t *s)
|
||||
_GL_ATTRIBUTE_NOTHROW
|
||||
_GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
|
||||
# else
|
||||
_GL_FUNCDECL_SYS (wcsdup, wchar_t *,
|
||||
(const wchar_t *s)
|
||||
_GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
|
||||
# endif
|
||||
# endif
|
||||
# if defined GNULIB_POSIXCHECK
|
||||
# undef wcsdup
|
||||
@ -1041,9 +1371,16 @@ _GL_WARN_ON_USE (wcsdup, "wcsdup is unportable - "
|
||||
# endif
|
||||
_GL_CXXALIAS_MDA (wcsdup, wchar_t *, (const wchar_t *s));
|
||||
# else
|
||||
# if __GLIBC__ + (__GLIBC_MINOR__ >= 2) > 2
|
||||
_GL_FUNCDECL_SYS (wcsdup, wchar_t *,
|
||||
(const wchar_t *s)
|
||||
_GL_ATTRIBUTE_NOTHROW
|
||||
_GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
|
||||
# else
|
||||
_GL_FUNCDECL_SYS (wcsdup, wchar_t *,
|
||||
(const wchar_t *s)
|
||||
_GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
|
||||
# endif
|
||||
# if @HAVE_DECL_WCSDUP@
|
||||
_GL_CXXALIAS_SYS (wcsdup, wchar_t *, (const wchar_t *s));
|
||||
# endif
|
||||
@ -1115,7 +1452,7 @@ _GL_WARN_ON_USE (wcsrchr, "wcsrchr is unportable - "
|
||||
#endif
|
||||
|
||||
|
||||
/* Return the length of the initial segmet of WCS which consists entirely
|
||||
/* Return the length of the initial segment of WCS which consists entirely
|
||||
of wide characters not in REJECT. */
|
||||
#if @GNULIB_WCSCSPN@
|
||||
# if !@HAVE_WCSCSPN@
|
||||
@ -1135,7 +1472,7 @@ _GL_WARN_ON_USE (wcscspn, "wcscspn is unportable - "
|
||||
#endif
|
||||
|
||||
|
||||
/* Return the length of the initial segmet of WCS which consists entirely
|
||||
/* Return the length of the initial segment of WCS which consists entirely
|
||||
of wide characters in ACCEPT. */
|
||||
#if @GNULIB_WCSSPN@
|
||||
# if !@HAVE_WCSSPN@
|
||||
@ -1190,12 +1527,25 @@ _GL_WARN_ON_USE (wcspbrk, "wcspbrk is unportable - "
|
||||
|
||||
/* Find the first occurrence of NEEDLE in HAYSTACK. */
|
||||
#if @GNULIB_WCSSTR@
|
||||
# if !@HAVE_WCSSTR@
|
||||
# if @REPLACE_WCSSTR@
|
||||
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
|
||||
# undef wcsstr
|
||||
# define wcsstr rpl_wcsstr
|
||||
# endif
|
||||
_GL_FUNCDECL_RPL (wcsstr, wchar_t *,
|
||||
(const wchar_t *restrict haystack,
|
||||
const wchar_t *restrict needle)
|
||||
_GL_ATTRIBUTE_PURE);
|
||||
_GL_CXXALIAS_RPL (wcsstr, wchar_t *,
|
||||
(const wchar_t *restrict haystack,
|
||||
const wchar_t *restrict needle));
|
||||
# else
|
||||
# if !@HAVE_WCSSTR@
|
||||
_GL_FUNCDECL_SYS (wcsstr, wchar_t *,
|
||||
(const wchar_t *restrict haystack,
|
||||
const wchar_t *restrict needle)
|
||||
_GL_ATTRIBUTE_PURE);
|
||||
# endif
|
||||
# endif
|
||||
/* On some systems, this function is defined as an overloaded function:
|
||||
extern "C++" {
|
||||
const wchar_t * std::wcsstr (const wchar_t *, const wchar_t *);
|
||||
@ -1206,6 +1556,7 @@ _GL_CXXALIAS_SYS_CAST2 (wcsstr,
|
||||
(const wchar_t *restrict, const wchar_t *restrict),
|
||||
const wchar_t *,
|
||||
(const wchar_t *restrict, const wchar_t *restrict));
|
||||
# endif
|
||||
# if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 10) && !defined __UCLIBC__) \
|
||||
&& (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
|
||||
_GL_CXXALIASWARN1 (wcsstr, wchar_t *,
|
||||
@ -1333,6 +1684,24 @@ _GL_WARN_ON_USE (wcsftime, "wcsftime is unportable - "
|
||||
#endif
|
||||
|
||||
|
||||
#if @GNULIB_WGETCWD@ && (defined _WIN32 && !defined __CYGWIN__)
|
||||
/* Gets the name of the current working directory.
|
||||
(a) If BUF is non-NULL, it is assumed to have room for SIZE wide characters.
|
||||
This function stores the working directory (NUL-terminated) in BUF and
|
||||
returns BUF.
|
||||
(b) If BUF is NULL, an array is allocated with 'malloc'. The array is SIZE
|
||||
wide characters long, unless SIZE == 0, in which case it is as big as
|
||||
necessary.
|
||||
If the directory couldn't be determined or SIZE was too small, this function
|
||||
returns NULL and sets errno. For a directory of length LEN, SIZE should be
|
||||
>= LEN + 3 in case (a) or >= LEN + 1 in case (b).
|
||||
Possible errno values include:
|
||||
- ERANGE if SIZE is too small.
|
||||
- ENOMEM if the memory could no be allocated. */
|
||||
_GL_FUNCDECL_SYS (wgetcwd, wchar_t *, (wchar_t *buf, size_t size));
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* _@GUARD_PREFIX@_WCHAR_H */
|
||||
#endif /* _@GUARD_PREFIX@_WCHAR_H */
|
||||
#endif
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user