Hash :
6ebad7ab
Author :
Date :
2024-12-28T06:08:15
Rename module stdbool-h to bool. Reported by Paul Eggert in <https://lists.gnu.org/archive/html/bug-gnulib/2024-12/msg00193.html>. * modules/bool: Renamed from modules/stdbool-h. * modules/bool-tests: Renamed from modules/stdbool-h-tests. * modules/bool-c++-tests: Renamed from modules/stdbool-h-c++-tests. * tests/test-bool.c: Renamed from tests/test-stdbool-h.c. * tests/test-bool-c++.cc: Renamed from tests/test-stdbool-h-c++.cc. * tests/test-bool-c++2.cc: Renamed from tests/test-stdbool-h-c++2.cc. * modules/stdbool-h-c99-tests: Update. * modules/stdbool-h-c99-c++-tests: Update. * tests/test-stdbool-h-c99.c: Update. * tests/test-stdbool-h-c99-c++.cc: Update. * doc/posix-headers/stdbool.texi: Update. * doc/gnulib-readme.texi: Update. * doc/gnulib.texi: Update. * modules/* (Depends-on): Update. * modules/stdbool: Update.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
Description:
A <stdbit.h> for platforms that lack it.
Files:
lib/stdbit.in.h
lib/stdbit.c
m4/stdbit_h.m4
Depends-on:
gen-header
extern-inline [$GL_GENERATE_STDBIT_H]
bool [$GL_GENERATE_STDBIT_H]
configure.ac:
gl_STDBIT_H
gl_CONDITIONAL_HEADER([stdbit.h])
AC_PROG_MKDIR_P
Makefile.am:
BUILT_SOURCES += $(STDBIT_H)
# We need the following in order to create <stdbit.h> when the system
# doesn't have one that works with the given compiler.
if GL_GENERATE_STDBIT_H
stdbit.h: stdbit.in.h $(top_builddir)/config.status
@NMD@ $(AM_V_GEN)$(MKDIR_P) '%reldir%'
$(gl_V_at)$(SED_HEADER_STDOUT) \
-e 's/@''GL_STDC_LEADING_ZEROS''@/$(GL_STDC_LEADING_ZEROS)/g' \
-e 's/@''GL_STDC_LEADING_ONES''@/$(GL_STDC_LEADING_ONES)/g' \
-e 's/@''GL_STDC_TRAILING_ZEROS''@/$(GL_STDC_TRAILING_ZEROS)/g' \
-e 's/@''GL_STDC_TRAILING_ONES''@/$(GL_STDC_TRAILING_ONES)/g' \
-e 's/@''GL_STDC_FIRST_LEADING_ZERO''@/$(GL_STDC_FIRST_LEADING_ZERO)/g' \
-e 's/@''GL_STDC_FIRST_LEADING_ONE''@/$(GL_STDC_FIRST_LEADING_ONE)/g' \
-e 's/@''GL_STDC_FIRST_TRAILING_ZERO''@/$(GL_STDC_FIRST_TRAILING_ZERO)/g' \
-e 's/@''GL_STDC_FIRST_TRAILING_ONE''@/$(GL_STDC_FIRST_TRAILING_ONE)/g' \
-e 's/@''GL_STDC_COUNT_ZEROS''@/$(GL_STDC_COUNT_ZEROS)/g' \
-e 's/@''GL_STDC_COUNT_ONES''@/$(GL_STDC_COUNT_ONES)/g' \
-e 's/@''GL_STDC_HAS_SINGLE_BIT''@/$(GL_STDC_HAS_SINGLE_BIT)/g' \
-e 's/@''GL_STDC_BIT_WIDTH''@/$(GL_STDC_BIT_WIDTH)/g' \
-e 's/@''GL_STDC_BIT_FLOOR''@/$(GL_STDC_BIT_FLOOR)/g' \
-e 's/@''GL_STDC_BIT_CEIL''@/$(GL_STDC_BIT_CEIL)/g' \
$(srcdir)/stdbit.in.h > $@-t
$(AM_V_at)mv $@-t $@
lib_SOURCES += stdbit.c
else
stdbit.h: $(top_builddir)/config.status
rm -f $@
endif
MOSTLYCLEANFILES += stdbit.h stdbit.h-t
Include:
<stdbit.h>
License:
LGPLv2+
Maintainer:
all