1
0
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:
Bruno Haible
2024-12-27 23:21:40 +01:00
parent 3c501171cf
commit 116997309c
50 changed files with 133 additions and 93 deletions

View File

@@ -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> 2024-12-27 Bruno Haible <bruno@clisp.org>
Rename module stdbool to stdbool-h. Rename module stdbool to stdbool-h.

View File

@@ -341,9 +341,9 @@ low-order bits are the mathematically-correct product. See above for
restrictions. restrictions.
@end table @end table
@mindex stdckdint @mindex stdckdint-h
If your code includes @code{<intprops.h>} only for these @code{_WRAPV} 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 instead, as it supports similar macros that were standardized in C23
and are therefore independent of Gnulib if your code can assume C23 or and are therefore independent of Gnulib if your code can assume C23 or
later. @xref{stdckdint.h}. later. @xref{stdckdint.h}.

View File

@@ -6,8 +6,8 @@ ISO draft C23
(@url{https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3220.pdf}) (@url{https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3220.pdf})
section 7.20. section 7.20.
Gnulib module: stdckdint Gnulib module: stdckdint-h
@mindex stdckdint @mindex stdckdint-h
Portability problems fixed by Gnulib: Portability problems fixed by Gnulib:
@itemize @itemize

View File

@@ -13,7 +13,7 @@ extensions
extern-inline extern-inline
idx idx
posix_memalign posix_memalign
stdckdint stdckdint-h
stdint stdint
configure.ac: configure.ac:

View File

@@ -22,7 +22,7 @@ opendirat
readdir readdir
renameatu renameatu
stdbool-h stdbool-h
stdckdint stdckdint-h
stdint stdint
xalloc-oversized xalloc-oversized

View File

@@ -22,7 +22,7 @@ opendirat
readdir readdir
renameatu renameatu
stdbool-h stdbool-h
stdckdint stdckdint-h
stdint stdint
xalloc-die xalloc-die

View File

@@ -11,7 +11,7 @@ extern-inline
ialloc ialloc
stdbool-h stdbool-h
memchr memchr
stdckdint stdckdint-h
configure.ac: configure.ac:
gl_FUNC_BASE32 gl_FUNC_BASE32

View File

@@ -11,7 +11,7 @@ extern-inline
ialloc ialloc
stdbool-h stdbool-h
memchr memchr
stdckdint stdckdint-h
configure.ac: configure.ac:
gl_FUNC_BASE64 gl_FUNC_BASE64

View File

@@ -18,7 +18,7 @@ intprops
libc-config libc-config
locale-h locale-h
stdbool-h stdbool-h
stdckdint stdckdint-h
time_rz time_rz
configure.ac: configure.ac:

View File

@@ -8,7 +8,7 @@ m4/calloc.m4
Depends-on: Depends-on:
calloc-posix calloc-posix
extensions-aix extensions-aix
stdckdint [test $REPLACE_CALLOC_FOR_CALLOC_GNU = 1] stdckdint-h [test $REPLACE_CALLOC_FOR_CALLOC_GNU = 1]
configure.ac: configure.ac:
gl_FUNC_CALLOC_GNU gl_FUNC_CALLOC_GNU

View File

@@ -7,7 +7,7 @@ m4/calloc.m4
m4/malloc.m4 m4/malloc.m4
Depends-on: Depends-on:
stdckdint [test $REPLACE_CALLOC_FOR_CALLOC_POSIX = 1] stdckdint-h [test $REPLACE_CALLOC_FOR_CALLOC_POSIX = 1]
stdlib stdlib
configure.ac: configure.ac:

View File

@@ -12,7 +12,7 @@ mgetgroups
nanosleep nanosleep
stat-time stat-time
stdbool-h stdbool-h
stdckdint stdckdint-h
symlink symlink
xconcat-filename xconcat-filename
xgetcwd xgetcwd

View File

@@ -13,7 +13,7 @@ mgetgroups
nanosleep nanosleep
openat-h openat-h
stat-time stat-time
stdckdint stdckdint-h
symlink symlink
xconcat-filename xconcat-filename
xgetcwd xgetcwd

View File

@@ -12,7 +12,7 @@ fcntl-h
ignore-value ignore-value
nanosleep nanosleep
openat openat
stdckdint stdckdint-h
timespec timespec
dup dup
utimecmp utimecmp

View File

@@ -21,7 +21,7 @@ malloc-posix
ssize_t ssize_t
stat stat
stdbool-h stdbool-h
stdckdint stdckdint-h
configure.ac: configure.ac:
gl_FILE_HAS_ACL gl_FILE_HAS_ACL

View File

@@ -17,7 +17,7 @@ idx [test $HAVE_FNMATCH = 0 || test $REPLACE_FNMATCH = 1]
isblank [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] libc-config [test $HAVE_FNMATCH = 0 || test $REPLACE_FNMATCH = 1]
stdbool-h [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] strnlen [test $HAVE_FNMATCH = 0 || test $REPLACE_FNMATCH = 1]
uchar [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] memchr [test $HAVE_FNMATCH = 0 || test $REPLACE_FNMATCH = 1]

View File

@@ -14,7 +14,7 @@ extensions
largefile largefile
sys_types sys_types
lseek [test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1] 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(). # Just to guarantee consistency between ftell() and ftello().
ftell ftell

View File

@@ -11,7 +11,7 @@ gettext-h
fcntl-h fcntl-h
ignore-value ignore-value
nanosleep nanosleep
stdckdint stdckdint-h
timespec timespec
dup dup
utimecmp utimecmp

View File

@@ -17,7 +17,7 @@ builtin-expect
gen-header gen-header
libc-config libc-config
stdbool-h stdbool-h
stdckdint stdckdint-h
stddef stddef
configure.ac: configure.ac:

View File

@@ -29,7 +29,7 @@ opendir [test $HAVE_GLOB = 0 || test $REPLACE_GLOB = 1]
readdir [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] glibc-internal/scratch_buffer [test $HAVE_GLOB = 0 || test $REPLACE_GLOB = 1]
stdbool-h [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] stdint [test $HAVE_GLOB = 0 || test $REPLACE_GLOB = 1]
strdup [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] unistd [test $HAVE_GLOB = 0 || test $REPLACE_GLOB = 1]

View File

@@ -10,7 +10,7 @@ unistd
extensions extensions
getgroups [test $HAVE_GROUP_MEMBER = 0] getgroups [test $HAVE_GROUP_MEMBER = 0]
malloc-gnu [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: configure.ac:
gl_FUNC_GROUP_MEMBER gl_FUNC_GROUP_MEMBER

View File

@@ -10,7 +10,7 @@ errno-h
ignore-value ignore-value
mgetgroups mgetgroups
nanosleep nanosleep
stdckdint stdckdint-h
stat-time stat-time
stdbool-h stdbool-h
symlink symlink

View File

@@ -7,7 +7,7 @@ lib/malloc.c
Depends-on: Depends-on:
malloc-posix malloc-posix
extensions-aix extensions-aix
stdckdint [test $REPLACE_CALLOC_FOR_MALLOC_GNU = 1] stdckdint-h [test $REPLACE_CALLOC_FOR_MALLOC_GNU = 1]
configure.ac: configure.ac:
gl_FUNC_MALLOC_GNU gl_FUNC_MALLOC_GNU

View File

@@ -6,7 +6,7 @@ lib/malloc.c
m4/malloc.m4 m4/malloc.m4
Depends-on: Depends-on:
stdckdint [test $REPLACE_CALLOC_FOR_MALLOC_POSIX = 1] stdckdint-h [test $REPLACE_CALLOC_FOR_MALLOC_POSIX = 1]
stdlib stdlib
configure.ac: configure.ac:

View File

@@ -12,7 +12,7 @@ alloca-opt
assert-h assert-h
extensions-aix extensions-aix
idx idx
stdckdint stdckdint-h
stdint stdint
xalloc-oversized xalloc-oversized

View File

@@ -14,7 +14,7 @@ assert-h [test $REPLACE_MKTIME = 1]
intprops [test $REPLACE_MKTIME = 1] intprops [test $REPLACE_MKTIME = 1]
libc-config [test $REPLACE_MKTIME = 1] libc-config [test $REPLACE_MKTIME = 1]
stdbool-h [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] time_r [test $REPLACE_MKTIME = 1]
configure.ac: configure.ac:

View File

@@ -17,7 +17,7 @@ intprops
libc-config libc-config
localename-unsafe-limited localename-unsafe-limited
stdbool-h stdbool-h
stdckdint stdckdint-h
time_rz time_rz
configure.ac: configure.ac:

View File

@@ -21,7 +21,7 @@ idx
intprops intprops
inttypes-h inttypes-h
mktime mktime
stdckdint stdckdint-h
time-h time-h
time_r time_r
time_rz time_rz

View File

@@ -7,7 +7,7 @@ m4/posix_memalign.m4
Depends-on: Depends-on:
extensions extensions
stdckdint [test $REPLACE_POSIX_MEMALIGN = 1] stdckdint-h [test $REPLACE_POSIX_MEMALIGN = 1]
stdlib stdlib
configure.ac: configure.ac:

View File

@@ -11,7 +11,7 @@ c-ctype
idx idx
mktime mktime
stdbool-h stdbool-h
stdckdint stdckdint-h
time time
verify verify

View File

@@ -8,7 +8,7 @@ m4/malloc.m4
Depends-on: Depends-on:
extensions-aix extensions-aix
stdckdint [test $REPLACE_REALLOC_FOR_REALLOC_POSIX != 0] stdckdint-h [test $REPLACE_REALLOC_FOR_REALLOC_POSIX != 0]
stdlib stdlib
configure.ac: configure.ac:

View File

@@ -10,7 +10,7 @@ m4/reallocarray.m4
Depends-on: Depends-on:
extensions extensions
realloc-posix [test $HAVE_REALLOCARRAY = 0 || test $REPLACE_REALLOCARRAY = 1] 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 stdlib
configure.ac: configure.ac:

View File

@@ -37,7 +37,7 @@ mbrtowc [test $ac_use_included_regex = yes]
mbsinit [test $ac_use_included_regex = yes] mbsinit [test $ac_use_included_regex = yes]
nl_langinfo [test $ac_use_included_regex = yes] nl_langinfo [test $ac_use_included_regex = yes]
stdbool-h [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] stdint [test $ac_use_included_regex = yes]
verify [test $ac_use_included_regex = yes] verify [test $ac_use_included_regex = yes]
wchar [test $ac_use_included_regex = yes] wchar [test $ac_use_included_regex = yes]

View File

@@ -71,7 +71,7 @@ pathmax
ssize_t ssize_t
stdbool-h stdbool-h
stddef stddef
stdckdint stdckdint-h
stdint stdint
stdlib stdlib
string string

View File

@@ -11,7 +11,7 @@ time-h
errno-h errno-h
extensions extensions
extern-inline extern-inline
stdckdint stdckdint-h
configure.ac: configure.ac:
gl_STAT_TIME gl_STAT_TIME

View File

@@ -5,7 +5,7 @@ tests/nap.h
Depends-on: Depends-on:
nanosleep nanosleep
stdckdint stdckdint-h
time-h time-h
unistd unistd
xconcat-filename xconcat-filename

View File

@@ -1,40 +1,20 @@
Description: Description:
An <stdckdint.h> that is like C23. An <stdckdint.h> that is like C23.
Status:
deprecated
Notice:
This module is deprecated. Use the module 'stdckdint-h' instead.
Files: Files:
lib/stdckdint.in.h
lib/intprops-internal.h
Depends-on: Depends-on:
gen-header stdckdint-h
stdbool-h
configure.ac: 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: 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: Include:
<stdckdint.h> <stdckdint.h>
@@ -43,4 +23,3 @@ License:
LGPLv2+ LGPLv2+
Maintainer: Maintainer:
Paul Eggert

View File

@@ -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
View 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

View 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

View File

@@ -1,16 +1,16 @@
Files: Files:
tests/macros.h tests/macros.h
tests/test-intprops.c tests/test-intprops.c
tests/test-stdckdint.c tests/test-stdckdint-h.c
Depends-on: Depends-on:
assert-h assert-h
inttypes-h inttypes-h
stdbool-h stdbool-h
stdckdint-c++-tests stdckdint-h-c++-tests
configure.ac: configure.ac:
Makefile.am: Makefile.am:
TESTS += test-stdckdint TESTS += test-stdckdint-h
check_PROGRAMS += test-stdckdint check_PROGRAMS += test-stdckdint-h

View File

@@ -8,7 +8,7 @@ Depends-on:
c99 c99
intprops intprops
stdbool-h stdbool-h
stdckdint stdckdint-h
timespec timespec
configure.ac: configure.ac:

View File

@@ -8,7 +8,7 @@ Depends-on:
c99 c99
intprops intprops
stdbool-h stdbool-h
stdckdint stdckdint-h
timespec timespec
configure.ac: configure.ac:

View File

@@ -9,7 +9,7 @@ dup
gettext-h gettext-h
ignore-value ignore-value
nanosleep nanosleep
stdckdint stdckdint-h
symlink symlink
timespec timespec
utimecmp utimecmp

View File

@@ -12,7 +12,7 @@ dup
gettext-h gettext-h
ignore-value ignore-value
nanosleep nanosleep
stdckdint stdckdint-h
symlink symlink
timespec timespec
utimecmp utimecmp

View File

@@ -10,7 +10,7 @@ tests/macros.h
Depends-on: Depends-on:
ignore-value ignore-value
nanosleep nanosleep
stdckdint stdckdint-h
timespec timespec
utimecmp utimecmp
xconcat-filename xconcat-filename

View File

@@ -16,7 +16,7 @@ malloc-gnu
minmax minmax
realloc-posix realloc-posix
reallocarray reallocarray
stdckdint stdckdint-h
stdint stdint
xalloc-die xalloc-die

View File

@@ -9,7 +9,7 @@ m4/xstrtol.m4
Depends-on: Depends-on:
intprops intprops
stdckdint stdckdint-h
stdint stdint
configure.ac: configure.ac: