+2025-05-07 Bruno Haible <bruno@clisp.org>
+
+ Fix "make sc_check_config_h_reminder" failure.
+ * Makefile (config_h_MACROS2): Add _GL_ATTRIBUTE_DEALLOC_FREE,
+ _GL_ATTRIBUTE_NONNULL_IF_NONZERO, _GL_ATTRIBUTE_REPRODUCIBLE,
+ _GL_ATTRIBUTE_UNSEQUENCED, _GL_ATTRIBUTE_CAPABILITY_TYPE,
+ _GL_ATTRIBUTE_ACQUIRE_CAPABILITY, _GL_ATTRIBUTE_RELEASE_CAPABILITY.
+ (exclude_file_name_regexp--sc_check_config_h_reminder): New variable.
+ (sc_check_config_h_reminder): Use it.
+ * lib/areadlink.h: Add <config.h> reminder.
+ * lib/crc.h: Likewise.
+ * lib/crc-x86_64.h: Likewise.
+ * lib/diffseq.h: Likewise.
+ * lib/gl_sublist.h: Likewise.
+ * lib/signed-nan.h: Likewise.
+ * lib/signed-snan.h: Likewise.
+ * lib/snan.h: Likewise.
+ * lib/unicase/special-casing.in.h: Likewise.
+
2025-05-07 Bruno Haible <bruno@clisp.org>
Tidy "make sc_prohibit_AC_LIBOBJ_in_m4" check.
_GL_ATTRIBUTE_COLD \
_GL_ATTRIBUTE_CONST \
_GL_ATTRIBUTE_DEALLOC \
+ _GL_ATTRIBUTE_DEALLOC_FREE \
_GL_ATTRIBUTE_DEPRECATED \
_GL_ATTRIBUTE_ERROR \
_GL_ATTRIBUTE_WARNING \
_GL_ATTRIBUTE_NODISCARD \
_GL_ATTRIBUTE_NOINLINE \
_GL_ATTRIBUTE_NONNULL \
+ _GL_ATTRIBUTE_NONNULL_IF_NONZERO \
_GL_ATTRIBUTE_NONSTRING \
_GL_ATTRIBUTE_NOTHROW \
_GL_ATTRIBUTE_PACKED \
_GL_ATTRIBUTE_PURE \
+ _GL_ATTRIBUTE_REPRODUCIBLE \
_GL_ATTRIBUTE_RETURNS_NONNULL \
_GL_ATTRIBUTE_SENTINEL \
+ _GL_ATTRIBUTE_UNSEQUENCED \
_GL_ATTRIBUTE_UNUSED \
_GL_UNUSED_LABEL \
+ _GL_ATTRIBUTE_CAPABILITY_TYPE \
+ _GL_ATTRIBUTE_ACQUIRE_CAPABILITY \
+ _GL_ATTRIBUTE_RELEASE_CAPABILITY \
_GL_BEGIN_C_LINKAGE \
_GL_END_C_LINKAGE \
_GL_ASYNC_SAFE \
# include <config.h>.
sc_check_config_h_reminder:
fail=0; \
- for file in `grep -l -F -w -f <(for macro in $(config_h_MACROS); do echo $$macro; done) lib/*.h lib/*/*.h`; do \
+ for file in `grep -l -F -w -f <(for macro in $(config_h_MACROS); do echo $$macro; done) lib/*.h lib/*/*.h \
+ | grep -vE '$(exclude_file_name_regexp--sc_check_config_h_reminder)'`; do \
: "Filter out .h files that are not public header files of their respective module."; \
include_pattern='[<"]'`echo $$file | sed -e 's,^lib/,,' -e 's,[.]in[.]h,.h,' -e 's,_,[/_],g' -e 's,[.],[.],g'`'[>"]' ; \
if ./gnulib-tool --extract-include-directive `./gnulib-tool --find $$file` | grep "$$include_pattern" >/dev/null; then \
fi; \
done; \
exit $$fail
+exclude_file_name_regexp--sc_check_config_h_reminder = \
+ ^lib/(noreturn\.h|(uninorm|unistr)\.in\.h)
# Ensure that .h files that invoke _GL_INLINE_HEADER_BEGIN also invoke
/* Written by Jim Meyering <jim@meyering.net> */
+/* This file uses _GL_ATTRIBUTE_DEALLOC_FREE. */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
#include <stdlib.h>
#ifdef __cplusplus
#ifndef CRC_X86_64_H
#define CRC_X86_64_H 1
+/* This file uses _GL_ATTRIBUTE_PURE. */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
#include <stddef.h>
#include <stdint.h>
#ifndef CRC_H
#define CRC_H 1
+/* This file uses _GL_ATTRIBUTE_PURE. */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
#include <stddef.h>
#include <stdint.h>
#include "minmax.h"
*/
+/* This file uses _GL_GNUC_PREREQ. */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
/* Maximum value of type OFFSET. */
#ifndef OFFSET_MAX
# define OFFSET_MAX \
#ifndef _GL_SUBLIST_H
#define _GL_SUBLIST_H
+/* This file uses _GL_ATTRIBUTE_DEALLOC, _GL_ATTRIBUTE_RETURNS_NONNULL. */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
#include "gl_list.h"
#ifdef __cplusplus
#ifndef _SIGNED_NAN_H
#define _SIGNED_NAN_H
+/* This file uses _GL_UNUSED. */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
#include <math.h>
#include "nan.h"
#ifndef _SIGNED_SNAN_H
#define _SIGNED_SNAN_H
+/* This file uses _GL_UNUSED. */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
#include "signed-nan.h"
#include "snan.h"
#ifndef _SNAN_H
#define _SNAN_H
+/* This file uses _GL_UNUSED. */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
#include <float.h>
#include <limits.h>
#include <math.h>
License and of the GNU General Public License along with this
program. If not, see <https://www.gnu.org/licenses/>. */
+/* This file uses _GL_ATTRIBUTE_NONSTRING. */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
#include <stddef.h>
#ifdef __cplusplus