diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2023-04-14 13:20:05 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2023-04-14 13:20:05 +0300 |
commit | 2d8a82cf0a80f9ba0d5a03eecfb2a6d4ccb66ee7 (patch) | |
tree | cb3c0060e1ea8471583649b5f0540dab63c20dda | |
parent | 0cd811b5a7b194fc7d29719a4ac0c7068b2cadf6 (diff) | |
download | gawk-2d8a82cf0a80f9ba0d5a03eecfb2a6d4ccb66ee7.tar.gz |
Update support files.
-rw-r--r-- | support/ChangeLog | 1 | ||||
-rw-r--r-- | support/dfa.h | 8 | ||||
-rw-r--r-- | support/flexmember.h | 7 | ||||
-rw-r--r-- | support/regex_internal.h | 2 |
4 files changed, 17 insertions, 1 deletions
diff --git a/support/ChangeLog b/support/ChangeLog index 9f762cb3..c2c3c338 100644 --- a/support/ChangeLog +++ b/support/ChangeLog @@ -1,6 +1,7 @@ 2023-04-14 Arnold D. Robbins <arnold@skeeve.com> * Makefile.am: Update copyright year. + * dfa.h, flexmember.h, regex_internal.h: Upate from GNULIB. 2023-03-26 Arnold D. Robbins <arnold@skeeve.com> diff --git a/support/dfa.h b/support/dfa.h index 6ac30ffa..69a3bac6 100644 --- a/support/dfa.h +++ b/support/dfa.h @@ -21,6 +21,14 @@ #ifndef DFA_H_ #define DFA_H_ +#ifndef GAWK +/* 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 +#endif /* GAWK */ + #include "idx.h" #include <regex.h> #include <stddef.h> diff --git a/support/flexmember.h b/support/flexmember.h index a6cc876a..4e5d3c9a 100644 --- a/support/flexmember.h +++ b/support/flexmember.h @@ -20,6 +20,13 @@ Written by Paul Eggert. */ +#ifndef GAWK +/* This file uses _Alignof. */ +#if !_GL_CONFIG_H_INCLUDED + #error "Please include config.h first." +#endif +#endif /* GAWK */ + #include <stddef.h> /* Nonzero multiple of alignment of TYPE, suitable for FLEXSIZEOF below. diff --git a/support/regex_internal.h b/support/regex_internal.h index 149ec2e8..ae9257ea 100644 --- a/support/regex_internal.h +++ b/support/regex_internal.h @@ -822,7 +822,7 @@ re_string_elem_size_at (const re_string_t *pstr, Idx idx) } #ifdef _LIBC -# if __GNUC__ >= 7 +# if __glibc_has_attribute (__fallthrough__) # define FALLTHROUGH __attribute__ ((__fallthrough__)) # else # define FALLTHROUGH ((void) 0) |