mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-08-08 17:22:05 +03:00
Rename module stdckdint to stdckdint-h.
* modules/stdckdint-h: Renamed from modules/stdckdint. * modules/stdckdint-h-tests: Renamed from modules/stdckdint-tests. * modules/stdckdint-h-c++-tests: Renamed from modules/stdckdint-c++-tests. * tests/test-stdckdint-h.c: Renamed from tests/test-stdckdint.c. * tests/test-stdckdint-h-c++.cc: Renamed from tests/test-stdckdint-c++.cc. * doc/posix-headers/stdckdint.texi: Update. * doc/intprops.texi: Update. * modules/* (Depends-on): Update. * modules/stdckdint: New file.
This commit is contained in:
15
ChangeLog
15
ChangeLog
@@ -1,3 +1,18 @@
|
||||
2024-12-27 Bruno Haible <bruno@clisp.org>
|
||||
|
||||
Rename module stdckdint to stdckdint-h.
|
||||
* modules/stdckdint-h: Renamed from modules/stdckdint.
|
||||
* modules/stdckdint-h-tests: Renamed from modules/stdckdint-tests.
|
||||
* modules/stdckdint-h-c++-tests: Renamed from
|
||||
modules/stdckdint-c++-tests.
|
||||
* tests/test-stdckdint-h.c: Renamed from tests/test-stdckdint.c.
|
||||
* tests/test-stdckdint-h-c++.cc: Renamed from
|
||||
tests/test-stdckdint-c++.cc.
|
||||
* doc/posix-headers/stdckdint.texi: Update.
|
||||
* doc/intprops.texi: Update.
|
||||
* modules/* (Depends-on): Update.
|
||||
* modules/stdckdint: New file.
|
||||
|
||||
2024-12-27 Bruno Haible <bruno@clisp.org>
|
||||
|
||||
Rename module stdbool to stdbool-h.
|
||||
|
@@ -341,9 +341,9 @@ low-order bits are the mathematically-correct product. See above for
|
||||
restrictions.
|
||||
@end table
|
||||
|
||||
@mindex stdckdint
|
||||
@mindex stdckdint-h
|
||||
If your code includes @code{<intprops.h>} only for these @code{_WRAPV}
|
||||
macros, you may prefer to use Gnulib's @code{stdckdint} module
|
||||
macros, you may prefer to use Gnulib's @code{stdckdint-h} module
|
||||
instead, as it supports similar macros that were standardized in C23
|
||||
and are therefore independent of Gnulib if your code can assume C23 or
|
||||
later. @xref{stdckdint.h}.
|
||||
|
@@ -6,8 +6,8 @@ ISO draft C23
|
||||
(@url{https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3220.pdf})
|
||||
section 7.20.
|
||||
|
||||
Gnulib module: stdckdint
|
||||
@mindex stdckdint
|
||||
Gnulib module: stdckdint-h
|
||||
@mindex stdckdint-h
|
||||
|
||||
Portability problems fixed by Gnulib:
|
||||
@itemize
|
||||
|
@@ -13,7 +13,7 @@ extensions
|
||||
extern-inline
|
||||
idx
|
||||
posix_memalign
|
||||
stdckdint
|
||||
stdckdint-h
|
||||
stdint
|
||||
|
||||
configure.ac:
|
||||
|
@@ -22,7 +22,7 @@ opendirat
|
||||
readdir
|
||||
renameatu
|
||||
stdbool-h
|
||||
stdckdint
|
||||
stdckdint-h
|
||||
stdint
|
||||
xalloc-oversized
|
||||
|
||||
|
@@ -22,7 +22,7 @@ opendirat
|
||||
readdir
|
||||
renameatu
|
||||
stdbool-h
|
||||
stdckdint
|
||||
stdckdint-h
|
||||
stdint
|
||||
xalloc-die
|
||||
|
||||
|
@@ -11,7 +11,7 @@ extern-inline
|
||||
ialloc
|
||||
stdbool-h
|
||||
memchr
|
||||
stdckdint
|
||||
stdckdint-h
|
||||
|
||||
configure.ac:
|
||||
gl_FUNC_BASE32
|
||||
|
@@ -11,7 +11,7 @@ extern-inline
|
||||
ialloc
|
||||
stdbool-h
|
||||
memchr
|
||||
stdckdint
|
||||
stdckdint-h
|
||||
|
||||
configure.ac:
|
||||
gl_FUNC_BASE64
|
||||
|
@@ -18,7 +18,7 @@ intprops
|
||||
libc-config
|
||||
locale-h
|
||||
stdbool-h
|
||||
stdckdint
|
||||
stdckdint-h
|
||||
time_rz
|
||||
|
||||
configure.ac:
|
||||
|
@@ -8,7 +8,7 @@ m4/calloc.m4
|
||||
Depends-on:
|
||||
calloc-posix
|
||||
extensions-aix
|
||||
stdckdint [test $REPLACE_CALLOC_FOR_CALLOC_GNU = 1]
|
||||
stdckdint-h [test $REPLACE_CALLOC_FOR_CALLOC_GNU = 1]
|
||||
|
||||
configure.ac:
|
||||
gl_FUNC_CALLOC_GNU
|
||||
|
@@ -7,7 +7,7 @@ m4/calloc.m4
|
||||
m4/malloc.m4
|
||||
|
||||
Depends-on:
|
||||
stdckdint [test $REPLACE_CALLOC_FOR_CALLOC_POSIX = 1]
|
||||
stdckdint-h [test $REPLACE_CALLOC_FOR_CALLOC_POSIX = 1]
|
||||
stdlib
|
||||
|
||||
configure.ac:
|
||||
|
@@ -12,7 +12,7 @@ mgetgroups
|
||||
nanosleep
|
||||
stat-time
|
||||
stdbool-h
|
||||
stdckdint
|
||||
stdckdint-h
|
||||
symlink
|
||||
xconcat-filename
|
||||
xgetcwd
|
||||
|
@@ -13,7 +13,7 @@ mgetgroups
|
||||
nanosleep
|
||||
openat-h
|
||||
stat-time
|
||||
stdckdint
|
||||
stdckdint-h
|
||||
symlink
|
||||
xconcat-filename
|
||||
xgetcwd
|
||||
|
@@ -12,7 +12,7 @@ fcntl-h
|
||||
ignore-value
|
||||
nanosleep
|
||||
openat
|
||||
stdckdint
|
||||
stdckdint-h
|
||||
timespec
|
||||
dup
|
||||
utimecmp
|
||||
|
@@ -21,7 +21,7 @@ malloc-posix
|
||||
ssize_t
|
||||
stat
|
||||
stdbool-h
|
||||
stdckdint
|
||||
stdckdint-h
|
||||
|
||||
configure.ac:
|
||||
gl_FILE_HAS_ACL
|
||||
|
@@ -17,7 +17,7 @@ idx [test $HAVE_FNMATCH = 0 || test $REPLACE_FNMATCH = 1]
|
||||
isblank [test $HAVE_FNMATCH = 0 || test $REPLACE_FNMATCH = 1]
|
||||
libc-config [test $HAVE_FNMATCH = 0 || test $REPLACE_FNMATCH = 1]
|
||||
stdbool-h [test $HAVE_FNMATCH = 0 || test $REPLACE_FNMATCH = 1]
|
||||
stdckdint [test $HAVE_FNMATCH = 0 || test $REPLACE_FNMATCH = 1]
|
||||
stdckdint-h [test $HAVE_FNMATCH = 0 || test $REPLACE_FNMATCH = 1]
|
||||
strnlen [test $HAVE_FNMATCH = 0 || test $REPLACE_FNMATCH = 1]
|
||||
uchar [test $HAVE_FNMATCH = 0 || test $REPLACE_FNMATCH = 1]
|
||||
memchr [test $HAVE_FNMATCH = 0 || test $REPLACE_FNMATCH = 1]
|
||||
|
@@ -14,7 +14,7 @@ extensions
|
||||
largefile
|
||||
sys_types
|
||||
lseek [test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1]
|
||||
stdckdint [test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1]
|
||||
stdckdint-h [test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1]
|
||||
# Just to guarantee consistency between ftell() and ftello().
|
||||
ftell
|
||||
|
||||
|
@@ -11,7 +11,7 @@ gettext-h
|
||||
fcntl-h
|
||||
ignore-value
|
||||
nanosleep
|
||||
stdckdint
|
||||
stdckdint-h
|
||||
timespec
|
||||
dup
|
||||
utimecmp
|
||||
|
@@ -17,7 +17,7 @@ builtin-expect
|
||||
gen-header
|
||||
libc-config
|
||||
stdbool-h
|
||||
stdckdint
|
||||
stdckdint-h
|
||||
stddef
|
||||
|
||||
configure.ac:
|
||||
|
@@ -29,7 +29,7 @@ opendir [test $HAVE_GLOB = 0 || test $REPLACE_GLOB = 1]
|
||||
readdir [test $HAVE_GLOB = 0 || test $REPLACE_GLOB = 1]
|
||||
glibc-internal/scratch_buffer [test $HAVE_GLOB = 0 || test $REPLACE_GLOB = 1]
|
||||
stdbool-h [test $HAVE_GLOB = 0 || test $REPLACE_GLOB = 1]
|
||||
stdckdint [test $HAVE_GLOB = 0 || test $REPLACE_GLOB = 1]
|
||||
stdckdint-h [test $HAVE_GLOB = 0 || test $REPLACE_GLOB = 1]
|
||||
stdint [test $HAVE_GLOB = 0 || test $REPLACE_GLOB = 1]
|
||||
strdup [test $HAVE_GLOB = 0 || test $REPLACE_GLOB = 1]
|
||||
unistd [test $HAVE_GLOB = 0 || test $REPLACE_GLOB = 1]
|
||||
|
@@ -10,7 +10,7 @@ unistd
|
||||
extensions
|
||||
getgroups [test $HAVE_GROUP_MEMBER = 0]
|
||||
malloc-gnu [test $HAVE_GROUP_MEMBER = 0]
|
||||
stdckdint [test $HAVE_GROUP_MEMBER = 0]
|
||||
stdckdint-h [test $HAVE_GROUP_MEMBER = 0]
|
||||
|
||||
configure.ac:
|
||||
gl_FUNC_GROUP_MEMBER
|
||||
|
@@ -10,7 +10,7 @@ errno-h
|
||||
ignore-value
|
||||
mgetgroups
|
||||
nanosleep
|
||||
stdckdint
|
||||
stdckdint-h
|
||||
stat-time
|
||||
stdbool-h
|
||||
symlink
|
||||
|
@@ -7,7 +7,7 @@ lib/malloc.c
|
||||
Depends-on:
|
||||
malloc-posix
|
||||
extensions-aix
|
||||
stdckdint [test $REPLACE_CALLOC_FOR_MALLOC_GNU = 1]
|
||||
stdckdint-h [test $REPLACE_CALLOC_FOR_MALLOC_GNU = 1]
|
||||
|
||||
configure.ac:
|
||||
gl_FUNC_MALLOC_GNU
|
||||
|
@@ -6,7 +6,7 @@ lib/malloc.c
|
||||
m4/malloc.m4
|
||||
|
||||
Depends-on:
|
||||
stdckdint [test $REPLACE_CALLOC_FOR_MALLOC_POSIX = 1]
|
||||
stdckdint-h [test $REPLACE_CALLOC_FOR_MALLOC_POSIX = 1]
|
||||
stdlib
|
||||
|
||||
configure.ac:
|
||||
|
@@ -12,7 +12,7 @@ alloca-opt
|
||||
assert-h
|
||||
extensions-aix
|
||||
idx
|
||||
stdckdint
|
||||
stdckdint-h
|
||||
stdint
|
||||
xalloc-oversized
|
||||
|
||||
|
@@ -14,7 +14,7 @@ assert-h [test $REPLACE_MKTIME = 1]
|
||||
intprops [test $REPLACE_MKTIME = 1]
|
||||
libc-config [test $REPLACE_MKTIME = 1]
|
||||
stdbool-h [test $REPLACE_MKTIME = 1]
|
||||
stdckdint [test $REPLACE_MKTIME = 1]
|
||||
stdckdint-h [test $REPLACE_MKTIME = 1]
|
||||
time_r [test $REPLACE_MKTIME = 1]
|
||||
|
||||
configure.ac:
|
||||
|
@@ -17,7 +17,7 @@ intprops
|
||||
libc-config
|
||||
localename-unsafe-limited
|
||||
stdbool-h
|
||||
stdckdint
|
||||
stdckdint-h
|
||||
time_rz
|
||||
|
||||
configure.ac:
|
||||
|
@@ -21,7 +21,7 @@ idx
|
||||
intprops
|
||||
inttypes-h
|
||||
mktime
|
||||
stdckdint
|
||||
stdckdint-h
|
||||
time-h
|
||||
time_r
|
||||
time_rz
|
||||
|
@@ -7,7 +7,7 @@ m4/posix_memalign.m4
|
||||
|
||||
Depends-on:
|
||||
extensions
|
||||
stdckdint [test $REPLACE_POSIX_MEMALIGN = 1]
|
||||
stdckdint-h [test $REPLACE_POSIX_MEMALIGN = 1]
|
||||
stdlib
|
||||
|
||||
configure.ac:
|
||||
|
@@ -11,7 +11,7 @@ c-ctype
|
||||
idx
|
||||
mktime
|
||||
stdbool-h
|
||||
stdckdint
|
||||
stdckdint-h
|
||||
time
|
||||
verify
|
||||
|
||||
|
@@ -8,7 +8,7 @@ m4/malloc.m4
|
||||
|
||||
Depends-on:
|
||||
extensions-aix
|
||||
stdckdint [test $REPLACE_REALLOC_FOR_REALLOC_POSIX != 0]
|
||||
stdckdint-h [test $REPLACE_REALLOC_FOR_REALLOC_POSIX != 0]
|
||||
stdlib
|
||||
|
||||
configure.ac:
|
||||
|
@@ -10,7 +10,7 @@ m4/reallocarray.m4
|
||||
Depends-on:
|
||||
extensions
|
||||
realloc-posix [test $HAVE_REALLOCARRAY = 0 || test $REPLACE_REALLOCARRAY = 1]
|
||||
stdckdint [test $HAVE_REALLOCARRAY = 0 || test $REPLACE_REALLOCARRAY = 1]
|
||||
stdckdint-h [test $HAVE_REALLOCARRAY = 0 || test $REPLACE_REALLOCARRAY = 1]
|
||||
stdlib
|
||||
|
||||
configure.ac:
|
||||
|
@@ -37,7 +37,7 @@ mbrtowc [test $ac_use_included_regex = yes]
|
||||
mbsinit [test $ac_use_included_regex = yes]
|
||||
nl_langinfo [test $ac_use_included_regex = yes]
|
||||
stdbool-h [test $ac_use_included_regex = yes]
|
||||
stdckdint [test $ac_use_included_regex = yes]
|
||||
stdckdint-h [test $ac_use_included_regex = yes]
|
||||
stdint [test $ac_use_included_regex = yes]
|
||||
verify [test $ac_use_included_regex = yes]
|
||||
wchar [test $ac_use_included_regex = yes]
|
||||
|
@@ -71,7 +71,7 @@ pathmax
|
||||
ssize_t
|
||||
stdbool-h
|
||||
stddef
|
||||
stdckdint
|
||||
stdckdint-h
|
||||
stdint
|
||||
stdlib
|
||||
string
|
||||
|
@@ -11,7 +11,7 @@ time-h
|
||||
errno-h
|
||||
extensions
|
||||
extern-inline
|
||||
stdckdint
|
||||
stdckdint-h
|
||||
|
||||
configure.ac:
|
||||
gl_STAT_TIME
|
||||
|
@@ -5,7 +5,7 @@ tests/nap.h
|
||||
|
||||
Depends-on:
|
||||
nanosleep
|
||||
stdckdint
|
||||
stdckdint-h
|
||||
time-h
|
||||
unistd
|
||||
xconcat-filename
|
||||
|
@@ -1,40 +1,20 @@
|
||||
Description:
|
||||
An <stdckdint.h> that is like C23.
|
||||
|
||||
Status:
|
||||
deprecated
|
||||
|
||||
Notice:
|
||||
This module is deprecated. Use the module 'stdckdint-h' instead.
|
||||
|
||||
Files:
|
||||
lib/stdckdint.in.h
|
||||
lib/intprops-internal.h
|
||||
|
||||
Depends-on:
|
||||
gen-header
|
||||
stdbool-h
|
||||
stdckdint-h
|
||||
|
||||
configure.ac:
|
||||
AC_CHECK_HEADERS_ONCE([stdckdint.h])
|
||||
if test $ac_cv_header_stdckdint_h = yes; then
|
||||
GL_GENERATE_STDCKDINT_H=false
|
||||
else
|
||||
GL_GENERATE_STDCKDINT_H=true
|
||||
fi
|
||||
gl_CONDITIONAL_HEADER([stdckdint.h])
|
||||
AC_PROG_MKDIR_P
|
||||
|
||||
Makefile.am:
|
||||
BUILT_SOURCES += $(STDCKDINT_H)
|
||||
|
||||
# We need the following in order to create <stdckdint.h> when the system
|
||||
# doesn't have one that works with the given compiler.
|
||||
if GL_GENERATE_STDCKDINT_H
|
||||
stdckdint.h: stdckdint.in.h $(top_builddir)/config.status
|
||||
@NMD@ $(AM_V_GEN)$(MKDIR_P) '%reldir%'
|
||||
$(gl_V_at)$(SED_HEADER_STDOUT) \
|
||||
$(srcdir)/stdckdint.in.h > $@-t
|
||||
$(AM_V_at)mv $@-t $@
|
||||
else
|
||||
stdckdint.h: $(top_builddir)/config.status
|
||||
rm -f $@
|
||||
endif
|
||||
MOSTLYCLEANFILES += stdckdint.h stdckdint.h-t
|
||||
|
||||
Include:
|
||||
<stdckdint.h>
|
||||
@@ -43,4 +23,3 @@ License:
|
||||
LGPLv2+
|
||||
|
||||
Maintainer:
|
||||
Paul Eggert
|
||||
|
@@ -1,17 +0,0 @@
|
||||
Files:
|
||||
tests/test-stdckdint-c++.cc
|
||||
|
||||
Status:
|
||||
c++-test
|
||||
|
||||
Depends-on:
|
||||
ansi-c++-opt
|
||||
|
||||
configure.ac:
|
||||
|
||||
Makefile.am:
|
||||
if ANSICXX
|
||||
TESTS += test-stdckdint-c++
|
||||
check_PROGRAMS += test-stdckdint-c++
|
||||
test_stdckdint_c___SOURCES = test-stdckdint-c++.cc
|
||||
endif
|
46
modules/stdckdint-h
Normal file
46
modules/stdckdint-h
Normal file
@@ -0,0 +1,46 @@
|
||||
Description:
|
||||
An <stdckdint.h> that is like C23.
|
||||
|
||||
Files:
|
||||
lib/stdckdint.in.h
|
||||
lib/intprops-internal.h
|
||||
|
||||
Depends-on:
|
||||
gen-header
|
||||
stdbool-h
|
||||
|
||||
configure.ac:
|
||||
AC_CHECK_HEADERS_ONCE([stdckdint.h])
|
||||
if test $ac_cv_header_stdckdint_h = yes; then
|
||||
GL_GENERATE_STDCKDINT_H=false
|
||||
else
|
||||
GL_GENERATE_STDCKDINT_H=true
|
||||
fi
|
||||
gl_CONDITIONAL_HEADER([stdckdint.h])
|
||||
AC_PROG_MKDIR_P
|
||||
|
||||
Makefile.am:
|
||||
BUILT_SOURCES += $(STDCKDINT_H)
|
||||
|
||||
# We need the following in order to create <stdckdint.h> when the system
|
||||
# doesn't have one that works with the given compiler.
|
||||
if GL_GENERATE_STDCKDINT_H
|
||||
stdckdint.h: stdckdint.in.h $(top_builddir)/config.status
|
||||
@NMD@ $(AM_V_GEN)$(MKDIR_P) '%reldir%'
|
||||
$(gl_V_at)$(SED_HEADER_STDOUT) \
|
||||
$(srcdir)/stdckdint.in.h > $@-t
|
||||
$(AM_V_at)mv $@-t $@
|
||||
else
|
||||
stdckdint.h: $(top_builddir)/config.status
|
||||
rm -f $@
|
||||
endif
|
||||
MOSTLYCLEANFILES += stdckdint.h stdckdint.h-t
|
||||
|
||||
Include:
|
||||
<stdckdint.h>
|
||||
|
||||
License:
|
||||
LGPLv2+
|
||||
|
||||
Maintainer:
|
||||
Paul Eggert
|
17
modules/stdckdint-h-c++-tests
Normal file
17
modules/stdckdint-h-c++-tests
Normal file
@@ -0,0 +1,17 @@
|
||||
Files:
|
||||
tests/test-stdckdint-h-c++.cc
|
||||
|
||||
Status:
|
||||
c++-test
|
||||
|
||||
Depends-on:
|
||||
ansi-c++-opt
|
||||
|
||||
configure.ac:
|
||||
|
||||
Makefile.am:
|
||||
if ANSICXX
|
||||
TESTS += test-stdckdint-h-c++
|
||||
check_PROGRAMS += test-stdckdint-h-c++
|
||||
test_stdckdint_h_c___SOURCES = test-stdckdint-h-c++.cc
|
||||
endif
|
@@ -1,16 +1,16 @@
|
||||
Files:
|
||||
tests/macros.h
|
||||
tests/test-intprops.c
|
||||
tests/test-stdckdint.c
|
||||
tests/test-stdckdint-h.c
|
||||
|
||||
Depends-on:
|
||||
assert-h
|
||||
inttypes-h
|
||||
stdbool-h
|
||||
stdckdint-c++-tests
|
||||
stdckdint-h-c++-tests
|
||||
|
||||
configure.ac:
|
||||
|
||||
Makefile.am:
|
||||
TESTS += test-stdckdint
|
||||
check_PROGRAMS += test-stdckdint
|
||||
TESTS += test-stdckdint-h
|
||||
check_PROGRAMS += test-stdckdint-h
|
@@ -8,7 +8,7 @@ Depends-on:
|
||||
c99
|
||||
intprops
|
||||
stdbool-h
|
||||
stdckdint
|
||||
stdckdint-h
|
||||
timespec
|
||||
|
||||
configure.ac:
|
||||
|
@@ -8,7 +8,7 @@ Depends-on:
|
||||
c99
|
||||
intprops
|
||||
stdbool-h
|
||||
stdckdint
|
||||
stdckdint-h
|
||||
timespec
|
||||
|
||||
configure.ac:
|
||||
|
@@ -9,7 +9,7 @@ dup
|
||||
gettext-h
|
||||
ignore-value
|
||||
nanosleep
|
||||
stdckdint
|
||||
stdckdint-h
|
||||
symlink
|
||||
timespec
|
||||
utimecmp
|
||||
|
@@ -12,7 +12,7 @@ dup
|
||||
gettext-h
|
||||
ignore-value
|
||||
nanosleep
|
||||
stdckdint
|
||||
stdckdint-h
|
||||
symlink
|
||||
timespec
|
||||
utimecmp
|
||||
|
@@ -10,7 +10,7 @@ tests/macros.h
|
||||
Depends-on:
|
||||
ignore-value
|
||||
nanosleep
|
||||
stdckdint
|
||||
stdckdint-h
|
||||
timespec
|
||||
utimecmp
|
||||
xconcat-filename
|
||||
|
@@ -16,7 +16,7 @@ malloc-gnu
|
||||
minmax
|
||||
realloc-posix
|
||||
reallocarray
|
||||
stdckdint
|
||||
stdckdint-h
|
||||
stdint
|
||||
xalloc-die
|
||||
|
||||
|
@@ -9,7 +9,7 @@ m4/xstrtol.m4
|
||||
|
||||
Depends-on:
|
||||
intprops
|
||||
stdckdint
|
||||
stdckdint-h
|
||||
stdint
|
||||
|
||||
configure.ac:
|
||||
|
Reference in New Issue
Block a user