]> Savannah Git Hosting - gnulib.git/commitdiff
Add more reminders to include <config.h>.
authorBruno Haible <bruno@clisp.org>
Wed, 12 Apr 2023 12:49:29 +0000 (14:49 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 12 Apr 2023 17:37:37 +0000 (19:37 +0200)
* m4/gnulib-common.m4 (gl_COMMON): In config.h, define
_GL_CONFIG_H_INCLUDED.
* lib/acl-internal.h: Test _GL_CONFIG_H_INCLUDED instead of
_GL_INLINE_HEADER_BEGIN.
* lib/alignalloc.h: Likewise.
* lib/argp-fmtstream.h: Likewise.
* lib/argp.h: Likewise.
* lib/binary-io.h: Likewise.
* lib/bitrotate.h: Likewise.
* lib/c-ctype.h: Likewise.
* lib/count-leading-zeros.h: Likewise.
* lib/count-one-bits.h: Likewise.
* lib/count-trailing-zeros.h: Likewise.
* lib/eealloc.h: Likewise.
* lib/execinfo.in.h: Likewise.
* lib/gethrxtime.h: Likewise.
* lib/gl_list.h: Likewise.
* lib/gl_map.h: Likewise.
* lib/gl_omap.h: Likewise.
* lib/gl_openssl.h: Likewise.
* lib/gl_oset.h: Likewise.
* lib/gl_set.h: Likewise.
* lib/gl_xlist.h: Likewise.
* lib/gl_xmap.h: Likewise.
* lib/gl_xomap.h: Likewise.
* lib/gl_xoset.h: Likewise.
* lib/gl_xset.h: Likewise.
* lib/gl_xsublist.h: Likewise.
* lib/glthread/cond.h: Likewise.
* lib/hamt.h: Likewise.
* lib/ialloc.h: Likewise.
* lib/math.in.h: Likewise.
* lib/mbchar.h: Likewise.
* lib/mbfile.h: Likewise.
* lib/mbiter.h: Likewise.
* lib/mbuiter.h: Likewise.
* lib/openat.h: Likewise.
* lib/pipe-filter-aux.h: Likewise.
* lib/priv-set.h: Likewise.
* lib/safe-alloc.h: Likewise.
* lib/savewd.h: Likewise.
* lib/se-context.in.h: Likewise.
* lib/se-label.in.h: Likewise.
* lib/se-selinux.in.h: Likewise.
* lib/sig-handler.h: Likewise.
* lib/stat-time.h: Likewise.
* lib/string-desc-quotearg.h: Likewise.
* lib/string-desc.h: Likewise.
* lib/sys_socket.in.h: Likewise.
* lib/timespec.h: Likewise.
* lib/u64.h: Likewise.
* lib/uchar.in.h: Likewise.
* lib/unistd.in.h: Likewise.
* lib/utimens.h: Likewise.
* lib/wctype.in.h: Likewise.
* lib/xalloc.h: Likewise.
* lib/xbinary-io.h: Likewise.
* lib/xsize.h: Likewise.
* lib/xstring-desc.h: Likewise.
* lib/xtime.h: Likewise.
* lib/acl.h: Check that config.h was already included.
* lib/alignof.h: Likewise.
* lib/argmatch.h: Likewise.
* lib/argv-iter.h: Likewise.
* lib/arpa_inet.in.h: Likewise.
* lib/attribute.h: Likewise.
* lib/backupfile.h: Likewise.
* lib/base32.h: Likewise.
* lib/base64.h: Likewise.
* lib/basename-lgpl.h: Likewise.
* lib/bitset.h: Likewise.
* lib/bitsetv.h: Likewise.
* lib/c-snprintf.h: Likewise.
* lib/c-stack.h: Likewise.
* lib/c-strcase.h: Likewise.
* lib/c-vasnprintf.h: Likewise.
* lib/c-vasprintf.h: Likewise.
* lib/c-vsnprintf.h: Likewise.
* lib/c-xvasprintf.h: Likewise.
* lib/canon-host.h: Likewise.
* lib/canonicalize.h: Likewise.
* lib/clean-temp.h: Likewise.
* lib/concat-filename.h: Likewise.
* lib/ctype.in.h: Likewise.
* lib/dfa.h: Likewise.
* lib/di-set.h: Likewise.
* lib/dirent-safer.h: Likewise.
* lib/dirent.in.h: Likewise.
* lib/dirname.h: Likewise.
* lib/eloop-threshold.h: Likewise.
* lib/error.in.h: Likewise.
* lib/exclude.h: Likewise.
* lib/fatal-signal.h: Likewise.
* lib/fcntl.in.h: Likewise.
* lib/file-type.h: Likewise.
* lib/filenamecat.h: Likewise.
* lib/filevercmp.h: Likewise.
* lib/flexmember.h: Likewise.
* lib/fnmatch.in.h: Likewise.
* lib/fpending.h: Likewise.
* lib/freadable.h: Likewise.
* lib/freadahead.h: Likewise.
* lib/freading.h: Likewise.
* lib/fts_.h: Likewise.
* lib/fwritable.h: Likewise.
* lib/fwriting.h: Likewise.
* lib/gc.h: Likewise.
* lib/get_progname_of.h: Likewise.
* lib/glob.in.h: Likewise.
* lib/glthread/thread.h: Likewise.
* lib/hash-pjw-bare.h: Likewise.
* lib/hash-pjw.h: Likewise.
* lib/hash-triple.h: Likewise.
* lib/hash.h: Likewise.
* lib/i-ring.h: Likewise.
* lib/iconv.in.h: Likewise.
* lib/ino-map.h: Likewise.
* lib/inttostr.h: Likewise.
* lib/inttypes.in.h: Likewise.
* lib/javaversion.h: Likewise.
* lib/langinfo.in.h: Likewise.
* lib/locale.in.h: Likewise.
* lib/localename.h: Likewise.
* lib/malloc.in.h: Likewise.
* lib/malloca.h: Likewise.
* lib/memcasecmp.h: Likewise.
* lib/memchr2.h: Likewise.
* lib/memcmp2.h: Likewise.
* lib/modechange.h: Likewise.
* lib/monetary.in.h: Likewise.
* lib/mountlist.h: Likewise.
* lib/netdb.in.h: Likewise.
* lib/obstack.h: Likewise.
* lib/opendirat.h: Likewise.
* lib/pagealign_alloc.h: Likewise.
* lib/pipe-filter.h: Likewise.
* lib/poll.in.h: Likewise.
* lib/pthread.in.h: Likewise.
* lib/pty.in.h: Likewise.
* lib/quotearg.h: Likewise.
* lib/read-file.h: Likewise.
* lib/readline.h: Likewise.
* lib/readutmp.h: Likewise.
* lib/regex-quote.h: Likewise.
* lib/relocatable.h: Likewise.
* lib/savedir.h: Likewise.
* lib/sched.in.h: Likewise.
* lib/search.in.h: Likewise.
* lib/sh-quote.h: Likewise.
* lib/signal.in.h: Likewise.
* lib/sigpipe-die.h: Likewise.
* lib/sockets.h: Likewise.
* lib/spawn.in.h: Likewise.
* lib/ssfmalloc.h: Likewise.
* lib/stack.h: Likewise.
* lib/stdalign.in.h: Likewise.
* lib/stdarg.in.h: Likewise.
* lib/stddef.in.h: Likewise.
* lib/stdio-safer.h: Likewise.
* lib/stdio.in.h: Likewise.
* lib/stdlib.in.h: Likewise.
* lib/stdnoreturn.in.h: Likewise.
* lib/strerror-override.h: Likewise.
* lib/striconv.h: Likewise.
* lib/striconveh.h: Likewise.
* lib/striconveha.h: Likewise.
* lib/string-buffer.h: Likewise.
* lib/string.in.h: Likewise.
* lib/strings.in.h: Likewise.
* lib/strnlen1.h: Likewise.
* lib/sys_file.in.h: Likewise.
* lib/sys_ioctl.in.h: Likewise.
* lib/sys_random.in.h: Likewise.
* lib/sys_resource.in.h: Likewise.
* lib/sys_select.in.h: Likewise.
* lib/sys_stat.in.h: Likewise.
* lib/sys_time.in.h: Likewise.
* lib/sys_times.in.h: Likewise.
* lib/sys_utsname.in.h: Likewise.
* lib/sys_wait.in.h: Likewise.
* lib/system-quote.h: Likewise.
* lib/term-style-control.h: Likewise.
* lib/termios.in.h: Likewise.
* lib/textstyle.in.h: Likewise.
* lib/threads.in.h: Likewise.
* lib/time.in.h: Likewise.
* lib/trim.h: Likewise.
* lib/utime.in.h: Likewise.
* lib/utmp.in.h: Likewise.
* lib/vasnprintf.h: Likewise.
* lib/verror.h: Likewise.
* lib/version-etc.h: Likewise.
* lib/wchar.in.h: Likewise.
* lib/windows-spawn.h: Likewise.
* lib/windows-thread.h: Likewise.
* lib/xgetcwd.h: Likewise.
* lib/xgetdomainname.h: Likewise.
* lib/xgethostname.h: Likewise.
* lib/xmalloca.h: Likewise.
* lib/xmemdup0.h: Likewise.
* lib/xprintf.h: Likewise.
* lib/xreadlink.h: Likewise.
* lib/xstriconv.h: Likewise.
* lib/xstriconveh.h: Likewise.
* lib/xstrndup.h: Likewise.
* lib/xstrtol-error.h: Likewise.
* lib/xvasprintf.h: Likewise.
* Makefile (config_h_MACROS*): New variables.
(sc_check_config_h_reminder): New rule.

207 files changed:
ChangeLog
Makefile
lib/acl-internal.h
lib/acl.h
lib/alignalloc.h
lib/alignof.h
lib/argmatch.h
lib/argp-fmtstream.h
lib/argp.h
lib/argv-iter.h
lib/arpa_inet.in.h
lib/attribute.h
lib/backupfile.h
lib/base32.h
lib/base64.h
lib/basename-lgpl.h
lib/binary-io.h
lib/bitrotate.h
lib/bitset.h
lib/bitsetv.h
lib/c-ctype.h
lib/c-snprintf.h
lib/c-stack.h
lib/c-strcase.h
lib/c-vasnprintf.h
lib/c-vasprintf.h
lib/c-vsnprintf.h
lib/c-xvasprintf.h
lib/canon-host.h
lib/canonicalize.h
lib/clean-temp.h
lib/concat-filename.h
lib/count-leading-zeros.h
lib/count-one-bits.h
lib/count-trailing-zeros.h
lib/ctype.in.h
lib/dfa.h
lib/di-set.h
lib/dirent-safer.h
lib/dirent.in.h
lib/dirname.h
lib/eealloc.h
lib/eloop-threshold.h
lib/error.in.h
lib/exclude.h
lib/execinfo.in.h
lib/fatal-signal.h
lib/fcntl.in.h
lib/file-type.h
lib/filenamecat.h
lib/filevercmp.h
lib/flexmember.h
lib/fnmatch.in.h
lib/fpending.h
lib/freadable.h
lib/freadahead.h
lib/freading.h
lib/fts_.h
lib/fwritable.h
lib/fwriting.h
lib/gc.h
lib/get_progname_of.h
lib/gethrxtime.h
lib/gl_list.h
lib/gl_map.h
lib/gl_omap.h
lib/gl_openssl.h
lib/gl_oset.h
lib/gl_set.h
lib/gl_xlist.h
lib/gl_xmap.h
lib/gl_xomap.h
lib/gl_xoset.h
lib/gl_xset.h
lib/gl_xsublist.h
lib/glob.in.h
lib/glthread/cond.h
lib/glthread/thread.h
lib/hamt.h
lib/hash-pjw-bare.h
lib/hash-pjw.h
lib/hash-triple.h
lib/hash.h
lib/i-ring.h
lib/ialloc.h
lib/iconv.in.h
lib/ino-map.h
lib/inttostr.h
lib/inttypes.in.h
lib/javaversion.h
lib/langinfo.in.h
lib/locale.in.h
lib/localename.h
lib/malloc.in.h
lib/malloca.h
lib/math.in.h
lib/mbchar.h
lib/mbfile.h
lib/mbiter.h
lib/mbuiter.h
lib/memcasecmp.h
lib/memchr2.h
lib/memcmp2.h
lib/modechange.h
lib/monetary.in.h
lib/mountlist.h
lib/netdb.in.h
lib/obstack.h
lib/openat.h
lib/opendirat.h
lib/pagealign_alloc.h
lib/pipe-filter-aux.h
lib/pipe-filter.h
lib/poll.in.h
lib/priv-set.h
lib/pthread.in.h
lib/pty.in.h
lib/quotearg.h
lib/read-file.h
lib/readline.h
lib/readutmp.h
lib/regex-quote.h
lib/relocatable.h
lib/safe-alloc.h
lib/savedir.h
lib/savewd.h
lib/sched.in.h
lib/se-context.in.h
lib/se-label.in.h
lib/se-selinux.in.h
lib/search.in.h
lib/sh-quote.h
lib/sig-handler.h
lib/signal.in.h
lib/sigpipe-die.h
lib/sockets.h
lib/spawn.in.h
lib/ssfmalloc.h
lib/stack.h
lib/stat-time.h
lib/stdalign.in.h
lib/stdarg.in.h
lib/stddef.in.h
lib/stdio-safer.h
lib/stdio.in.h
lib/stdlib.in.h
lib/stdnoreturn.in.h
lib/strerror-override.h
lib/striconv.h
lib/striconveh.h
lib/striconveha.h
lib/string-buffer.h
lib/string-desc-quotearg.h
lib/string-desc.h
lib/string.in.h
lib/strings.in.h
lib/strnlen1.h
lib/sys_file.in.h
lib/sys_ioctl.in.h
lib/sys_random.in.h
lib/sys_resource.in.h
lib/sys_select.in.h
lib/sys_socket.in.h
lib/sys_stat.in.h
lib/sys_time.in.h
lib/sys_times.in.h
lib/sys_utsname.in.h
lib/sys_wait.in.h
lib/system-quote.h
lib/term-style-control.h
lib/termios.in.h
lib/textstyle.in.h
lib/threads.in.h
lib/time.in.h
lib/timespec.h
lib/trim.h
lib/u64.h
lib/uchar.in.h
lib/unistd.in.h
lib/utime.in.h
lib/utimens.h
lib/utmp.in.h
lib/vasnprintf.h
lib/verror.h
lib/version-etc.h
lib/wchar.in.h
lib/wctype.in.h
lib/windows-spawn.h
lib/windows-thread.h
lib/xalloc.h
lib/xbinary-io.h
lib/xgetcwd.h
lib/xgetdomainname.h
lib/xgethostname.h
lib/xmalloca.h
lib/xmemdup0.h
lib/xprintf.h
lib/xreadlink.h
lib/xsize.h
lib/xstriconv.h
lib/xstriconveh.h
lib/xstring-desc.h
lib/xstrndup.h
lib/xstrtol-error.h
lib/xtime.h
lib/xvasprintf.h
m4/gnulib-common.m4

index c80d5587e8b065a3190cb6f9bc8ef97091c91d61..21ab60e8a9a257293ac431343b88ecffa4cefbe9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,216 @@
+2023-04-12  Bruno Haible  <bruno@clisp.org>
+
+       Add more reminders to include <config.h>.
+       * m4/gnulib-common.m4 (gl_COMMON): In config.h, define
+       _GL_CONFIG_H_INCLUDED.
+       * lib/acl-internal.h: Test _GL_CONFIG_H_INCLUDED instead of
+       _GL_INLINE_HEADER_BEGIN.
+       * lib/alignalloc.h: Likewise.
+       * lib/argp-fmtstream.h: Likewise.
+       * lib/argp.h: Likewise.
+       * lib/binary-io.h: Likewise.
+       * lib/bitrotate.h: Likewise.
+       * lib/c-ctype.h: Likewise.
+       * lib/count-leading-zeros.h: Likewise.
+       * lib/count-one-bits.h: Likewise.
+       * lib/count-trailing-zeros.h: Likewise.
+       * lib/eealloc.h: Likewise.
+       * lib/execinfo.in.h: Likewise.
+       * lib/gethrxtime.h: Likewise.
+       * lib/gl_list.h: Likewise.
+       * lib/gl_map.h: Likewise.
+       * lib/gl_omap.h: Likewise.
+       * lib/gl_openssl.h: Likewise.
+       * lib/gl_oset.h: Likewise.
+       * lib/gl_set.h: Likewise.
+       * lib/gl_xlist.h: Likewise.
+       * lib/gl_xmap.h: Likewise.
+       * lib/gl_xomap.h: Likewise.
+       * lib/gl_xoset.h: Likewise.
+       * lib/gl_xset.h: Likewise.
+       * lib/gl_xsublist.h: Likewise.
+       * lib/glthread/cond.h: Likewise.
+       * lib/hamt.h: Likewise.
+       * lib/ialloc.h: Likewise.
+       * lib/math.in.h: Likewise.
+       * lib/mbchar.h: Likewise.
+       * lib/mbfile.h: Likewise.
+       * lib/mbiter.h: Likewise.
+       * lib/mbuiter.h: Likewise.
+       * lib/openat.h: Likewise.
+       * lib/pipe-filter-aux.h: Likewise.
+       * lib/priv-set.h: Likewise.
+       * lib/safe-alloc.h: Likewise.
+       * lib/savewd.h: Likewise.
+       * lib/se-context.in.h: Likewise.
+       * lib/se-label.in.h: Likewise.
+       * lib/se-selinux.in.h: Likewise.
+       * lib/sig-handler.h: Likewise.
+       * lib/stat-time.h: Likewise.
+       * lib/string-desc-quotearg.h: Likewise.
+       * lib/string-desc.h: Likewise.
+       * lib/sys_socket.in.h: Likewise.
+       * lib/timespec.h: Likewise.
+       * lib/u64.h: Likewise.
+       * lib/uchar.in.h: Likewise.
+       * lib/unistd.in.h: Likewise.
+       * lib/utimens.h: Likewise.
+       * lib/wctype.in.h: Likewise.
+       * lib/xalloc.h: Likewise.
+       * lib/xbinary-io.h: Likewise.
+       * lib/xsize.h: Likewise.
+       * lib/xstring-desc.h: Likewise.
+       * lib/xtime.h: Likewise.
+       * lib/acl.h: Check that config.h was already included.
+       * lib/alignof.h: Likewise.
+       * lib/argmatch.h: Likewise.
+       * lib/argv-iter.h: Likewise.
+       * lib/arpa_inet.in.h: Likewise.
+       * lib/attribute.h: Likewise.
+       * lib/backupfile.h: Likewise.
+       * lib/base32.h: Likewise.
+       * lib/base64.h: Likewise.
+       * lib/basename-lgpl.h: Likewise.
+       * lib/bitset.h: Likewise.
+       * lib/bitsetv.h: Likewise.
+       * lib/c-snprintf.h: Likewise.
+       * lib/c-stack.h: Likewise.
+       * lib/c-strcase.h: Likewise.
+       * lib/c-vasnprintf.h: Likewise.
+       * lib/c-vasprintf.h: Likewise.
+       * lib/c-vsnprintf.h: Likewise.
+       * lib/c-xvasprintf.h: Likewise.
+       * lib/canon-host.h: Likewise.
+       * lib/canonicalize.h: Likewise.
+       * lib/clean-temp.h: Likewise.
+       * lib/concat-filename.h: Likewise.
+       * lib/ctype.in.h: Likewise.
+       * lib/dfa.h: Likewise.
+       * lib/di-set.h: Likewise.
+       * lib/dirent-safer.h: Likewise.
+       * lib/dirent.in.h: Likewise.
+       * lib/dirname.h: Likewise.
+       * lib/eloop-threshold.h: Likewise.
+       * lib/error.in.h: Likewise.
+       * lib/exclude.h: Likewise.
+       * lib/fatal-signal.h: Likewise.
+       * lib/fcntl.in.h: Likewise.
+       * lib/file-type.h: Likewise.
+       * lib/filenamecat.h: Likewise.
+       * lib/filevercmp.h: Likewise.
+       * lib/flexmember.h: Likewise.
+       * lib/fnmatch.in.h: Likewise.
+       * lib/fpending.h: Likewise.
+       * lib/freadable.h: Likewise.
+       * lib/freadahead.h: Likewise.
+       * lib/freading.h: Likewise.
+       * lib/fts_.h: Likewise.
+       * lib/fwritable.h: Likewise.
+       * lib/fwriting.h: Likewise.
+       * lib/gc.h: Likewise.
+       * lib/get_progname_of.h: Likewise.
+       * lib/glob.in.h: Likewise.
+       * lib/glthread/thread.h: Likewise.
+       * lib/hash-pjw-bare.h: Likewise.
+       * lib/hash-pjw.h: Likewise.
+       * lib/hash-triple.h: Likewise.
+       * lib/hash.h: Likewise.
+       * lib/i-ring.h: Likewise.
+       * lib/iconv.in.h: Likewise.
+       * lib/ino-map.h: Likewise.
+       * lib/inttostr.h: Likewise.
+       * lib/inttypes.in.h: Likewise.
+       * lib/javaversion.h: Likewise.
+       * lib/langinfo.in.h: Likewise.
+       * lib/locale.in.h: Likewise.
+       * lib/localename.h: Likewise.
+       * lib/malloc.in.h: Likewise.
+       * lib/malloca.h: Likewise.
+       * lib/memcasecmp.h: Likewise.
+       * lib/memchr2.h: Likewise.
+       * lib/memcmp2.h: Likewise.
+       * lib/modechange.h: Likewise.
+       * lib/monetary.in.h: Likewise.
+       * lib/mountlist.h: Likewise.
+       * lib/netdb.in.h: Likewise.
+       * lib/obstack.h: Likewise.
+       * lib/opendirat.h: Likewise.
+       * lib/pagealign_alloc.h: Likewise.
+       * lib/pipe-filter.h: Likewise.
+       * lib/poll.in.h: Likewise.
+       * lib/pthread.in.h: Likewise.
+       * lib/pty.in.h: Likewise.
+       * lib/quotearg.h: Likewise.
+       * lib/read-file.h: Likewise.
+       * lib/readline.h: Likewise.
+       * lib/readutmp.h: Likewise.
+       * lib/regex-quote.h: Likewise.
+       * lib/relocatable.h: Likewise.
+       * lib/savedir.h: Likewise.
+       * lib/sched.in.h: Likewise.
+       * lib/search.in.h: Likewise.
+       * lib/sh-quote.h: Likewise.
+       * lib/signal.in.h: Likewise.
+       * lib/sigpipe-die.h: Likewise.
+       * lib/sockets.h: Likewise.
+       * lib/spawn.in.h: Likewise.
+       * lib/ssfmalloc.h: Likewise.
+       * lib/stack.h: Likewise.
+       * lib/stdalign.in.h: Likewise.
+       * lib/stdarg.in.h: Likewise.
+       * lib/stddef.in.h: Likewise.
+       * lib/stdio-safer.h: Likewise.
+       * lib/stdio.in.h: Likewise.
+       * lib/stdlib.in.h: Likewise.
+       * lib/stdnoreturn.in.h: Likewise.
+       * lib/strerror-override.h: Likewise.
+       * lib/striconv.h: Likewise.
+       * lib/striconveh.h: Likewise.
+       * lib/striconveha.h: Likewise.
+       * lib/string-buffer.h: Likewise.
+       * lib/string.in.h: Likewise.
+       * lib/strings.in.h: Likewise.
+       * lib/strnlen1.h: Likewise.
+       * lib/sys_file.in.h: Likewise.
+       * lib/sys_ioctl.in.h: Likewise.
+       * lib/sys_random.in.h: Likewise.
+       * lib/sys_resource.in.h: Likewise.
+       * lib/sys_select.in.h: Likewise.
+       * lib/sys_stat.in.h: Likewise.
+       * lib/sys_time.in.h: Likewise.
+       * lib/sys_times.in.h: Likewise.
+       * lib/sys_utsname.in.h: Likewise.
+       * lib/sys_wait.in.h: Likewise.
+       * lib/system-quote.h: Likewise.
+       * lib/term-style-control.h: Likewise.
+       * lib/termios.in.h: Likewise.
+       * lib/textstyle.in.h: Likewise.
+       * lib/threads.in.h: Likewise.
+       * lib/time.in.h: Likewise.
+       * lib/trim.h: Likewise.
+       * lib/utime.in.h: Likewise.
+       * lib/utmp.in.h: Likewise.
+       * lib/vasnprintf.h: Likewise.
+       * lib/verror.h: Likewise.
+       * lib/version-etc.h: Likewise.
+       * lib/wchar.in.h: Likewise.
+       * lib/windows-spawn.h: Likewise.
+       * lib/windows-thread.h: Likewise.
+       * lib/xgetcwd.h: Likewise.
+       * lib/xgetdomainname.h: Likewise.
+       * lib/xgethostname.h: Likewise.
+       * lib/xmalloca.h: Likewise.
+       * lib/xmemdup0.h: Likewise.
+       * lib/xprintf.h: Likewise.
+       * lib/xreadlink.h: Likewise.
+       * lib/xstriconv.h: Likewise.
+       * lib/xstriconveh.h: Likewise.
+       * lib/xstrndup.h: Likewise.
+       * lib/xstrtol-error.h: Likewise.
+       * lib/xvasprintf.h: Likewise.
+       * Makefile (config_h_MACROS*): New variables.
+       (sc_check_config_h_reminder): New rule.
+
 2023-04-11  Paul Eggert  <eggert@cs.ucla.edu>
 
        doc: update year2038 list further
index 10448694500d9dc6f4a77dac649924f077d83ebf..76e3b5cc54d1ae0cea116ee663c62e7b47ef654c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -138,6 +138,95 @@ sc_check_sym_list:
          <(sed -n /^_intprops_name/,/^_intprops_syms_re/p top/maint.mk \
            |sed '/^_/d;s/^  //;s/      *\\$$//')
 
+
+# List of C macros defined through AH_VERBATIM in m4/extern-inline.m4:
+config_h_MACROS1 = \
+  _GL_INLINE \
+  _GL_EXTERN_INLINE \
+  _GL_INLINE_HEADER_BEGIN \
+  _GL_INLINE_HEADER_END
+# List of C macros defined through AH_VERBATIM in m4/gnulib-common.m4:
+config_h_MACROS2 = \
+  _GL_GNUC_PREREQ \
+  _Noreturn \
+  _GL_ATTRIBUTE_ALLOC_SIZE \
+  _GL_ATTRIBUTE_ALWAYS_INLINE \
+  _GL_ATTRIBUTE_ARTIFICIAL \
+  _GL_ATTRIBUTE_COLD \
+  _GL_ATTRIBUTE_CONST \
+  _GL_ATTRIBUTE_DEALLOC \
+  _GL_ATTRIBUTE_DEPRECATED \
+  _GL_ATTRIBUTE_ERROR \
+  _GL_ATTRIBUTE_WARNING \
+  _GL_ATTRIBUTE_EXTERNALLY_VISIBLE \
+  _GL_ATTRIBUTE_FALLTHROUGH \
+  _GL_ATTRIBUTE_FORMAT \
+  _GL_ATTRIBUTE_LEAF \
+  _GL_ATTRIBUTE_MALLOC \
+  _GL_ATTRIBUTE_MAY_ALIAS \
+  _GL_ATTRIBUTE_MAYBE_UNUSED \
+  _GL_UNUSED \
+  _GL_ATTRIBUTE_NODISCARD \
+  _GL_ATTRIBUTE_NOINLINE \
+  _GL_ATTRIBUTE_NONNULL \
+  _GL_ATTRIBUTE_NONSTRING \
+  _GL_ATTRIBUTE_NOTHROW \
+  _GL_ATTRIBUTE_PACKED \
+  _GL_ATTRIBUTE_PURE \
+  _GL_ATTRIBUTE_RETURNS_NONNULL \
+  _GL_ATTRIBUTE_SENTINEL \
+  _GL_ATTRIBUTE_UNUSED \
+  _GL_UNUSED_LABEL \
+  _GL_BEGIN_C_LINKAGE \
+  _GL_END_C_LINKAGE \
+  _GL_ASYNC_SAFE \
+  _GL_CMP
+# List of C macros defined through AH_VERBATIM in m4/nullptr.m4:
+config_h_MACROS3 = \
+  nullptr
+# List of C macros defined through AH_VERBATIM in m4/posixcheck.m4:
+config_h_MACROS4 = \
+  GNULIB_POSIXCHECK
+# List of C macros defined through AH_VERBATIM in m4/sh-filename.m4:
+config_h_MACROS5 = \
+  BOURNE_SHELL
+# List of C macros defined through AH_VERBATIM in m4/stdalign.m4:
+config_h_MACROS6 = \
+  alignof \
+  alignas
+# List of C macros defined through AH_VERBATIM in m4/stdarg.m4:
+config_h_MACROS7 = \
+  va_copy
+# List of C macros defined through AH_VERBATIM in m4/threads_h.m4:
+config_h_MACROS8 = \
+  _Thread_local
+# List of C macros defined through AH_VERBATIM (only the most important ones):
+config_h_MACROS = \
+  $(config_h_MACROS1) $(config_h_MACROS2) $(config_h_MACROS3) \
+  $(config_h_MACROS4) $(config_h_MACROS5) $(config_h_MACROS6) \
+  $(config_h_MACROS7) $(config_h_MACROS8)
+
+# Ensure that .h files that use macros from config.h contain a reminder to
+# 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 \
+         : "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 \
+           grep '# *error "Please include config[.]h first[.]"' $$file >/dev/null \
+             || { echo -n "File $$file lacks a config.h reminder. Needed for:"; \
+                  for macro in $(config_h_MACROS); do \
+                    if grep -F -w $$macro $$file >/dev/null; then echo -n " $$macro"; fi; \
+                  done; \
+                  echo; \
+                  fail=1; \
+                }; \
+         fi; \
+       done; \
+       exit $$fail
+
+
 # Ensure that the copyright statements in files and in the module descriptions
 # are consistent.
 sc_check_copyright:
index c97e847cdc51d697d996c9c6c8447de3db270335..496e41d7b21076341990d8f24534fda1d170622b 100644 (file)
 
    Written by Paul Eggert, Andreas Grünbacher, and Bruno Haible.  */
 
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE, _GL_ATTRIBUTE_PURE.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include "acl.h"
 
 #include <stdlib.h>
@@ -60,9 +65,6 @@ extern int aclsort (int, int, struct acl *);
 # define fchmod(fd, mode) (-1)
 #endif
 
-#ifndef _GL_INLINE_HEADER_BEGIN
- #error "Please include config.h first."
-#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef ACL_INTERNAL_INLINE
 # define ACL_INTERNAL_INLINE _GL_INLINE
index 58e5797179e2f62451f6e7999f0b39a55c87875d..0d0212005561d6d577f2f3f2acd57eaa251dea2a 100644 (file)
--- a/lib/acl.h
+++ b/lib/acl.h
 #ifndef _GL_ACL_H
 #define _GL_ACL_H 1
 
+/* This file uses _GL_ATTRIBUTE_CONST.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <sys/types.h>
 #include <sys/stat.h>
 
index eacf47880a4282b724fe58635ea8962df51e2a42..1574e26c92521fdaddc2e244b120ebb442a81ee5 100644 (file)
 #ifndef ALIGNALLOC_H_
 #define ALIGNALLOC_H_
 
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE, _GL_ATTRIBUTE_ALLOC_SIZE,
+   _GL_ATTRIBUTE_MALLOC, _GL_ATTRIBUTE_RETURNS_NONNULL.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <errno.h>
 #include <stdlib.h>
 #include "idx.h"
 
-#ifndef _GL_INLINE_HEADER_BEGIN
- #error "Please include config.h first."
-#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef ALIGNALLOC_INLINE
 # define ALIGNALLOC_INLINE _GL_INLINE
index 2ded1c788482f402bd39b249faa10077662cd8e3..a790972763e8dd3cdeff22cd096cb9d3212fe3ca 100644 (file)
 #ifndef _ALIGNOF_H
 #define _ALIGNOF_H
 
+/* This file uses alignof.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stddef.h>
 
 /* alignof_slot (TYPE)
index f18127fc96e83cb20b00e35466a5ec307dd2171a..9e8d217d6de41149e5df6cf54eb2f99e14aff6eb 100644 (file)
 #ifndef ARGMATCH_H_
 # define ARGMATCH_H_ 1
 
+/* This file uses _GL_ATTRIBUTE_PURE.  */
+# if !_GL_CONFIG_H_INCLUDED
+#  error "Please include config.h first."
+# endif
+
 # include <limits.h>
 # include <stddef.h>
 # include <stdio.h>
index 3a42e372f3df836507a50b93c4deb7bae3fa88ad..57385512553d99245a72d56737121d61e9a8bd40 100644 (file)
 #ifndef _ARGP_FMTSTREAM_H
 #define _ARGP_FMTSTREAM_H
 
+/* This file uses _GL_INLINE_HEADER_BEGIN, __GL_INLINE, _GL_ATTRIBUTE_DEALLOC,
+   _GL_ATTRIBUTE_FORMAT.  */
+#if !_LIBC && !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stdio.h>
 #include <string.h>
 #include <unistd.h>
@@ -187,9 +193,6 @@ extern int __argp_fmtstream_ensure (argp_fmtstream_t __fs, size_t __amount);
 #define __argp_fmtstream_point argp_fmtstream_point
 #define __argp_fmtstream_update _argp_fmtstream_update
 #define __argp_fmtstream_ensure _argp_fmtstream_ensure
-#ifndef _GL_INLINE_HEADER_BEGIN
- #error "Please include config.h first."
-#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef ARGP_FS_EI
 # define ARGP_FS_EI _GL_INLINE
index ae0edd390e66fd6b9fe3a5d98cac662099a0f96d..7de939a2a13bdd2cf9c104458387cfd4acb65e32 100644 (file)
 #ifndef _ARGP_H
 #define _ARGP_H
 
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE, _GL_ATTRIBUTE_FORMAT.  */
+#if !_LIBC && !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stdio.h>
 #include <ctype.h>
 #include <getopt.h>
@@ -590,9 +595,6 @@ extern void *__argp_input (const struct argp *__restrict __argp,
 #  define __argp_state_help argp_state_help
 #  define __option_is_short _option_is_short
 #  define __option_is_end _option_is_end
-#ifndef _GL_INLINE_HEADER_BEGIN
- #error "Please include config.h first."
-#endif
 _GL_INLINE_HEADER_BEGIN
 #  ifndef ARGP_EI
 #   define ARGP_EI _GL_INLINE
index d420ded8084b7e850694b1db9fc03e0eb38a20c7..d2d986c20abf6188a88c4954a56acd6052a4dd1f 100644 (file)
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
+/* This file uses _GL_ATTRIBUTE_DEALLOC, _GL_ATTRIBUTE_PURE.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stdio.h>
 
 /* Definition of _GL_ARG_NONNULL.  */
index 80e6713fdd97972169bf6af7e1f96491c30cd90a..6df3901c07bd66957647c432269696eda1ee58dd 100644 (file)
 #ifndef _@GUARD_PREFIX@_ARPA_INET_H
 #define _@GUARD_PREFIX@_ARPA_INET_H
 
+/* This file uses GNULIB_POSIXCHECK.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 /* Get all possible declarations of inet_ntop() and inet_pton().  */
 #if (@GNULIB_INET_NTOP@ || @GNULIB_INET_PTON@ || defined GNULIB_POSIXCHECK) \
     && @HAVE_WS2TCPIP_H@
index 130644d879840684d3c544994fd3a013b82a9042..9464fde0f307bac50fc70282d3dc25b2e764c9ea 100644 (file)
      These names begin with 'ATTRIBUTE_' to avoid name clashes.  */
 
 
+/* This file uses _GL_ATTRIBUTE_ALLOC_SIZE, _GL_ATTRIBUTE_ALWAYS_INLINE,
+   _GL_ATTRIBUTE_ARTIFICIAL, _GL_ATTRIBUTE_COLD, _GL_ATTRIBUTE_CONST,
+   _GL_ATTRIBUTE_DEALLOC, _GL_ATTRIBUTE_DEPRECATED, _GL_ATTRIBUTE_ERROR,
+   _GL_ATTRIBUTE_WARNING, _GL_ATTRIBUTE_EXTERNALLY_VISIBLE,
+   _GL_ATTRIBUTE_FALLTHROUGH, _GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_LEAF,
+   _GL_ATTRIBUTE_MALLOC, _GL_ATTRIBUTE_MAY_ALIAS, _GL_ATTRIBUTE_MAYBE_UNUSED,
+   _GL_ATTRIBUTE_NODISCARD, _GL_ATTRIBUTE_NOINLINE, _GL_ATTRIBUTE_NONNULL,
+   _GL_ATTRIBUTE_NONSTRING, _GL_ATTRIBUTE_NOTHROW, _GL_ATTRIBUTE_PACKED,
+   _GL_ATTRIBUTE_PURE, _GL_ATTRIBUTE_RETURNS_NONNULL,
+   _GL_ATTRIBUTE_SENTINEL.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
+
 /* =============== Attributes for specific kinds of functions =============== */
 
 /* Attributes for functions that should not be used.  */
index 81fc35cf004fab5336b89246e142b1126f833fec..73fa610225f6aad0fe338cd96d657c6b8ac7bc4a 100644 (file)
 #ifndef BACKUPFILE_H_
 #define BACKUPFILE_H_
 
+/* This file uses _GL_ATTRIBUTE_MALLOC, _GL_ATTRIBUTE_RETURNS_NONNULL.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 /* Get AT_FDCWD, as a convenience for users of this file.  */
 #include <fcntl.h>
 
index 8f8d862ab1c3d9979d74b3d7d89124adb00bbbf2..2e784d95c8cd30a80e9c728e1816aaf1c389d894 100644 (file)
 #ifndef BASE32_H
 # define BASE32_H
 
+/* This file uses _GL_ATTRIBUTE_CONST.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 /* Get idx_t. */
 # include <idx.h>
 
index 9913765200359cf70f08f0566c71098e6dca58cb..b5cb2ea5cb0a94824c1c2bc527566a5d8ffb64e7 100644 (file)
 #ifndef BASE64_H
 # define BASE64_H
 
+/* This file uses _GL_ATTRIBUTE_CONST.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 /* Get idx_t.  */
 # include <idx.h>
 
index 5d996c1da5a6a90f7c12dfc4132f8d517d8b33fc..c1982fa8ebe765701dca94cf9bc05753ca391704 100644 (file)
 #ifndef _BASENAME_LGPL_H
 #define _BASENAME_LGPL_H
 
+/* This file uses _GL_ATTRIBUTE_PURE.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stddef.h>
 
 #ifndef DOUBLE_SLASH_IS_DISTINCT_ROOT
index 6f4db25335465ba1efb4dd0f921eedbadd70d446..855d6f819f05078ee7268cfb366192fdc540680d 100644 (file)
 #ifndef _BINARY_H
 #define _BINARY_H
 
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE, _GL_UNUSED.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 /* For systems that distinguish between text and binary I/O.
    O_BINARY is guaranteed by the gnulib <fcntl.h>. */
 #include <fcntl.h>
@@ -25,9 +30,6 @@
    so we include it here first.  */
 #include <stdio.h>
 
-#ifndef _GL_INLINE_HEADER_BEGIN
- #error "Please include config.h first."
-#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef BINARY_IO_INLINE
 # define BINARY_IO_INLINE _GL_INLINE
index de1ee8257c8ea37766b96cec84f56457ecc6352e..6fb7b4957fdbf2fc99247422e58c2a71a5e8fd95 100644 (file)
 #ifndef _GL_BITROTATE_H
 #define _GL_BITROTATE_H
 
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <limits.h>
 #include <stdint.h>
 #include <sys/types.h>
 
-#ifndef _GL_INLINE_HEADER_BEGIN
- #error "Please include config.h first."
-#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef BITROTATE_INLINE
 # define BITROTATE_INLINE _GL_INLINE
index fe5da8fd6ae11af9c67981a8b8d3a437acb4373b..bb6596f7fe1bde960b83fc2bad50abdf1f9897db 100644 (file)
 /* This file is the public interface to the bitset abstract data type.
    Only use the functions and macros defined in this file.  */
 
+/* This file uses _GL_ATTRIBUTE_DEALLOC.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stdio.h>
 #if USE_UNLOCKED_IO
 # include "unlocked-io.h"
index 72f7e0bd0548a6d595b79b94db6f0a20683eeaa6..96cdd1d7fb6ad6d56b1313272c382986ac95074b 100644 (file)
 #ifndef _BITSETV_H
 #define _BITSETV_H
 
+/* This file uses _GL_ATTRIBUTE_DEALLOC.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include "bitset.h"
 
 typedef bitset * bitsetv;
index 35ca83d7d43239be6d021ef3d6c4f0d58b80258b..cb0f4f3ba1f76e7c814d8985f412d77463784f3d 100644 (file)
 #ifndef C_CTYPE_H
 #define C_CTYPE_H
 
-#ifndef _GL_INLINE_HEADER_BEGIN
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE.  */
+#if !_GL_CONFIG_H_INCLUDED
  #error "Please include config.h first."
 #endif
+
 _GL_INLINE_HEADER_BEGIN
 #ifndef C_CTYPE_INLINE
 # define C_CTYPE_INLINE _GL_INLINE
index 3515b14f66403766a8c1c01796f192538ae6147e..c973f35b8ab66a53bebef9e453127fcd63fc4f62 100644 (file)
 #ifndef _C_SNPRINTF_H
 #define _C_SNPRINTF_H
 
+/* This file uses _GL_ATTRIBUTE_FORMAT.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 /* Get size_t.  */
 #include <stddef.h>
 
index d9556a9db2816c9138b87182603b3223fd75786c..7958112b82aba9358caad6efe2725617134fec8b 100644 (file)
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
+/* This file uses _GL_ASYNC_SAFE.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #ifdef __cplusplus
 extern "C"
 {
@@ -52,6 +57,6 @@ extern "C"
 
 extern int c_stack_action (_GL_ASYNC_SAFE void (* /*action*/) (int));
 
-# ifdef __cplusplus
+#ifdef __cplusplus
 }
-# endif
+#endif
index 9bcca01b27ca3ad71202e30f75bdfc7bf2ea8bac..5dfa96c41f42a309ad842daface5d50ef384cf25 100644 (file)
 #ifndef C_STRCASE_H
 #define C_STRCASE_H
 
+/* This file uses _GL_ATTRIBUTE_PURE.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stddef.h>
 
 
index 21464ceb1da0aa28eaff320150d2fe27992a31ab..c2f0c0c96dad23ce3dd3578d4f012c6545a3b8f9 100644 (file)
 #ifndef _C_VASNPRINTF_H
 #define _C_VASNPRINTF_H
 
+/* This file uses _GL_ATTRIBUTE_FORMAT.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 /* Get va_list.  */
 #include <stdarg.h>
 
index 9c4a04261272d7db6dae536a3e8cac6cb5bef2be..f61e78299ebe9cae375972aad9139a85e909633e 100644 (file)
 #ifndef _C_VASPRINTF_H
 #define _C_VASPRINTF_H
 
+/* This file uses _GL_ATTRIBUTE_FORMAT.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 /* Get va_list.  */
 #include <stdarg.h>
 
index 978f37263599b5351f3951c8a858ce501cd606ed..3e94846d2218fe4f92e0ca7477b9a07675c5eda6 100644 (file)
 #ifndef _C_VSNPRINTF_H
 #define _C_VSNPRINTF_H
 
+/* This file uses _GL_ATTRIBUTE_FORMAT.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 /* Get size_t.  */
 #include <stddef.h>
 
index 985314b738d5c6c4c7d6be66d460e6d5bb4ec8d0..33f87cd17caec5f9b7622455a8cfed9e581fcf73 100644 (file)
 #ifndef _C_XVASPRINTF_H
 #define _C_XVASPRINTF_H
 
+/* This file uses _GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_MALLOC.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 /* Get va_list.  */
 #include <stdarg.h>
 
index c1f55c09827d2ea3a8888704e07bb07c914af130..91faabf7f736a6bed014520a5011f13b4e251716 100644 (file)
 #ifndef CANON_HOST_H
 # define CANON_HOST_H 1
 
+/* This file uses _GL_ATTRIBUTE_MALLOC.  */
+# if !_GL_CONFIG_H_INCLUDED
+#  error "Please include config.h first."
+# endif
+
 # include <stdlib.h>
 
 char *canon_host (char const *host)
index e0cfafd8faf0b12c9ee91cd9342f52bfc203d90f..ea09c666f9a649543b66fcd7069883d5e5bf044c 100644 (file)
 #ifndef CANONICALIZE_H_
 # define CANONICALIZE_H_
 
+/* This file uses _GL_ATTRIBUTE_MALLOC.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stdlib.h> /* for canonicalize_file_name */
 
 #define CAN_MODE_MASK (CAN_EXISTING | CAN_ALL_BUT_LAST | CAN_MISSING)
index 1e754561b387b950a620cd059ab5debacf95361d..a7cf6e74c076e3dc50804bd980f4c3713b6bfc43 100644 (file)
 #ifndef _CLEAN_TEMP_H
 #define _CLEAN_TEMP_H
 
+/* This file uses _GL_ATTRIBUTE_DEALLOC.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stdio.h>
 #include <sys/types.h>
 
index 091222638772c830155f03e8698ec966bcd74c24..490aa96fe5049753119f751c1bd113f3a1c37f4b 100644 (file)
 #ifndef _CONCAT_FILENAME_H
 #define _CONCAT_FILENAME_H
 
+/* This file uses _GL_ATTRIBUTE_MALLOC, _GL_ATTRIBUTE_RETURNS_NONNULL.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stdlib.h>
 
 #ifdef __cplusplus
index 99151d695bfec07eac6dd6890ca6ecc4265d07e5..9fe2a03ee0979336c4f5fd730f78e7791bae0836 100644 (file)
 #ifndef COUNT_LEADING_ZEROS_H
 #define COUNT_LEADING_ZEROS_H 1
 
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <limits.h>
 #include <stdlib.h>
 
-#ifndef _GL_INLINE_HEADER_BEGIN
- #error "Please include config.h first."
-#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef COUNT_LEADING_ZEROS_INLINE
 # define COUNT_LEADING_ZEROS_INLINE _GL_INLINE
index 01a60b77b859f845d3d62a4aad8062d03d0f9701..2821a1fb75efce5752092acfe71cc2bfa016b4ca 100644 (file)
 #ifndef COUNT_ONE_BITS_H
 #define COUNT_ONE_BITS_H 1
 
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <limits.h>
 #include <stdlib.h>
 
-#ifndef _GL_INLINE_HEADER_BEGIN
- #error "Please include config.h first."
-#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef COUNT_ONE_BITS_INLINE
 # define COUNT_ONE_BITS_INLINE _GL_INLINE
index ef8e164126a40f18cbc46fd0512f70d5cbae606d..9b33df76f6d380e576935d4c51374a9fb8df2eec 100644 (file)
 #ifndef COUNT_TRAILING_ZEROS_H
 #define COUNT_TRAILING_ZEROS_H 1
 
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <limits.h>
 #include <stdlib.h>
 
-#ifndef _GL_INLINE_HEADER_BEGIN
- #error "Please include config.h first."
-#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef COUNT_TRAILING_ZEROS_INLINE
 # define COUNT_TRAILING_ZEROS_INLINE _GL_INLINE
index 9ae63f911af3f9e58313d56ed69b539218d83e9c..8f7b68aa0ff0e88833025f1609e822cbb73a93c3 100644 (file)
 #ifndef _@GUARD_PREFIX@_CTYPE_H
 #define _@GUARD_PREFIX@_CTYPE_H
 
+/* This file uses GNULIB_POSIXCHECK.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 /* The definitions of _GL_FUNCDECL_RPL etc. are copied here.  */
 
 /* The definition of _GL_WARN_ON_USE is copied here.  */
index 6ac30ffac311bdd1f6ca95f883f34e7e8b5e6ab0..117332694e428fedbc501ef7509d20b649331025 100644 (file)
--- a/lib/dfa.h
+++ b/lib/dfa.h
 #ifndef DFA_H_
 #define DFA_H_
 
+/* This file uses _Noreturn, _GL_ATTRIBUTE_DEALLOC, _GL_ATTRIBUTE_MALLOC,
+   _GL_ATTRIBUTE_PURE, _GL_ATTRIBUTE_RETURNS_NONNULL.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include "idx.h"
 #include <regex.h>
 #include <stddef.h>
index 10dacd584e1c5e3454707823be241f2b7a3901cb..01e10c891fd4cd646801c198543e7fdbc8a186fc 100644 (file)
 #ifndef _GL_DI_SET_H
 # define _GL_DI_SET_H
 
+/* This file uses _GL_ATTRIBUTE_DEALLOC, _GL_ATTRIBUTE_MALLOC,
+   _GL_ATTRIBUTE_NONNULL.  */
+# if !_GL_CONFIG_H_INCLUDED
+#  error "Please include config.h first."
+# endif
+
 # include <sys/types.h>
 
 struct di_set;
index e7d00c577120995c8435979e962a484d5113e438..d9dad70ed08ca1abe571c94242ace1fab2be1682 100644 (file)
 
 /* Written by Eric Blake.  */
 
+/* This file uses _GL_ATTRIBUTE_DEALLOC.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <dirent.h>
 
 #ifdef __cplusplus
index 2aaabd054a8eb2b2d06b26c3d496ebe4f8a1b2ed..e4e65bdeb812bd0edf8681c02c7158929ea6f4c2 100644 (file)
 #ifndef _@GUARD_PREFIX@_DIRENT_H
 #define _@GUARD_PREFIX@_DIRENT_H
 
+/* This file uses _GL_ATTRIBUTE_DEALLOC, _GL_ATTRIBUTE_MALLOC,
+   _GL_ATTRIBUTE_PURE, GNULIB_POSIXCHECK.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 /* Get ino_t.  Needed on some systems, including glibc 2.8.  */
 #include <sys/types.h>
 
index f98e83bd4cd80a656f0abeab5031d8ab65769931..0344f1c44c9c774d03f4fb56464fc4f1742cb00e 100644 (file)
 #ifndef DIRNAME_H_
 # define DIRNAME_H_ 1
 
+/* This file uses _GL_ATTRIBUTE_MALLOC, _GL_ATTRIBUTE_PURE,
+   _GL_ATTRIBUTE_RETURNS_NONNULL.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 # include <stdlib.h>
 # include "filename.h"
 # include "basename-lgpl.h"
index 6a897072d7351806824d265adc979b5ee1d15e81..6666f172c6d59ac510934d5875272403f3e69ea5 100644 (file)
    and realloc() this way; on such platforms the workalikes are aliased
    to the original malloc()/realloc() functions.  */
 
-#include <stdlib.h>
-
-#ifndef _GL_INLINE_HEADER_BEGIN
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE, _GL_ATTRIBUTE_ALLOC_SIZE,
+   _GL_ATTRIBUTE_MALLOC.  */
+#if !_GL_CONFIG_H_INCLUDED
  #error "Please include config.h first."
 #endif
+
+#include <stdlib.h>
+
 _GL_INLINE_HEADER_BEGIN
 #ifndef EEALLOC_INLINE
 # define EEALLOC_INLINE _GL_INLINE
index 510f261795d43549c6faaa69d45cb6d8fca85cf7..d9b154e486883043132140b4de8215eb1cf18216 100644 (file)
 #ifndef _ELOOP_THRESHOLD_H
 #define _ELOOP_THRESHOLD_H      1
 
+/* This file uses _GL_ATTRIBUTE_CONST.  */
+#if !_LIBC && !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <limits.h>
 #ifdef _LIBC
 # include <sys/param.h>
index dcb49d16086d37aa46aa37a184da2dbd95fd1569..9a520f1ee3e3f9352c14343fa8325872ec8220dc 100644 (file)
 #ifndef _@GUARD_PREFIX@_ERROR_H
 #define _@GUARD_PREFIX@_ERROR_H
 
+/* This file uses _GL_ATTRIBUTE_FORMAT.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 /* Get _GL_ATTRIBUTE_SPEC_PRINTF_STANDARD, _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM.  */
 #include <stdio.h>
 
index a16b8171b63e80029e9d60adb7e845433c4598d6..c91e04316a054c1b1537b218ca6da3ef98a3e0df 100644 (file)
 #ifndef _GL_EXCLUDE_H
 #define _GL_EXCLUDE_H 1
 
+/* This file uses _GL_ATTRIBUTE_DEALLOC, _GL_ATTRIBUTE_MALLOC,
+   _GL_ATTRIBUTE_NONNULL, _GL_ATTRIBUTE_PURE, _GL_ATTRIBUTE_RETURNS_NONNULL.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stdio.h>
 
 /* Written by Paul Eggert <eggert@twinsun.com>
index ff9293b63271f2138426fb8a81c15dd4ddc6adcf..56b04d1d862b24214b5f4799e81e8a8840c4da7f 100644 (file)
 #ifndef _GL_EXECINFO_H
 #define _GL_EXECINFO_H
 
-#ifndef _GL_INLINE_HEADER_BEGIN
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE.  */
+#if !_GL_CONFIG_H_INCLUDED
  #error "Please include config.h first."
 #endif
+
 _GL_INLINE_HEADER_BEGIN
 #ifndef _GL_EXECINFO_INLINE
 # define _GL_EXECINFO_INLINE _GL_INLINE
index 7baae2e15b88aff3afc377ce29f741dceffde0f1..fed4f4bb66e53807281e9ac117664fdd2ef6d5ef 100644 (file)
 #ifndef _FATAL_SIGNAL_H
 #define _FATAL_SIGNAL_H
 
+/* This file uses _GL_ASYNC_SAFE.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <signal.h>
 
 #ifdef __cplusplus
index e034eaf9f5a71eb93ef91dd62cac11c7e4973a4b..595e34822361f23dd6c9aad316104bfc38760fb8 100644 (file)
 #ifndef _@GUARD_PREFIX@_FCNTL_H
 #define _@GUARD_PREFIX@_FCNTL_H
 
+/* This file uses GNULIB_POSIXCHECK.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #ifndef __GLIBC__ /* Avoid namespace pollution on glibc systems.  */
 # include <unistd.h>
 #endif
index 3301729e5af7a9a44cf030d2164f795a30015bd6..2c5a8e9afd63c7690227509492c1e8aeb46fd0b5 100644 (file)
 #ifndef FILE_TYPE_H
 # define FILE_TYPE_H 1
 
+/* This file uses _GL_ATTRIBUTE_PURE.  */
+# if !_GL_CONFIG_H_INCLUDED
+#  error "Please include config.h first."
+# endif
+
 # include <sys/types.h>
 # include <sys/stat.h>
 
index ab867f9c81bcff4f05a4ee9a6f58b6a539a9c282..29a4daafd40c19ba00c8c2ec5352c6ceba00abdb 100644 (file)
 
 /* Written by Jim Meyering.  */
 
+/* This file uses _GL_ATTRIBUTE_MALLOC, _GL_ATTRIBUTE_RETURNS_NONNULL.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stdlib.h>
 
 #if GNULIB_FILENAMECAT
index 6b81ab32a7f014d0650686d79ab9a57a6b83e02a..9e052bdd08cf7ffbd66bc87eae3e9c5cd997754d 100644 (file)
 #ifndef FILEVERCMP_H
 #define FILEVERCMP_H
 
+/* This file uses _GL_ATTRIBUTE_PURE.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stddef.h>
 
 /* Compare strings A and B as file names containing version numbers,
index a6cc876a6d500fe67950cd1c41b109c07fced412..8c5915ecf9cd89d927a288d6f4d1f2aea82f2d6a 100644 (file)
 
    Written by Paul Eggert.  */
 
+/* This file uses _Alignof.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stddef.h>
 
 /* Nonzero multiple of alignment of TYPE, suitable for FLEXSIZEOF below.
index e8d19e27513d04834db586e8c4e5d2a6cec27417..2502c61aa23789a671eaf22c68d29678273f4e86 100644 (file)
 #ifndef _@GUARD_PREFIX@_FNMATCH_H
 #define _@GUARD_PREFIX@_FNMATCH_H
 
+/* This file uses GNULIB_POSIXCHECK.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 /* The definitions of _GL_FUNCDECL_RPL etc. are copied here.  */
 
 /* The definition of _GL_ARG_NONNULL is copied here.  */
index 5e860db6810e9eea5de2962d714f89e62f3f21c0..0585dcb32964554ddd209c1f31c50408b6fbd0e4 100644 (file)
 
    Written by Jim Meyering.  */
 
+/* This file uses _GL_ATTRIBUTE_PURE.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stddef.h>
 #include <stdio.h>
 #if HAVE_STDIO_EXT_H
index 1a676b106f1adb7b0762204faef361df3ef100f4..c5d5d5cfb95b534ab757553b55a13df0a993aa96 100644 (file)
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
+/* This file uses _GL_ATTRIBUTE_PURE.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stdio.h>
 
 /* Return true if the stream STREAM supports reading, false if it supports
index 91c74d525cf0ad090137b9fa883e396c4853e9ba..d47026a05ab68236822a651e68952ba26bfbe3ec 100644 (file)
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
+/* This file uses _GL_ATTRIBUTE_PURE.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stddef.h>
 #include <stdio.h>
 
index 27b3abbc76a2d394298939fa7572c9ebe7053fb4..c18ea4a29239a26420caf407c15ea45da794472e 100644 (file)
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
+/* This file uses _GL_ATTRIBUTE_PURE.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stdio.h>
 
 /* Return true if the stream STREAM is opened read-only, or if the
index 6de50bf6920ff27db47f338ddfd81454211afd93..fa3d4146e25b771f811b6ac4c17be7fbefdb3d35 100644 (file)
 #ifndef _FTS_H
 # define _FTS_H 1
 
+/* This file uses _GL_ATTRIBUTE_DEALLOC, _GL_ATTRIBUTE_NODISCARD.  */
+# if !_LIBC && !_GL_CONFIG_H_INCLUDED
+#  error "Please include config.h first."
+# endif
+
 # ifdef _LIBC
 #  include <features.h>
 #  if __STDC_VERSION__ < 199901L
index f87b1121942e4cefc7004d9f0377b64189a4fcf5..d3c0b4661568debc3a2fd119b1121e2889a4bb3f 100644 (file)
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
+/* This file uses _GL_ATTRIBUTE_PURE.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stdio.h>
 
 /* Return true if the stream STREAM supports writing, false if it supports
index 91e060081f17c328d06c8cde9e71257f77a92289..28cb2c878a5e48c636f2155062a0bcdaa542ef8d 100644 (file)
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
+/* This file uses _GL_ATTRIBUTE_PURE.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stdio.h>
 
 /* Return true if the stream STREAM is opened write-only or
index 1b94e36693bc712e19b2ed1fd2ab8589e7e6e46f..69a251f550517579c04572facf330d35d8eba3f7 100644 (file)
--- a/lib/gc.h
+++ b/lib/gc.h
 #ifndef _GL_GC_H
 # define _GL_GC_H
 
+/* This file uses _GL_ATTRIBUTE_CONST.  */
+# if !_GL_CONFIG_H_INCLUDED
+#  error "Please include config.h first."
+# endif
+
 /* Get size_t. */
 # include <stddef.h>
 
index 58b21accdbab8e433025f1390a55e5d138a9e762..a6b75195f8fb5cfe899a1cc15c72763d3f5a9a7b 100644 (file)
 #ifndef _GET_PROGNAME_OF_H
 #define _GET_PROGNAME_OF_H
 
+/* This file uses _GL_ATTRIBUTE_MALLOC.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stdlib.h>
 #include <sys/types.h>
 
index 4a6847b72556fa7ea6367fea88b7d2f666ac461f..3a1340b69d1a3248f4cf40d22c5134708a5e22c9 100644 (file)
 #ifndef GETHRXTIME_H_
 #define GETHRXTIME_H_ 1
 
-#include "xtime.h"
-
-#ifndef _GL_INLINE_HEADER_BEGIN
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE.  */
+#if !_GL_CONFIG_H_INCLUDED
  #error "Please include config.h first."
 #endif
+
+#include "xtime.h"
+
 _GL_INLINE_HEADER_BEGIN
 #ifndef GETHRXTIME_INLINE
 # define GETHRXTIME_INLINE _GL_INLINE
index 9bb3d382064308823373382252de18ef2ef1f90a..b550db0672328c127e4e93d2706e2c475ccb4a71 100644 (file)
 #ifndef _GL_LIST_H
 #define _GL_LIST_H
 
-#include <stddef.h>
-
-#ifndef _GL_INLINE_HEADER_BEGIN
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE,
+   _GL_ATTRIBUTE_NODISCARD.  */
+#if !_GL_CONFIG_H_INCLUDED
  #error "Please include config.h first."
 #endif
+
+#include <stddef.h>
+
 _GL_INLINE_HEADER_BEGIN
 #ifndef GL_LIST_INLINE
 # define GL_LIST_INLINE _GL_INLINE
index f646ce8f5177fb73b7bfc55c2ad6455420c9aee4..12846f44d1bb6b6d3fdda1252f38fa3a964abe07 100644 (file)
 #ifndef _GL_MAP_H
 #define _GL_MAP_H
 
-#include <stddef.h>
-
-#ifndef _GL_INLINE_HEADER_BEGIN
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE,
+   _GL_ATTRIBUTE_NODISCARD.  */
+#if !_GL_CONFIG_H_INCLUDED
  #error "Please include config.h first."
 #endif
+
+#include <stddef.h>
+
 _GL_INLINE_HEADER_BEGIN
 #ifndef GL_MAP_INLINE
 # define GL_MAP_INLINE _GL_INLINE
index 180c5df44843fa1459b14b713bd2db8c3a5a8865..124c6d0852afb701a651bdfc6b2c7d305507d00a 100644 (file)
 #ifndef _GL_OMAP_H
 #define _GL_OMAP_H
 
-#include <stddef.h>
-
-#ifndef _GL_INLINE_HEADER_BEGIN
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE,
+   _GL_ATTRIBUTE_NODISCARD.  */
+#if !_GL_CONFIG_H_INCLUDED
  #error "Please include config.h first."
 #endif
+
+#include <stddef.h>
+
 _GL_INLINE_HEADER_BEGIN
 #ifndef GL_OMAP_INLINE
 # define GL_OMAP_INLINE _GL_INLINE
index f63c386ecb8bc4af4d5e85e6a28d83a126a189c8..159a837f1a79cbbf128cae9cd7d2dea76029eb4b 100644 (file)
 
 /* Written by Pádraig Brady */
 
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #ifndef GL_OPENSSL_NAME
 # error "Please define GL_OPENSSL_NAME to 1,5,256 etc."
 #endif
 
-#ifndef _GL_INLINE_HEADER_BEGIN
-# error "Please include config.h first."
-#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef GL_OPENSSL_INLINE
 # define GL_OPENSSL_INLINE _GL_INLINE
index 890056484aada4543353b6da63e8e3039a568ca3..d5f20297b86f553b112eb6cf15a62a2e738aece4 100644 (file)
 #ifndef _GL_OSET_H
 #define _GL_OSET_H
 
-#include <stddef.h>
-
-#ifndef _GL_INLINE_HEADER_BEGIN
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE,
+   _GL_ATTRIBUTE_NODISCARD.  */
+#if !_GL_CONFIG_H_INCLUDED
  #error "Please include config.h first."
 #endif
+
+#include <stddef.h>
+
 _GL_INLINE_HEADER_BEGIN
 #ifndef GL_OSET_INLINE
 # define GL_OSET_INLINE _GL_INLINE
index b600ad572e55e493e58a427d71ca751a0772d0b5..e88e2552bdc8c18a88a4c2dff630791525e4cc4d 100644 (file)
 #ifndef _GL_SET_H
 #define _GL_SET_H
 
-#include <stddef.h>
-
-#ifndef _GL_INLINE_HEADER_BEGIN
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE,
+   _GL_ATTRIBUTE_NODISCARD.  */
+#if !_GL_CONFIG_H_INCLUDED
  #error "Please include config.h first."
 #endif
+
+#include <stddef.h>
+
 _GL_INLINE_HEADER_BEGIN
 #ifndef GL_SET_INLINE
 # define GL_SET_INLINE _GL_INLINE
index f5fd929bbe00557bb377bfeaf6a770409e8dbd58..91ed804b9dd982c92933defeaba72be6109a2a82 100644 (file)
 #ifndef _GL_XLIST_H
 #define _GL_XLIST_H
 
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE,
+   _GL_ATTRIBUTE_RETURNS_NONNULL.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include "gl_list.h"
 #include "xalloc.h"
 
-#ifndef _GL_INLINE_HEADER_BEGIN
- #error "Please include config.h first."
-#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef GL_XLIST_INLINE
 # define GL_XLIST_INLINE _GL_INLINE
index cfb2b9c3b9b57d34c781a5d062c4b8a20a38a7a2..ad1edbfb76b55df509d06293483ddb2c5a06d7ec 100644 (file)
 #ifndef _GL_XMAP_H
 #define _GL_XMAP_H
 
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE,
+   _GL_ATTRIBUTE_RETURNS_NONNULL.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include "gl_map.h"
 #include "xalloc.h"
 
-#ifndef _GL_INLINE_HEADER_BEGIN
- #error "Please include config.h first."
-#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef GL_XMAP_INLINE
 # define GL_XMAP_INLINE _GL_INLINE
index 4b7da8d019854a24e5b39988e1adf357e2bb0109..e9115627d2870cc4e5b4fb4ea2249d32055f860a 100644 (file)
 #ifndef _GL_XOMAP_H
 #define _GL_XOMAP_H
 
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE,
+   _GL_ATTRIBUTE_RETURNS_NONNULL.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include "gl_omap.h"
 #include "xalloc.h"
 
-#ifndef _GL_INLINE_HEADER_BEGIN
- #error "Please include config.h first."
-#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef GL_XOMAP_INLINE
 # define GL_XOMAP_INLINE _GL_INLINE
index f58930985cb65ff49f65cd71c0dec458ca3442e1..5ebb209b2d45492f62a21f04fcdc11dcf1b24d4d 100644 (file)
 #ifndef _GL_XOSET_H
 #define _GL_XOSET_H
 
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE,
+   _GL_ATTRIBUTE_RETURNS_NONNULL.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include "gl_oset.h"
 #include "xalloc.h"
 
-#ifndef _GL_INLINE_HEADER_BEGIN
- #error "Please include config.h first."
-#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef GL_XOSET_INLINE
 # define GL_XOSET_INLINE _GL_INLINE
index 769bca82105fbd8003ac496962c2be4e691ae88a..921e1f38f4656aa72985aaaaecde9de4077168ba 100644 (file)
 #ifndef _GL_XSET_H
 #define _GL_XSET_H
 
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE,
+   _GL_ATTRIBUTE_RETURNS_NONNULL.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include "gl_set.h"
 #include "xalloc.h"
 
-#ifndef _GL_INLINE_HEADER_BEGIN
- #error "Please include config.h first."
-#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef GL_XSET_INLINE
 # define GL_XSET_INLINE _GL_INLINE
index 47db4ab277bf6af8130f79312d4da90acfe96e26..5d92e6c3e5bd821d4b165788267f15a4b9deeca3 100644 (file)
 #ifndef _GL_XSUBLIST_H
 #define _GL_XSUBLIST_H
 
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE,
+   _GL_ATTRIBUTE_RETURNS_NONNULL.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include "gl_sublist.h"
 #include "xalloc.h"
 
-#ifndef _GL_INLINE_HEADER_BEGIN
- #error "Please include config.h first."
-#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef GL_XSUBLIST_INLINE
 # define GL_XSUBLIST_INLINE _GL_INLINE
index 7fc3ef7347b3a1245f719ae96b42fe77a0c79a59..1f0481d52439b7109539841b086679fa533fa9a7 100644 (file)
 #ifndef _@GUARD_PREFIX@_GLOB_H
 #define _@GUARD_PREFIX@_GLOB_H
 
+/* This file uses GNULIB_POSIXCHECK.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 /* The definitions of _GL_FUNCDECL_RPL etc. are copied here.  */
 
 /* The definition of _GL_ARG_NONNULL is copied here.  */
index 5e6f681cace2b19394b7a4b7fe6e1f49a7f7f190..4c780d2defd492b7f331a4ad732f23fb49bb2026 100644 (file)
 #ifndef _GLTHREAD_COND_H
 #define _GLTHREAD_COND_H
 
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <errno.h>
 #include <stdlib.h>
 #include <time.h>
 # endif
 #endif
 
-#ifndef _GL_INLINE_HEADER_BEGIN
- #error "Please include config.h first."
-#endif
-
 _GL_INLINE_HEADER_BEGIN
 #ifndef _GLTHREAD_COND_INLINE
 # define _GLTHREAD_COND_INLINE _GL_INLINE
index 788dc5fe683012aea528097f975e2a68ce5f2b0d..091b601e996aeb74068f830b64a8f55b05baf7a4 100644 (file)
 #ifndef _GLTHREAD_THREAD_H
 #define _GLTHREAD_THREAD_H
 
+/* This file uses _Noreturn.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <errno.h>
 #include <stdlib.h>
 
index 36142418d3fc95ac822cb424374da15cead850c7..bd025d4cb48aa3cdaa5f09456ebd108704209fa6 100644 (file)
 #ifndef _GL_HAMT_H
 #define _GL_HAMT_H
 
-#ifndef _GL_INLINE_HEADER_BEGIN
-# error "Please include config.h first."
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE, _GL_ATTRIBUTE_DEALLOC,
+   _GL_ATTRIBUTE_NODISCARD.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
 #endif
+
 _GL_INLINE_HEADER_BEGIN
 #ifndef _GL_HAMT_INLINE
 # define _GL_HAMT_INLINE _GL_INLINE
index fb847946fb041a4e485900e789de99cba1f86424..7498ca20b4f4d6730b937185c03a5938728b7f6b 100644 (file)
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
+/* This file uses _GL_ATTRIBUTE_PURE.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stddef.h>
 
 /* Compute a hash code for a buffer starting at X and of size N,
index 5e046c54d4428390baa73265c4b0456acfd1bd04..69af02f2c4c68638031e1f6164d031f1449ef401 100644 (file)
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
+/* This file uses _GL_ATTRIBUTE_PURE.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stddef.h>
 
 /* Compute a hash code for a NUL-terminated string starting at X,
index 64d437285dfd2e74c578a176f59fc250c55ed219..f2cf38b1db5f292cd6dcdab5cdfe1326f5e8b50d 100644 (file)
 #ifndef HASH_TRIPLE_H
 #define HASH_TRIPLE_H
 
+/* This file uses _GL_ATTRIBUTE_PURE.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <sys/types.h>
 #include <sys/stat.h>
 
index fe88b4dda8608116a232903c5e00aee6d094c6a7..be42e5af6a8a98a67733820b715d531b41c6c995 100644 (file)
 #ifndef HASH_H_
 # define HASH_H_
 
+/* This file uses _GL_ATTRIBUTE_DEALLOC, _GL_ATTRIBUTE_DEPRECATED,
+   _GL_ATTRIBUTE_MALLOC, _GL_ATTRIBUTE_NODISCARD, _GL_ATTRIBUTE_PURE,
+   _GL_ATTRIBUTE_RETURNS_NONNULL.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 # include <stdio.h>
 
 # ifdef __cplusplus
index a2e0c7a5712ccd5f576b1030387ddd7c8e5f2831..e10b5d980beea14ca8ab7038403e628def907401 100644 (file)
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
 
+/* This file uses _GL_ATTRIBUTE_PURE.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 enum { I_RING_SIZE = 4 };
 static_assert (1 <= I_RING_SIZE);
 
index 275237ccb1ca770e5ca99c77303d6af6ea959a44..8d49887b6a40ccbfea112c6a1c226934ce5ab95f 100644 (file)
 #ifndef IALLOC_H_
 #define IALLOC_H_
 
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE, _GL_ATTRIBUTE_COLD,
+   _GL_ATTRIBUTE_MALLOC.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include "idx.h"
 
 #include <errno.h>
 #include <stdint.h>
 #include <stdlib.h>
 
-#ifndef _GL_INLINE_HEADER_BEGIN
- #error "Please include config.h first."
-#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef IALLOC_INLINE
 # define IALLOC_INLINE _GL_INLINE
index 09943a72cbbdaac6699a363e69e58412497ddd84..49390e98ca11153df4384647a1754c043694cbfc 100644 (file)
 #ifndef _@GUARD_PREFIX@_ICONV_H
 #define _@GUARD_PREFIX@_ICONV_H
 
+/* This file uses GNULIB_POSIXCHECK.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 /* The definitions of _GL_FUNCDECL_RPL etc. are copied here.  */
 
 /* The definition of _GL_ARG_NONNULL is copied here.  */
index 06a664b3ed5eb15304a28d03075e52daea3758b7..a71d7bcfbbf72802dd08c9a89d29aa88035fd08b 100644 (file)
 #ifndef _GL_INO_MAP_H
 # define _GL_INO_MAP_H
 
+/* This file uses _GL_ATTRIBUTE_DEALLOC, _GL_ATTRIBUTE_MALLOC,
+   _GL_ATTRIBUTE_NONNULL.  */
+# if !_GL_CONFIG_H_INCLUDED
+#  error "Please include config.h first."
+# endif
+
 # include <sys/types.h>
 
 # define INO_MAP_INSERT_FAILURE ((size_t) -1)
index 6fbe2312bfcfee28a1caa4254b904a4d04c765d3..7e653f2d1fff348b75467ecdff29999c792b314f 100644 (file)
 
 /* Written by Paul Eggert */
 
+/* This file uses _GL_ATTRIBUTE_NODISCARD.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stdint.h>
 #include <sys/types.h>
 
index 5b7ef12dc7ef3763c0421e9c32686e0d08d37e37..aa8258d33c7ff49f3c48541df8535489f94ce58d 100644 (file)
 #if ! defined INTTYPES_H && ! defined _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H
 #define INTTYPES_H
 
+/* This file uses GNULIB_POSIXCHECK.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 /* Include <stdint.h> or the gnulib replacement.
    But avoid namespace pollution on glibc systems.  */
 #ifndef __GLIBC__
index 1e89291e7d3c067023b61bfdf1c7c8c7e1b0cf82..99157466b93eaa06f9a3b824dec61e356df6792d 100644 (file)
 #ifndef _JAVAVERSION_H
 #define _JAVAVERSION_H
 
+/* This file uses _GL_ATTRIBUTE_MALLOC.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stdlib.h>
 
 
index 82e1e3cb1b21d172fb330500414138ff139a59a0..057cf156951788b5f09a62cc134a25d5f222e59f 100644 (file)
 #ifndef _@GUARD_PREFIX@_LANGINFO_H
 #define _@GUARD_PREFIX@_LANGINFO_H
 
+/* This file uses GNULIB_POSIXCHECK.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 
 #if !@HAVE_LANGINFO_H@
 
index e37702c4eb74904798112f7c4767283145187e80..917a43b02d3c18cd658f6178178eaff2812771bf 100644 (file)
 #ifndef _@GUARD_PREFIX@_LOCALE_H
 #define _@GUARD_PREFIX@_LOCALE_H
 
+/* This file uses GNULIB_POSIXCHECK.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 /* NetBSD 5.0 mis-defines NULL.  */
 #include <stddef.h>
 
index bfb429cb4ddb3ec1fcf4faaf472bb842c85607ae..f5663a6b37646174a51de1c7add15336ada3a8db 100644 (file)
 #ifndef _GL_LOCALENAME_H
 #define _GL_LOCALENAME_H
 
+/* This file uses _GL_ATTRIBUTE_CONST.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #ifdef __cplusplus
 extern "C" {
 #endif
index 2fcbe235356b3ba09dcd47f7760cdb9c5c2fdeb6..3da05c20570f114d078fb1219c4d30f7c9bdca66 100644 (file)
 #ifndef _@GUARD_PREFIX@_MALLOC_H
 #define _@GUARD_PREFIX@_MALLOC_H
 
+/* This file uses _GL_ATTRIBUTE_DEALLOC, GNULIB_POSIXCHECK.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 /* Solaris declares memalign() in <stdlib.h>, not in <malloc.h>.  */
 #if defined __sun || defined __hpux
 # include <stdlib.h>
index 325c72771724d30b3e0ae1549443bcdf8b784576..576a56de403e8fd6b3362214258adcf95899e7b9 100644 (file)
 #ifndef _MALLOCA_H
 #define _MALLOCA_H
 
+/* This file uses _GL_ATTRIBUTE_ALLOC_SIZE, _GL_ATTRIBUTE_DEALLOC,
+   _GL_ATTRIBUTE_MALLOC.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <alloca.h>
 #include <stddef.h>
 #include <stdlib.h>
index 76d48a44437dca9aa0d0b516f844d100666a4366..9d0e6918aa5509dac0080e265f07fe26da534d46 100644 (file)
 #ifndef _@GUARD_PREFIX@_MATH_H
 #define _@GUARD_PREFIX@_MATH_H
 
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE, _GL_ATTRIBUTE_CONST,
+   GNULIB_POSIXCHECK.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 /* On OpenVMS, NAN, INFINITY, and HUGEVAL macros are defined in <fp.h>.  */
 #if defined __VMS && ! defined NAN
 # include <fp.h>
 #endif
 
-#ifndef _GL_INLINE_HEADER_BEGIN
- #error "Please include config.h first."
-#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef _GL_MATH_INLINE
 # define _GL_MATH_INLINE _GL_INLINE
index 65050c023b4b14e2aafb1405059198ac98b77b86..a2ff1d8b21cbb51fa49657feb2a4abf03cd561bf 100644 (file)
 #ifndef _MBCHAR_H
 #define _MBCHAR_H 1
 
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <string.h>
 #include <wchar.h>
 #include <wctype.h>
 
-#ifndef _GL_INLINE_HEADER_BEGIN
- #error "Please include config.h first."
-#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef MBCHAR_INLINE
 # define MBCHAR_INLINE _GL_INLINE
index faf95f4be797c49066927aaf08409c2c5a337203..3482f394b923a10aa24f53c1573918893fff0cef 100644 (file)
 #ifndef _MBFILE_H
 #define _MBFILE_H 1
 
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <assert.h>
 #include <stdio.h>
 #include <string.h>
@@ -54,9 +59,6 @@
 
 #include "mbchar.h"
 
-#ifndef _GL_INLINE_HEADER_BEGIN
- #error "Please include config.h first."
-#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef MBFILE_INLINE
 # define MBFILE_INLINE _GL_INLINE
index ce901932f171dd53af7952dd617e06bed1a99f88..7b41870b5589440f83ecedcf6867bac3edcb3bd9 100644 (file)
 #ifndef _MBITER_H
 #define _MBITER_H 1
 
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <assert.h>
 #include <stddef.h>
 #include <string.h>
@@ -89,9 +94,6 @@
 
 #include "mbchar.h"
 
-#ifndef _GL_INLINE_HEADER_BEGIN
- #error "Please include config.h first."
-#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef MBITER_INLINE
 # define MBITER_INLINE _GL_INLINE
index fc1b9dbb329cdd2bcc0b05221d27481869ed0a6f..7a619f19e11f2090db80cad1dd5d0114736457e6 100644 (file)
 #ifndef _MBUITER_H
 #define _MBUITER_H 1
 
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <assert.h>
 #include <stddef.h>
 #include <stdlib.h>
 #include "mbchar.h"
 #include "strnlen1.h"
 
-#ifndef _GL_INLINE_HEADER_BEGIN
- #error "Please include config.h first."
-#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef MBUITER_INLINE
 # define MBUITER_INLINE _GL_INLINE
index d8732401df327ddc35986e98a73764e2c7d75e2e..e5101aff03926e53c84e0f3a2766079179f91883 100644 (file)
 
 /* Written by Jim Meyering.  */
 
+/* This file uses _GL_ATTRIBUTE_PURE.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stddef.h>
 
 int memcasecmp (const void *vs1, const void *vs2, size_t n) _GL_ATTRIBUTE_PURE;
index 51d8e7bbcfdc160e566be5be21a5d1d4965e6247..6554a676b40efe35b10147b3130db47ba1228ed5 100644 (file)
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
+/* This file uses _GL_ATTRIBUTE_PURE.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stddef.h>
 
 #ifdef __cplusplus
index abcf3e765018de75a7acf25b8fc48f1d37313fab..0878a73e735b50dfdc843ccfd2851ce2cff614f2 100644 (file)
 #ifndef MEMCMP2_H
 #define MEMCMP2_H
 
+/* This file uses _GL_ATTRIBUTE_PURE.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stddef.h>
 
 #ifdef __cplusplus
index cd613c855512a599597804ef4f5047f112398216..b4fc36a563b6e04b984e50d0c08ca51f0a6e85c2 100644 (file)
 #if ! defined MODECHANGE_H_
 # define MODECHANGE_H_
 
+/* This file uses _GL_ATTRIBUTE_MALLOC.  */
+# if !_GL_CONFIG_H_INCLUDED
+#  error "Please include config.h first."
+# endif
+
 # include <stdlib.h>
 # include <sys/types.h>
 
index 255958d2d8ea178e58e27277e3d6a8636bfd636a..45a92802b56d319f9b51890e5c7d1b8a5e6ee410 100644 (file)
 #ifndef _@GUARD_PREFIX@_MONETARY_H
 #define _@GUARD_PREFIX@_MONETARY_H
 
+/* This file uses _GL_ATTRIBUTE_FORMAT, GNULIB_POSIXCHECK.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #if @GNULIB_STRFMON_L@
 # if @HAVE_XLOCALE_H@
 /* Get locale_t on Mac OS X 10.12.  */
index aed7f8877f4fb93641a1dc03f3560c8a5c566d90..d33f13a03622238d164eabdfab81b5742a756940 100644 (file)
 #ifndef MOUNTLIST_H_
 # define MOUNTLIST_H_
 
+/* This file uses _GL_ATTRIBUTE_MALLOC.  */
+# if !_GL_CONFIG_H_INCLUDED
+#  error "Please include config.h first."
+# endif
+
 # include <sys/types.h>
 
 /* A mount table entry. */
index 9549cd73264a1dedf70499d1b92dfcedb054eb77..ea5ff40c60f209844dadbd0095055c7a67247466 100644 (file)
 #ifndef _@GUARD_PREFIX@_NETDB_H
 #define _@GUARD_PREFIX@_NETDB_H
 
+/* This file uses GNULIB_POSIXCHECK.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 /* Get <netdb.h> definitions such as 'socklen_t' on IRIX 6.5 and OSF/1 4.0 and
    'struct hostent' on MinGW.  */
 #include <sys/socket.h>
index 1e66e4d4c8ff116db4ec7723b66e3d70fbdf324a..cb080c33b571e701ac3226b9769a45f6590e02f6 100644 (file)
 #ifndef _OBSTACK_H
 #define _OBSTACK_H 1
 
+/* This file uses _Noreturn, _GL_ATTRIBUTE_PURE.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #ifndef _OBSTACK_INTERFACE_VERSION
 # define _OBSTACK_INTERFACE_VERSION 2
 #endif
index 37d8eedbee4d3cdf64aa67626f14220b78d5a73f..ba4a780dc0f560e33a55780123abce6bb2c08263 100644 (file)
 #ifndef _GL_HEADER_OPENAT
 #define _GL_HEADER_OPENAT
 
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE, _Noreturn,
+   _GL_ATTRIBUTE_DEPRECATED.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <fcntl.h>
 
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
 
-#ifndef _GL_INLINE_HEADER_BEGIN
- #error "Please include config.h first."
-#endif
 _GL_INLINE_HEADER_BEGIN
 
 #if !HAVE_OPENAT
index 9e445cd29aacbfcd8fab44eaafcfcf3e6cc4343c..5934e89bcdafa532d0befcc29370b63fcfa2b2d9 100644 (file)
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
+/* This file uses _GL_ATTRIBUTE_DEALLOC, _GL_ATTRIBUTE_MALLOC.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <dirent.h>
 
 DIR *opendirat (int, char const *, int, int *)
index 8f2083c446505aa4368dcccf602dcb824e7e46e4..e8ed6551c564a663244902d51623103c72d5e57c 100644 (file)
 #ifndef _PAGEALIGN_ALLOC_H
 # define _PAGEALIGN_ALLOC_H
 
+/* This file uses _GL_ATTRIBUTE_ALLOC_SIZE, _GL_ATTRIBUTE_DEALLOC,
+   _GL_ATTRIBUTE_MALLOC, _GL_ATTRIBUTE_NONNULL,
+   _GL_ATTRIBUTE_RETURNS_NONNULL.  */
+# if !_GL_CONFIG_H_INCLUDED
+#  error "Please include config.h first."
+# endif
+
 # include <stddef.h>
 
 /* Free a memory block.
index 6294d0df856bcdde9b25c4fb36a9dce6356ec3bc..4d60ddace90b099f2dd18cff176325ddaa665292 100644 (file)
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#ifndef _GL_INLINE_HEADER_BEGIN
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE.  */
+#if !_GL_CONFIG_H_INCLUDED
  #error "Please include config.h first."
 #endif
+
 _GL_INLINE_HEADER_BEGIN
 #ifndef PIPE_FILTER_AUX_INLINE
 # define PIPE_FILTER_AUX_INLINE _GL_INLINE
index d93ba9d84d37c653fbbb58964c72574574a1b39b..219f07c901a7d279eb96099bcbd2a8ae1507e50e 100644 (file)
 #ifndef _PIPE_FILTER_H
 #define _PIPE_FILTER_H
 
+/* This file uses _GL_ATTRIBUTE_DEALLOC.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stddef.h>
 
 #ifdef __cplusplus
index 9a15ef6732c029691d4ddd626d172b0386b54679..5ae097fa60ff2cd348310cab851aee89abb00d66 100644 (file)
 #ifndef _@GUARD_PREFIX@_POLL_H
 #define _@GUARD_PREFIX@_POLL_H
 
+/* This file uses GNULIB_POSIXCHECK.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 /* On native Windows, get the 'struct pollfd' type and the POLL* macro
    definitions before we override them.  mingw defines them in <winsock2.h>
    if _WIN32_WINNT >= 0x0600.  */
index 78af45038fffdd60655440da070d09866f189da3..e9ffc0c9aa884c54c4a92b52a0e9ab9daca60bb1 100644 (file)
 
    Written by David Bartley.  */
 
-#ifndef _GL_INLINE_HEADER_BEGIN
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE.  */
+#if !_GL_CONFIG_H_INCLUDED
  #error "Please include config.h first."
 #endif
+
 _GL_INLINE_HEADER_BEGIN
 #ifndef PRIV_SET_INLINE
 # define PRIV_SET_INLINE _GL_INLINE
index 4f206681a9907640e2781977f82eecec90a98e40..ff6ad34a32f5a63ee1b0e3046527eebd47b715f5 100644 (file)
 #ifndef _@GUARD_PREFIX@_PTHREAD_H_
 #define _@GUARD_PREFIX@_PTHREAD_H_
 
+/* This file uses _Noreturn, _GL_ATTRIBUTE_PURE, GNULIB_POSIXCHECK.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #define __need_system_stdlib_h
 #include <stdlib.h>
 #undef __need_system_stdlib_h
index 8f7b81071a16ac4abe0d8b74d6e037d65fab81f3..f746234428f16fef8323250248fa4478f5b86348 100644 (file)
 #ifndef _@GUARD_PREFIX@_PTY_H
 #define _@GUARD_PREFIX@_PTY_H
 
+/* This file uses GNULIB_POSIXCHECK.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 /* Some platforms declare this in a different header than glibc.  */
 #if @HAVE_UTIL_H@
 # include <util.h>
index eb156126cb41a478ffd7e3fccdcc6ce176f22e14..baab58668f1b4cd313a419b48f1fe36bf1bc96fb 100644 (file)
 #ifndef QUOTEARG_H_
 # define QUOTEARG_H_ 1
 
+/* This file uses _GL_ATTRIBUTE_MALLOC, _GL_ATTRIBUTE_RETURNS_NONNULL.  */
+# if !_GL_CONFIG_H_INCLUDED
+#  error "Please include config.h first."
+# endif
+
 # include <stdlib.h>
 
 /* Basic quoting styles.  For each style, an example is given on the
index 4122954e9bc1f7219b9de31d91104d1068800b75..5a241369c548c697f40a373396a7009f36c167b7 100644 (file)
 #ifndef READ_FILE_H
 #define READ_FILE_H
 
+/* This file uses _GL_ATTRIBUTE_MALLOC.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 /* Get size_t, free().  */
 #include <stdlib.h>
 
index 3840d0fc2a49082601d212518956d20b7e65b305..9048b727d77d066edfd222a5ba2d3f89791c77e5 100644 (file)
 #ifndef GL_READLINE_H
 #define GL_READLINE_H
 
+/* This file uses _GL_ATTRIBUTE_MALLOC.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #if HAVE_READLINE_READLINE_H
 /* <readline/readline.h> makes use of the FILE type without including
    <stdio.h> itself. */
index bf2437e02a4cb37b46d9237da658c97610508f35..eda80a44fa689e634cac6b9241e4f5427e45590f 100644 (file)
 #ifndef __READUTMP_H__
 # define __READUTMP_H__
 
+/* This file uses _GL_ATTRIBUTE_MALLOC, _GL_ATTRIBUTE_RETURNS_NONNULL.  */
+# if !_GL_CONFIG_H_INCLUDED
+#  error "Please include config.h first."
+# endif
+
 # include <stdlib.h>
 # include <sys/types.h>
 
index cc704b2bbcb44d61e6130542ff68660b5e1a4802..db8c249e502ef1a31548639750dc20101baaf4ea 100644 (file)
 #ifndef _REGEX_QUOTE_H
 #define _REGEX_QUOTE_H
 
+/* This file uses _GL_ATTRIBUTE_MALLOC, _GL_ATTRIBUTE_RETURNS_NONNULL.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stdlib.h>
 
 /* Specifies a quotation task for converting a fixed string to a regular
index ce8238a906b51fb631d4757f2d3b30e1915fbe7b..b29c29ed1be855e98a93aa5ac7ebff7775198553 100644 (file)
 #ifndef _RELOCATABLE_H
 #define _RELOCATABLE_H
 
+/* This file uses _GL_ATTRIBUTE_MALLOC.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stdlib.h>
 
 #ifdef __cplusplus
index 6896e88147beb8a21ee0d17f232bdb1393b64def..46079d5c6917f66998a5699e917a676a1c10e1dc 100644 (file)
 #ifndef SAFE_ALLOC_H_
 #define SAFE_ALLOC_H_
 
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE,
+   _GL_ATTRIBUTE_NODISCARD.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stdlib.h>
 
-#ifndef _GL_INLINE_HEADER_BEGIN
-   #error "Please include config.h first."
-#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef SAFE_ALLOC_INLINE
 # define SAFE_ALLOC_INLINE _GL_INLINE
index 0cc7c4eeaf8b6831b282e89dc693f96b58d06213..a1244ccbe496fb3cf3be55beb24a67cfb89010f4 100644 (file)
 #ifndef _GL_SAVEDIR_H
 #define _GL_SAVEDIR_H
 
+/* This file uses _GL_ATTRIBUTE_MALLOC.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <dirent.h>
 #include <stdlib.h>
 
index 4f69c04a0561b16b0fbaa24b9580f62836caf96a..3727f6a47b2606543499bf99bd9a8e3ad03cd70d 100644 (file)
 /* Written by Paul Eggert.  */
 
 #ifndef SAVEWD_H
-# define SAVEWD_H 1
+#define SAVEWD_H 1
 
-#include <sys/types.h>
-
-#ifndef _GL_INLINE_HEADER_BEGIN
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE, _GL_ATTRIBUTE_PURE.  */
+#if !_GL_CONFIG_H_INCLUDED
  #error "Please include config.h first."
 #endif
+
+#include <sys/types.h>
+
 _GL_INLINE_HEADER_BEGIN
 #ifndef SAVEWD_INLINE
 # define SAVEWD_INLINE _GL_INLINE
index 2e035b55480147e3ea1addb85e9a1cac8d07011a..fb314b86a3315d11ee5b76f93f68863aee5bfb07 100644 (file)
 #ifndef _@GUARD_PREFIX@_SCHED_H
 #define _@GUARD_PREFIX@_SCHED_H
 
+/* This file uses GNULIB_POSIXCHECK.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 /* Get pid_t.
    This is needed on glibc 2.11 (see
    glibc bug <https://sourceware.org/bugzilla/show_bug.cgi?id=13198>)
index 28515fb522f7b732c39e439edb10a62bce3f51e1..3847358e7eae716a9713b4a3a3154ccfc7d5f082 100644 (file)
 /* Written by Jim Meyering, 2007.  */
 
 #ifndef SELINUX_CONTEXT_H
-# define SELINUX_CONTEXT_H
+#define SELINUX_CONTEXT_H
 
-# include <errno.h>
-
-#ifndef _GL_INLINE_HEADER_BEGIN
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE,
+   _GL_ATTRIBUTE_MAYBE_UNUSED.  */
+#if !_GL_CONFIG_H_INCLUDED
  #error "Please include config.h first."
 #endif
+
+#include <errno.h>
+
 _GL_INLINE_HEADER_BEGIN
 #ifndef SE_CONTEXT_INLINE
 # define SE_CONTEXT_INLINE _GL_INLINE
index 2e2a6ce8ebbd92d8f2a4dbeac0c9505b28b29c11..6455808679619d1b8a942381558f8f00dc0e13b6 100644 (file)
 /* Written by Paul Eggert.  */
 
 #ifndef SELINUX_LABEL_H
-
 #define SELINUX_LABEL_H
 
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE,
+   _GL_ATTRIBUTE_MAYBE_UNUSED.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <selinux/selinux.h>
 #include <errno.h>
 
-#ifndef _GL_INLINE_HEADER_BEGIN
- #error "Please include config.h first."
-#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef SE_LABEL_INLINE
 # define SE_LABEL_INLINE _GL_INLINE
index edf273be1fb141b98e72cd02cd61e6ba1b38fc7d..5ec13dde734c706d86f894a4ca2efef2af5395b8 100644 (file)
 # if !defined _@GUARD_PREFIX@_SELINUX_SELINUX_H
 #  define _@GUARD_PREFIX@_SELINUX_SELINUX_H
 
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE,
+   _GL_ATTRIBUTE_MAYBE_UNUSED.  */
+#  if !_GL_CONFIG_H_INCLUDED
+#   error "Please include config.h first."
+#  endif
+
 #  include <sys/types.h>
 #  include <errno.h>
 
-#  ifndef _GL_INLINE_HEADER_BEGIN
-    #error "Please include config.h first."
-#  endif
 _GL_INLINE_HEADER_BEGIN
 #  ifndef SE_SELINUX_INLINE
 #   define SE_SELINUX_INLINE _GL_INLINE
index 32b022edc65e90d0192a945973d3976612617ab1..c0f5f0a8565a5d9a8869b3fb33de7c89a8c60710 100644 (file)
 #ifndef _@GUARD_PREFIX@_SEARCH_H
 #define _@GUARD_PREFIX@_SEARCH_H
 
+/* This file uses GNULIB_POSIXCHECK.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 
 /* The definitions of _GL_FUNCDECL_RPL etc. are copied here.  */
 
index df8e6af6d1ff61bbb66897ed742321a2002a6fb8..8c377c442c00bbcee4eeb66491be846c713e0652 100644 (file)
    arguments, since Unix shells interpret characters like " ", "'", "<", ">",
    "$", '*', '?' etc. in a special way.  */
 
+/* This file uses _GL_ATTRIBUTE_MALLOC, _GL_ATTRIBUTE_RETURNS_NONNULL.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stdlib.h>
 
 #ifdef __cplusplus
index 3ead5fabe6806e424f87c38d0f2e38d2a81324f5..e85d30b3d336d3a75e10f3fc598bf5b893b10ca7 100644 (file)
 #ifndef _GL_SIG_HANDLER_H
 #define _GL_SIG_HANDLER_H
 
-#include <signal.h>
-
-#ifndef _GL_INLINE_HEADER_BEGIN
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE, _GL_ATTRIBUTE_PURE.  */
+#if !_GL_CONFIG_H_INCLUDED
  #error "Please include config.h first."
 #endif
+
+#include <signal.h>
+
 _GL_INLINE_HEADER_BEGIN
 #ifndef SIG_HANDLER_INLINE
 # define SIG_HANDLER_INLINE _GL_INLINE
index fea12e6572d88432f5803e565a1a2f5f2beec36d..a7006a2c493f5fd0c0198ddf525578ee029f533e 100644 (file)
 #ifndef _@GUARD_PREFIX@_SIGNAL_H
 #define _@GUARD_PREFIX@_SIGNAL_H
 
+/* This file uses GNULIB_POSIXCHECK.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 /* For testing the OpenBSD version.  */
 #if (@GNULIB_PTHREAD_SIGMASK@ || defined GNULIB_POSIXCHECK) \
     && defined __OpenBSD__
index 1917d8cff00d816acb4117a6d542e6dcbb8b7bcc..f90edf105fee4074adee0fa0411028b3a6e70143 100644 (file)
 #ifndef _SIGPIPE_DIE_H
 #define _SIGPIPE_DIE_H
 
+/* This file uses _Noreturn.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #ifdef __cplusplus
 extern "C" {
 #endif
index a0b1601d6bbf6dbb8017e5d2d99cebf19a84b240..55d5e3a4b574d84684e68c5f7380d058a5e98199 100644 (file)
 #ifndef SOCKETS_H
 #define SOCKETS_H 1
 
+/* This file uses _GL_ATTRIBUTE_CONST.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #define SOCKETS_1_0 0x0001
 #define SOCKETS_1_1 0x0101
 #define SOCKETS_2_0 0x0002
index b35e5d77b326c3abcddcad80540fb75d4b334b75..169dd0bf961319faf676116e325c78af8abb1134 100644 (file)
 #ifndef _@GUARD_PREFIX@_SPAWN_H
 #define _@GUARD_PREFIX@_SPAWN_H
 
+/* This file uses GNULIB_POSIXCHECK.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 /* Get definitions of 'struct sched_param' and 'sigset_t'.
    But avoid namespace pollution on glibc systems.  */
 #if !(defined __GLIBC__ && !defined __UCLIBC__)
index 510a08d400b5042c4fd34e21b51a38a98a814645..87f44014e45990e38228a3f0aa7edb5565c58fca 100644 (file)
                         beginning of a page sequence returned by ALLOC_PAGES.
  */
 
+/* This file uses _GL_CMP.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 /* =================== Declarations of exported functions =================== */
 
 #include <stdint.h>
index 7a1abafc9cf75cf1138a917a10b79dec2213db5e..ab6b87317629fb151f51bc39b8ebc5e105b46d5c 100644 (file)
      #include "xalloc.h"
 */
 
+/* This file uses _GL_ATTRIBUTE_PURE.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #ifndef GL_STACK_ELEMENT
 # error "Please define GL_STACK_ELEMENT first."
 #endif
index 92aa1e64e20aec776f3300dc3d2e19dcde7c4d08..487e8b09713019bc5c9998acec31f19d24627868 100644 (file)
 #ifndef STAT_TIME_H
 #define STAT_TIME_H 1
 
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE, _GL_UNUSED,
+   _GL_ATTRIBUTE_PURE.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <errno.h>
 #include <stdckdint.h>
 #include <stddef.h>
 #include <sys/stat.h>
 #include <time.h>
 
-#ifndef _GL_INLINE_HEADER_BEGIN
- #error "Please include config.h first."
-#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef _GL_STAT_TIME_INLINE
 # define _GL_STAT_TIME_INLINE _GL_INLINE
index b616c100fdc90a65986e539a075756e58f6a7f68..2503817c87b6bc6ef5641f57873e7a8d003d85b4 100644 (file)
 #ifndef _@GUARD_PREFIX@_STDALIGN_H
 #define _@GUARD_PREFIX@_STDALIGN_H
 
+/* This file uses alignof, alignas.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #if (defined alignas \
      || (defined __STDC_VERSION__ && 202311 <= __STDC_VERSION__) \
      || (defined __cplusplus && (201103 <= __cplusplus || defined _MSC_VER)))
index 64baf87f048b508082513cf8ec33fd2145fdab16..8145216e867e951b9beb978d1e85715d5b85fc60 100644 (file)
 #ifndef _@GUARD_PREFIX@_STDARG_H
 #define _@GUARD_PREFIX@_STDARG_H
 
+/* This file uses va_copy.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #ifndef va_copy
 # define va_copy(a,b) ((a) = (b))
 #endif
index ddbb74cedb8a3d5a349f202d65c1312e02c2a56f..431e819b8bff34fd5c17bad6c3fdbdf26f64e03b 100644 (file)
@@ -101,6 +101,11 @@ typedef long max_align_t;
 #  ifndef _@GUARD_PREFIX@_STDDEF_H
 #   define _@GUARD_PREFIX@_STDDEF_H
 
+/* This file uses _Noreturn.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 /* Some platforms lack wchar_t.  */
 #if !@HAVE_WCHAR_T@
 # define wchar_t int
index 9d404f139744ee7a9a481fafdaf26c4078990971..d091a251895ca440ac308aa3d339c41ab2d380d1 100644 (file)
 
 /* Written by Paul Eggert.  */
 
+/* This file uses _GL_ATTRIBUTE_DEALLOC.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stdio.h>
 
 #if GNULIB_FOPEN_SAFER
index f3180149783f058b10e740f5c65e57d5cd608eaf..9c63e36b2af7cbe15170b5a93c55def523106641 100644 (file)
 #ifndef _@GUARD_PREFIX@_STDIO_H
 #define _@GUARD_PREFIX@_STDIO_H
 
+/* This file uses _GL_ATTRIBUTE_DEALLOC, _GL_ATTRIBUTE_FORMAT,
+   GNULIB_POSIXCHECK.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 /* Get va_list.  Needed on many systems, including glibc 2.8.  */
 #include <stdarg.h>
 
index f79c5a9d297e6450ae92d8ad5452f2e5293ab9dc..da827a5c7b8a42ccbb961ed06332bdd82e2e6e30 100644 (file)
 #ifndef _@GUARD_PREFIX@_STDLIB_H
 #define _@GUARD_PREFIX@_STDLIB_H
 
+/* This file uses _Noreturn, _GL_ATTRIBUTE_DEALLOC, _GL_ATTRIBUTE_MALLOC,
+   _GL_ATTRIBUTE_PURE, GNULIB_POSIXCHECK.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 /* NetBSD 5.0 mis-defines NULL.  */
 #include <stddef.h>
 
index 9a304ef05b7bda32ace6db7599c4444a6642c476..d6d4c2adacb35375dab96d4c897b8baa3d2c8a2f 100644 (file)
 
 /* Written by Paul Eggert.  */
 
+/* This file uses _Noreturn.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #ifndef noreturn
 
 /* ISO C11 <stdnoreturn.h> for platforms that lack it.
index 388cc28227b7ab9d1ef7548fc789524be9997bbd..c9b3ba8c19b5db0883e049b52ec89007886a3844 100644 (file)
 #ifndef _GL_STRERROR_OVERRIDE_H
 # define _GL_STRERROR_OVERRIDE_H
 
+/* This file uses _GL_ATTRIBUTE_CONST.  */
+# if !_GL_CONFIG_H_INCLUDED
+#  error "Please include config.h first."
+# endif
+
 # include <errno.h>
 # include <stddef.h>
 
index d0eb8e642da4cbd0dd276352f069c88826f8d7cc..6cd7dc31cfe3ae04beaa0f6edae0b0fca13cfce4 100644 (file)
 #ifndef _STRICONV_H
 #define _STRICONV_H
 
+/* This file uses _GL_ATTRIBUTE_MALLOC.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stdlib.h>
 #if HAVE_ICONV
 #include <iconv.h>
index 7858b03ef654c609c76e5518b73b43331591959e..6bced43e9c1c7d3757b6a987b97b291635bc681e 100644 (file)
 #ifndef _STRICONVEH_H
 #define _STRICONVEH_H
 
+/* This file uses _GL_ATTRIBUTE_MALLOC.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stdlib.h>
 #if HAVE_ICONV
 #include <iconv.h>
index d0b0f4ddb76992b0991067a1e9396f82e7115bbe..a5c307ea2a85c054e9101eeb77fce1ef59180720 100644 (file)
 #ifndef _STRICONVEHA_H
 #define _STRICONVEHA_H
 
+/* This file uses _GL_ATTRIBUTE_MALLOC.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stdlib.h>
 
 #include "iconveh.h"
index 8e2d80d16ee4b96ded175f6d64d0b0df7c8df105..6cc4a82dec4088cf3706509f43943f7ba78358a6 100644 (file)
 #ifndef _STRING_BUFFER_H
 #define _STRING_BUFFER_H
 
+/* This file uses _GL_ATTRIBUTE_MALLOC.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stdarg.h>
 #include <stdlib.h>
 
index b7cb306b8920d4c611516af503f22d9b2277155f..20237a3bc7113813316b8272c7bb31fcfd35f3d2 100644 (file)
 #ifndef _STRING_DESC_QUOTEARG_H
 #define _STRING_DESC_QUOTEARG_H 1
 
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE, _GL_ATTRIBUTE_MALLOC,
+   _GL_ATTRIBUTE_NONNULL, _GL_ATTRIBUTE_RETURNS_NONNULL.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include "string-desc.h"
 #include "quotearg.h"
 
 
-#ifndef _GL_INLINE_HEADER_BEGIN
- #error "Please include config.h first."
-#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef GL_STRING_DESC_QUOTEARG_INLINE
 # define GL_STRING_DESC_QUOTEARG_INLINE _GL_INLINE
index 9bd086f689e3d8fccf09f0236e714cb4f88c0bf4..e5204d4ea69bc1fdb1437386632f1233e4e80968 100644 (file)
 #ifndef _STRING_DESC_H
 #define _STRING_DESC_H 1
 
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE,
+   _GL_ATTRIBUTE_NODISCARD.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 /* Get ptrdiff_t.  */
 #include <stddef.h>
 
@@ -32,9 +38,6 @@
 #include "idx.h"
 
 
-#ifndef _GL_INLINE_HEADER_BEGIN
- #error "Please include config.h first."
-#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef GL_STRING_DESC_INLINE
 # define GL_STRING_DESC_INLINE _GL_INLINE
index b6bf432e1f1cd32ffd0cdf5a302203a4c81b8914..f7e46e936f4361e9d02d2b962329276dda3331ee 100644 (file)
 #ifndef _@GUARD_PREFIX@_STRING_H
 #define _@GUARD_PREFIX@_STRING_H
 
+/* This file uses _GL_ATTRIBUTE_DEALLOC, _GL_ATTRIBUTE_MALLOC,
+   _GL_ATTRIBUTE_PURE, GNULIB_POSIXCHECK.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 /* NetBSD 5.0 mis-defines NULL.  */
 #include <stddef.h>
 
index 2cfe8b16702fdb98778124a09079a0afef0797a0..bc5c2a1e882b47c41d9a3384f04658ce0baf1d46 100644 (file)
 #ifndef _@GUARD_PREFIX@_STRINGS_H
 #define _@GUARD_PREFIX@_STRINGS_H
 
+/* This file uses GNULIB_POSIXCHECK.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #if ! @HAVE_DECL_STRNCASECMP@
 /* Get size_t.  */
 # include <stddef.h>
index 9e5b502bef690c80305b26d59b6a0d0882ab6c34..02dcd4c4aba44ed011872068d85a83910adbfc2c 100644 (file)
 #ifndef _STRNLEN1_H
 #define _STRNLEN1_H
 
+/* This file uses _GL_ATTRIBUTE_PURE.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stddef.h>
 
 
index d05337ad423f20dd4897d0f5625430069c3c95bf..fb402e04c6b980583f2cc14aaedc943eeb1eca18 100644 (file)
 #ifndef _@GUARD_PREFIX@_SYS_FILE_H
 #define _@GUARD_PREFIX@_SYS_FILE_H
 
+/* This file uses GNULIB_POSIXCHECK.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #ifndef LOCK_SH
 /* Operations for the 'flock' call (same as Linux kernel constants).  */
 # define LOCK_SH 1       /* Shared lock.  */
index 86840e45a91312c52cda6c002450f00507cce203..48e9c68090c9bb32ff3c239df8cc0153ba0309ef 100644 (file)
 #ifndef _@GUARD_PREFIX@_SYS_IOCTL_H
 #define _@GUARD_PREFIX@_SYS_IOCTL_H
 
+/* This file uses GNULIB_POSIXCHECK.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 /* AIX 5.1 and Solaris 10 declare ioctl() in <unistd.h> and in <stropts.h>,
    but not in <sys/ioctl.h>.
    Haiku declares ioctl() in <unistd.h>, but not in <sys/ioctl.h>.
index 8dca13268375ea3d5e3b6b7adcfbdc7885a982f6..35fd47b6b5fe04d708f3c078b3f3b740e3f20bc4 100644 (file)
 #ifndef _@GUARD_PREFIX@_SYS_RANDOM_H
 #define _@GUARD_PREFIX@_SYS_RANDOM_H
 
+/* This file uses GNULIB_POSIXCHECK.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <sys/types.h>
 
 /* Define the GRND_* constants.  */
index b0af9aa2899846ded12db034559e5a3ea1b56051..d7b898824e441e8ee9b05fe3057f69a30c43d243 100644 (file)
 #ifndef _@GUARD_PREFIX@_SYS_RESOURCE_H
 #define _@GUARD_PREFIX@_SYS_RESOURCE_H
 
+/* This file uses GNULIB_POSIXCHECK.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #if !@HAVE_SYS_RESOURCE_H@
 /* A platform that lacks <sys/resource.h>.  */
 
index 13440fa6f0a96bb44292194068eba2121252316f..e8172741812d7b5fabd441ab17e580e70b4d38f7 100644 (file)
 
 #ifndef _@GUARD_PREFIX@_SYS_SELECT_H
 
+/* This file uses GNULIB_POSIXCHECK.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 /* On many platforms, <sys/select.h> assumes prior inclusion of
    <sys/types.h>.  Also, mingw defines sigset_t there, instead of
    in <signal.h> where it belongs.  */
index 6705593f4ab8b3f642fb72c2733352add28c22c6..a3c0e834f4f2abf5531be4eef9f1381bf48fef4d 100644 (file)
 #ifndef _@GUARD_PREFIX@_SYS_SOCKET_H
 #define _@GUARD_PREFIX@_SYS_SOCKET_H
 
-#ifndef _GL_INLINE_HEADER_BEGIN
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE, GNULIB_POSIXCHECK,
+   alignof.  */
+#if !_GL_CONFIG_H_INCLUDED
  #error "Please include config.h first."
 #endif
+
 _GL_INLINE_HEADER_BEGIN
 #ifndef _GL_SYS_SOCKET_INLINE
 # define _GL_SYS_SOCKET_INLINE _GL_INLINE
index 0c2f39c12bf9ad1f126559e76ce327f5c1d68f0a..cbf98d9177a20bebcc6887616454572fd08c726a 100644 (file)
 #ifndef _@GUARD_PREFIX@_SYS_STAT_H
 #define _@GUARD_PREFIX@_SYS_STAT_H
 
+/* This file uses GNULIB_POSIXCHECK.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 /* The definitions of _GL_FUNCDECL_RPL etc. are copied here.  */
 
 /* The definition of _GL_ARG_NONNULL is copied here.  */
index e833d5516776d87727b011aae2363167c916e39f..62cd6bcd35e92f6efaaefcd5005b10279031d032 100644 (file)
 #ifndef _@GUARD_PREFIX@_SYS_TIME_H
 #define _@GUARD_PREFIX@_SYS_TIME_H
 
+/* This file uses GNULIB_POSIXCHECK.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #if ! @HAVE_SYS_TIME_H@
 # include <time.h>
 #endif
index 148dc60db9e05a240a83ddf8ab4f245187077948..6977f70318a95ffc5120109a4d606952fc68aaf6 100644 (file)
 
 # define _@GUARD_PREFIX@_SYS_TIMES_H
 
+/* This file uses GNULIB_POSIXCHECK.  */
+# if !_GL_CONFIG_H_INCLUDED
+#  error "Please include config.h first."
+# endif
+
 /* Get clock_t.
    But avoid namespace pollution on glibc systems.  */
 # ifndef __GLIBC__
index 4420d94ef4efbb00fca1ba09ac3433c7f0f48768..db689116df35bf6ec082e9c9305fc67f1d2a1dbc 100644 (file)
 
 #define _@GUARD_PREFIX@_SYS_UTSNAME_H
 
+/* This file uses GNULIB_POSIXCHECK.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 /* The definition of _GL_ARG_NONNULL is copied here.  */
 
 /* The definition of _GL_WARN_ON_USE is copied here.  */
index 6454eb5ad7844027ccfdb4174adb13f039143aa0..15d8ab28f16dd035d48b30399869ac26e2c31a98 100644 (file)
 #ifndef _@GUARD_PREFIX@_SYS_WAIT_H
 #define _@GUARD_PREFIX@_SYS_WAIT_H
 
+/* This file uses GNULIB_POSIXCHECK.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 /* Get pid_t.  */
 #include <sys/types.h>
 
index 2046c06a7e1016809aa9a720cc124d1ca00ba4a1..870a5c11075fbceb53bd0858921306f22c669060 100644 (file)
       is to truncate the entire command line.
  */
 
+/* This file uses _GL_ATTRIBUTE_MALLOC, _GL_ATTRIBUTE_RETURNS_NONNULL.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stdlib.h>
 
 #ifdef __cplusplus
index 4e14c7c5b10f2b47762b80bd47cf628fbd3fa81a..6b77277cf38692eaa34f828dcc90a78715e15711 100644 (file)
 /* The user of this file will define a macro 'term_style_user_data', such that
    'struct term_style_user_data' is a user-defined struct.  */
 
+/* This file uses _GL_ASYNC_SAFE.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 
 /* The amount of control to take over the underlying tty in order to avoid
    garbled output on the screen, due to interleaved output of escape sequences
index aa3a7cc9d98127c8b1e263b18115c2ce7b22310f..2b64250d552a3fd2df0cd29829e8d1cce7956218 100644 (file)
@@ -40,6 +40,11 @@ extern "C" {
 #ifndef _@GUARD_PREFIX@_TERMIOS_H
 #define _@GUARD_PREFIX@_TERMIOS_H
 
+/* This file uses GNULIB_POSIXCHECK.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 /* Get pid_t.  */
 #include <sys/types.h>
 
index 38645bf6f8b563e5a64adc94105daa1b0bdb26f4..c87fa38059649954aaeb15ed175a9cfce8368d5d 100644 (file)
 #ifndef _TEXTSTYLE_H
 #define _TEXTSTYLE_H
 
+/* This file uses _GL_ATTRIBUTE_MAYBE_UNUSED, HAVE_TCDRAIN.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <errno.h>
 #include <stdarg.h>
 #include <stddef.h>
index 2bc0f23b326ba802ec900f70145a86c2e468d586..ff01b50cbbf091da999da70b3989bf3233af377e 100644 (file)
 #ifndef _@GUARD_PREFIX@_THREADS_H
 #define _@GUARD_PREFIX@_THREADS_H
 
+/* This file uses _GL_ATTRIBUTE_PURE, GNULIB_POSIXCHECK, _Thread_local.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #if !@HAVE_THREADS_H@
 
 # include <time.h>
index f9b517a3dd11bcc1eb08a7a0869eba2aba9bc205..39dc1e43697e7f80a064f9ff8782f21a16e98aba 100644 (file)
 
 # @INCLUDE_NEXT@ @NEXT_TIME_H@
 
+/* This file uses _GL_ATTRIBUTE_DEPRECATED, GNULIB_POSIXCHECK.  */
+# if !_GL_CONFIG_H_INCLUDED
+#  error "Please include config.h first."
+# endif
+
 /* NetBSD 5.0 mis-defines NULL.  */
 # include <stddef.h>
 
index ba78647f09a9b4fa7c20bf614605e3cef882b842..0bdfd76ef78e725b15157f20e574bb60f7fcb655 100644 (file)
 #if ! defined TIMESPEC_H
 #define TIMESPEC_H
 
-#include <time.h>
-
-#ifndef _GL_INLINE_HEADER_BEGIN
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE, _GL_ATTRIBUTE_CONST,
+   _GL_ATTRIBUTE_PURE, _GL_CMP.  */
+#if !_GL_CONFIG_H_INCLUDED
  #error "Please include config.h first."
 #endif
+
+#include <time.h>
+
 _GL_INLINE_HEADER_BEGIN
 #ifndef _GL_TIMESPEC_INLINE
 # define _GL_TIMESPEC_INLINE _GL_INLINE
index b558fb218a9f0171916ad4e521b4f51bdb7e915c..a8040ef3ad9fa0dbe4e81f8cafdbc58d41f4b222 100644 (file)
 
 /* Written by Davide Angelocola <davide.angelocola@gmail.com> */
 
+/* This file uses _GL_ATTRIBUTE_MALLOC, _GL_ATTRIBUTE_RETURNS_NONNULL.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stdlib.h>
 
 /* Trim mode. */
index 0353ad4d9af5bce6eb6f0ef2aab1866bef5139fd..8a99335b6aa4783d4c0ed8cbff6c46b88e6edf97 100644 (file)
--- a/lib/u64.h
+++ b/lib/u64.h
 
 /* Written by Paul Eggert.  */
 
-#include <stdint.h>
-
-#ifndef _GL_INLINE_HEADER_BEGIN
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE.  */
+#if !_GL_CONFIG_H_INCLUDED
  #error "Please include config.h first."
 #endif
+
+#include <stdint.h>
+
 _GL_INLINE_HEADER_BEGIN
 #ifndef _GL_U64_INLINE
 # define _GL_U64_INLINE _GL_INLINE
index 27b91c5b580a7e9bd140a1c35b24669fa0719c38..aaba0b604a8e5032a5974bffd4c4d1f4536013d3 100644 (file)
 # @INCLUDE_NEXT@ @NEXT_UCHAR_H@
 #endif
 
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE, _GL_BEGIN_C_LINKAGE,
+   _GL_ATTRIBUTE_PURE, GNULIB_POSIXCHECK.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 /* Get uint_least16_t, uint_least32_t.  */
 #include <stdint.h>
 
@@ -66,9 +72,6 @@
 /* The definitions of _GL_FUNCDECL_RPL etc. are copied here.  */
 
 
-#ifndef _GL_INLINE_HEADER_BEGIN
- #error "Please include config.h first."
-#endif
 _GL_INLINE_HEADER_BEGIN
 
 
index 8ba9867894e3b6b81069c21c023c58b0720c776a..93ca7a97f91738c4d4d63a2f408f048827d2cce7 100644 (file)
 #if !defined _@GUARD_PREFIX@_UNISTD_H && !defined _GL_INCLUDING_WINSOCK2_H
 #define _@GUARD_PREFIX@_UNISTD_H
 
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE, GNULIB_POSIXCHECK.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 /* NetBSD 5.0 mis-defines NULL.  Also get size_t.  */
 /* But avoid namespace pollution on glibc systems.  */
 #ifndef __GLIBC__
 # include <getopt-pfx-core.h>
 #endif
 
-#ifndef _GL_INLINE_HEADER_BEGIN
- #error "Please include config.h first."
-#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef _GL_UNISTD_INLINE
 # define _GL_UNISTD_INLINE _GL_INLINE
index b185019176502b8406814771f988bac80f031dc0..384271434a866fba5d5ccff05209805c6793af37 100644 (file)
 #ifndef _@GUARD_PREFIX@_UTIME_H
 #define _@GUARD_PREFIX@_UTIME_H
 
+/* This file uses GNULIB_POSIXCHECK.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #if !@HAVE_UTIME_H@
 # include <sys/utime.h>
 #endif
index a7056981f328c76230c7ff787816716b21e4bde0..4a21792a7e42b52fe1ac276cdebbd737766018f4 100644 (file)
 
 /* Written by Paul Eggert.  */
 
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <time.h>
 int fdutimens (int, char const *, struct timespec const [2]);
 int utimens (char const *, struct timespec const [2]);
@@ -26,9 +31,6 @@ int lutimens (char const *, struct timespec const [2]);
 # include <fcntl.h>
 # include <sys/stat.h>
 
-#ifndef _GL_INLINE_HEADER_BEGIN
- #error "Please include config.h first."
-#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef _GL_UTIMENS_INLINE
 # define _GL_UTIMENS_INLINE _GL_INLINE
index 2c8c79d129ee4e4df88eec7b1b7fe6bd359380db..895704cb1b2be6f1a18e371edc5ddcf2a8d2a343 100644 (file)
 #ifndef _@GUARD_PREFIX@_UTMP_H
 #define _@GUARD_PREFIX@_UTMP_H
 
+/* This file uses GNULIB_POSIXCHECK.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 /* FreeBSD, NetBSD, OpenBSD, macOS, Minix, Haiku declare login_tty in
    <util.h> or <libutil.h>, not in <utmp.h>.  Solaris declares it in
    <termios.h>, not in <utmp.h>.  */
index f69649fb45729706edac78bbe2d2f8c0245da354..2d134070796cf1f4a67f2f5d6455dc693731b083 100644 (file)
 #ifndef _VASNPRINTF_H
 #define _VASNPRINTF_H
 
+/* This file uses _GL_ATTRIBUTE_FORMAT.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 /* Get va_list.  */
 #include <stdarg.h>
 
index 8917988db630e9950c94fc973f1458392ae467a4..bd385e1ef5d9835bfed0e34073776b4caa035e45 100644 (file)
 #ifndef _VERROR_H
 #define _VERROR_H 1
 
+/* This file uses _GL_ATTRIBUTE_FORMAT.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stdarg.h>
 
 /* Get _GL_ATTRIBUTE_SPEC_PRINTF_STANDARD.  */
index 58297fc349adc946fbd7059f8af22986f385126f..2313d98b3f47f47ceadd8e70822a0307cbc7d29c 100644 (file)
 #ifndef VERSION_ETC_H
 # define VERSION_ETC_H 1
 
+/* This file uses _GL_ATTRIBUTE_SENTINEL.  */
+# if !_GL_CONFIG_H_INCLUDED
+#  error "Please include config.h first."
+# endif
+
 # include <stdarg.h>
 # include <stdio.h>
 
index 194a1c67234571cb676b7094b7fee4f532aa3074..b2620ad92ede2f6872389893e72f2cda27f9f57e 100644 (file)
 #ifndef _@GUARD_PREFIX@_WCHAR_H
 #define _@GUARD_PREFIX@_WCHAR_H
 
+/* This file uses _GL_ATTRIBUTE_DEALLOC, _GL_ATTRIBUTE_MALLOC,
+   _GL_ATTRIBUTE_PURE, GNULIB_POSIXCHECK.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 /* _GL_ATTRIBUTE_DEALLOC (F, I) declares that the function returns pointers
    that can be freed by passing them as the Ith argument to the
    function F.  */
index f6e474d38d21931ef49897b34b29d38de481a878..22fa1df2390248629a0b4fbe8953046bbc577c53 100644 (file)
 
 #ifndef _@GUARD_PREFIX@_WCTYPE_H
 
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE, GNULIB_POSIXCHECK.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #if @HAVE_WINT_T@
 /* Solaris 2.5 has a bug: <wchar.h> must be included before <wctype.h>.  */
 # include <wchar.h>
@@ -68,9 +73,6 @@
 #ifndef _@GUARD_PREFIX@_WCTYPE_H
 #define _@GUARD_PREFIX@_WCTYPE_H
 
-#ifndef _GL_INLINE_HEADER_BEGIN
- #error "Please include config.h first."
-#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef _GL_WCTYPE_INLINE
 # define _GL_WCTYPE_INLINE _GL_INLINE
index 42c5af77172e160966bee2685ed3abeafd68d767..b218181803fdffc63e317c7d43fb1fd9c96221b1 100644 (file)
 #ifndef _WINDOWS_SPAWN_H
 #define _WINDOWS_SPAWN_H
 
+/* This file uses _GL_ATTRIBUTE_MALLOC.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stdint.h>
 #include <stdlib.h>
 
index 68b8e968132fd65e5d7e3d55c3de02d230961771..e6511d736ec82adb3155926bd1a1ff2bfd2442ac 100644 (file)
 #ifndef _WINDOWS_THREAD_H
 #define _WINDOWS_THREAD_H
 
+/* This file uses _Noreturn.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #define WIN32_LEAN_AND_MEAN  /* avoid including junk */
 #include <windows.h>
 
index f373c2fe59959fbeda4a04a6297d59d735967d0b..0a951e1d590ed31271eb19f94cbaca754741a7c7 100644 (file)
 #ifndef XALLOC_H_
 #define XALLOC_H_
 
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE, _Noreturn,
+   _GL_ATTRIBUTE_ALLOC_SIZE, _GL_ATTRIBUTE_MALLOC,
+   _GL_ATTRIBUTE_RETURNS_NONNULL.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stddef.h>
 #include <stdlib.h>
 
@@ -25,9 +32,6 @@
 # include "idx.h"
 #endif
 
-#ifndef _GL_INLINE_HEADER_BEGIN
- #error "Please include config.h first."
-#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef XALLOC_INLINE
 # define XALLOC_INLINE _GL_INLINE
index e66df769f48d0b431cae8a32b3a80055988cdd86..d38256b489248a340efe064c2a67e9ebd7c37888 100644 (file)
 #ifndef _XBINARY_IO_H
 #define _XBINARY_IO_H
 
-#include "binary-io.h"
-
-#ifndef _GL_INLINE_HEADER_BEGIN
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE, _Noreturn.  */
+#if !_GL_CONFIG_H_INCLUDED
  #error "Please include config.h first."
 #endif
+
+#include "binary-io.h"
+
 _GL_INLINE_HEADER_BEGIN
 #ifndef XBINARY_IO_INLINE
 # define XBINARY_IO_INLINE _GL_INLINE
index 7467bc7bf16f5e84f79e3d9371f9191258e4edff..59d225e64295f7eff5c6186306a7e0dd3b7a66ed 100644 (file)
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
+/* This file uses _GL_ATTRIBUTE_MALLOC.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stdlib.h>
 
 extern char *xgetcwd (void)
index 2d4d67bdf25c7a925c938c4ce4e3e50c5b1aa8bc..86b8b18b807bd597b4433c5dd18289ed399b3cb4 100644 (file)
 #ifndef _XGETDOMAINNAME_H
 #define _XGETDOMAINNAME_H
 
+/* This file uses _GL_ATTRIBUTE_MALLOC.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stdlib.h>
 
 /* Return the NIS domain name of the machine, in malloc'd storage.
index aad35601a8c5772d4d6e1f684c2b24a15e63f056..c404b774399e460bd7d6368fe51da0f43594f87d 100644 (file)
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
+/* This file uses _GL_ATTRIBUTE_MALLOC.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stdlib.h>
 
 char *xgethostname (void)
index 4b1bd470c270dc6083ac0ec5b8724e036c76eb26..3f03eba5aac6fd62727fd86b295723cc25f92247 100644 (file)
 #ifndef _XMALLOCA_H
 #define _XMALLOCA_H
 
+/* This file uses _GL_ATTRIBUTE_ALLOC_SIZE, _GL_ATTRIBUTE_DEALLOC,
+   _GL_ATTRIBUTE_MALLOC, _GL_ATTRIBUTE_RETURNS_NONNULL.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include "malloca.h"
 #include "xalloc.h"
 #include "xalloc-oversized.h"
index 4f9888c3144971fc7d06b28edf5888bbaa45d49d..256cb4e9669a0c3dac698a0915a5fdb948e6a747 100644 (file)
 #ifndef XMEMDUP_H_
 # define XMEMDUP_H_
 
+/* This file uses _GL_ATTRIBUTE_MALLOC, _GL_ATTRIBUTE_RETURNS_NONNULL.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 # include <stdlib.h>
 
 
index ae1ea8f71d8a6516e8d45721d4713b077fafab3a..3e05290299641567fb940f082ce9b3da6b94d1e8 100644 (file)
 #ifndef _XPRINTF_H
 #define _XPRINTF_H
 
+/* This file uses _GL_ATTRIBUTE_FORMAT.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stdarg.h>
 #include <stdio.h>
 
index 48438ce7cbd07a0b06b06f147a99937d3564e42b..44f848f86d1180b98f5ac52826eeb3ec7702baeb 100644 (file)
 
 /* Written by Jim Meyering <jim@meyering.net>  */
 
+/* This file uses _GL_ATTRIBUTE_MALLOC.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stdlib.h>
 
 extern char *xreadlink (char const *filename)
index 1ec78e776fcae1c45a36bfdec8fdf0561272bc02..746d6569bf62bfbddf2d1eba74332da71a6010d0 100644 (file)
 #ifndef _XSIZE_H
 #define _XSIZE_H
 
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 /* Get size_t.  */
 #include <stddef.h>
 
@@ -30,9 +35,6 @@
 /* Get ATTRIBUTE_PURE.  */
 #include "attribute.h"
 
-#ifndef _GL_INLINE_HEADER_BEGIN
- #error "Please include config.h first."
-#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef XSIZE_INLINE
 # define XSIZE_INLINE _GL_INLINE
index f693194f8d031be3a2ed2e25d645b1ba9baa6af5..ee17e490c5942eefd708148ff8a2e319608870e6 100644 (file)
 #ifndef _XSTRICONV_H
 #define _XSTRICONV_H
 
+/* This file uses _GL_ATTRIBUTE_MALLOC.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stdlib.h>
 #if HAVE_ICONV
 #include <iconv.h>
index bb3c3a8db043045da586750ae3c3938ba4a3c843..fe15eed9122f6989f08dae35fe1264870b8c2b47 100644 (file)
 #ifndef _XSTRICONVEH_H
 #define _XSTRICONVEH_H
 
+/* This file uses _GL_ATTRIBUTE_MALLOC.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stdlib.h>
 
 /* Get the 'enum iconv_ilseq_handler' and iconveh_t types, and the
index b07831baf43860b06ff5dc2486d60b9b0dfc76b7..cbc0f97eab482943ca8f015c7fa26a0d52159bd6 100644 (file)
 #ifndef _XSTRING_DESC_H
 #define _XSTRING_DESC_H 1
 
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <string.h>
 #include "string-desc.h"
 #include "xalloc.h"
 
 
-#ifndef _GL_INLINE_HEADER_BEGIN
- #error "Please include config.h first."
-#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef GL_XSTRING_DESC_INLINE
 # define GL_XSTRING_DESC_INLINE _GL_INLINE
index 502881ea3d1930ca4aa508a2ee789b83e1eb640b..58447310109ce35dd72f091f6a77f614039839fb 100644 (file)
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
+/* This file uses _GL_ATTRIBUTE_MALLOC, _GL_ATTRIBUTE_RETURNS_NONNULL.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 #include <stdlib.h>
 
 /* Return a newly allocated copy of at most N bytes of STRING.
index d8892ea871725e8426067df29b3f3df631f1f4ec..0872f590d94fa09da283a3875b8345d808220f18 100644 (file)
 #ifndef XSTRTOL_ERROR_H_
 # define XSTRTOL_ERROR_H_ 1
 
+/* This file uses _Noreturn.  */
+# if !_GL_CONFIG_H_INCLUDED
+#  error "Please include config.h first."
+# endif
+
 # include "xstrtol.h"
 
 # include <getopt.h>
index ddad01ed47eea00ad86a6644d2fbc9437260ccfc..84a8a5db9ac043978f92e1f2c6fd2e549471d683 100644 (file)
 #ifndef XTIME_H_
 #define XTIME_H_ 1
 
-#ifndef _GL_INLINE_HEADER_BEGIN
+/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE.  */
+#if !_GL_CONFIG_H_INCLUDED
  #error "Please include config.h first."
 #endif
+
 _GL_INLINE_HEADER_BEGIN
 #ifndef XTIME_INLINE
 # define XTIME_INLINE _GL_INLINE
index 2f941ab22af925a63a50656d0a1521d09923724f..6a5952faa63e12cd775de69a1bd56f39ba4d68cc 100644 (file)
 #ifndef _XVASPRINTF_H
 #define _XVASPRINTF_H
 
+/* This file uses _GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_MALLOC.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 /* Get va_list.  */
 #include <stdarg.h>
 
index 0df2181871d716101fc333cbcc7139d1bdbd7278..02160174618ef652103931261675b5750b08e0d3 100644 (file)
@@ -1,4 +1,4 @@
-# gnulib-common.m4 serial 83
+# gnulib-common.m4 serial 84
 dnl Copyright (C) 2007-2023 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -15,6 +15,10 @@ AC_DEFUN([gl_COMMON], [
   AC_REQUIRE([gl_ZZGNULIB])
 ])
 AC_DEFUN([gl_COMMON_BODY], [
+  AH_VERBATIM([0witness],
+[/* Witness that <config.h> has been included.  */
+#define _GL_CONFIG_H_INCLUDED 1
+])
   AH_VERBATIM([_GL_GNUC_PREREQ],
 [/* True if the compiler says it groks GNU C version MAJOR.MINOR.  */
 #if defined __GNUC__ && defined __GNUC_MINOR__