Just some minor forgotten chores after adding new header substitutes.

2024-05-27  Collin Funk  <collin.fu...@gmail.com>

        maint.mk: Update system header list for #include syntax checks.
        * top/maint.mk (gl_prefer_angle_bracket_headers_): Add byteswap.h,
        endian.h, and stdbit.h.

        doc: Mention byteswap.h as a system header.
        * doc/gnulib-tool.texi (Style of #include statements): Add byteswap.h.

Collin

>From a03da3b1a377bf9e5375f91b3be28f16c6a32dbe Mon Sep 17 00:00:00 2001
From: Collin Funk <collin.fu...@gmail.com>
Date: Mon, 27 May 2024 21:26:48 -0700
Subject: [PATCH 1/2] doc: Mention byteswap.h as a system header.

* doc/gnulib-tool.texi (Style of #include statements): Add byteswap.h.
---
 ChangeLog            | 5 +++++
 doc/gnulib-tool.texi | 1 +
 2 files changed, 6 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 9ba81c3b5f..707ab5175d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-05-27  Collin Funk  <collin.fu...@gmail.com>
+
+	doc: Mention byteswap.h as a system header.
+	* doc/gnulib-tool.texi (Style of #include statements): Add byteswap.h.
+
 2024-05-27  Bruno Haible  <br...@clisp.org>
 
 	nstrftime, c-nstrftime tests: Avoid test failures on native Windows.
diff --git a/doc/gnulib-tool.texi b/doc/gnulib-tool.texi
index 116734f4d7..0f059e1287 100644
--- a/doc/gnulib-tool.texi
+++ b/doc/gnulib-tool.texi
@@ -620,6 +620,7 @@ @node Style of #include statements
 but are not standardized:
 @itemize @asis{}
 @item @code{alloca.h}
+@item @code{byteswap.h}
 @item @code{error.h}
 @item @code{getopt.h}
 @item @code{malloc.h}
-- 
2.45.1

>From ad61731042a23c0ca31e14b6666e99c0dcc49468 Mon Sep 17 00:00:00 2001
From: Collin Funk <collin.fu...@gmail.com>
Date: Mon, 27 May 2024 21:35:43 -0700
Subject: [PATCH 2/2] maint.mk: Update system header list for #include syntax
 checks.

* top/maint.mk (gl_prefer_angle_bracket_headers_): Add byteswap.h,
endian.h, and stdbit.h.
---
 ChangeLog    | 4 ++++
 top/maint.mk | 6 +++++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 707ab5175d..4ac06a605d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2024-05-27  Collin Funk  <collin.fu...@gmail.com>
 
+	maint.mk: Update system header list for #include syntax checks.
+	* top/maint.mk (gl_prefer_angle_bracket_headers_): Add byteswap.h,
+	endian.h, and stdbit.h.
+
 	doc: Mention byteswap.h as a system header.
 	* doc/gnulib-tool.texi (Style of #include statements): Add byteswap.h.
 
diff --git a/top/maint.mk b/top/maint.mk
index ecd8971900..c20059fbae 100644
--- a/top/maint.mk
+++ b/top/maint.mk
@@ -538,13 +538,16 @@ sc_require_config_h_first:
 	fi
 
 # Generated headers that override system headers.
-# Keep sorted.
+# These are documented in gnulib-tool.texi.  Keep sorted.
+# sed -n -e 's/^@item[[:space:]]\{1,\}@code{\([^}]\{1,\}\)}$/\1/p' $GNULIB_SRCDIR/doc/gnulib-tool.texi  | sort -u
 gl_prefer_angle_bracket_headers_ ?= \
   alloca.h		\
   arpa/inet.h		\
   assert.h		\
+  byteswap.h		\
   ctype.h		\
   dirent.h		\
+  endian.h		\
   errno.h		\
   error.h		\
   fcntl.h		\
@@ -575,6 +578,7 @@ gl_prefer_angle_bracket_headers_ ?= \
   spawn.h		\
   stdalign.h		\
   stdarg.h		\
+  stdbit.h		\
   stddef.h		\
   stdint.h		\
   stdio.h		\
-- 
2.45.1

Reply via email to