]> Savannah Git Hosting - gnulib.git/commit
Reenable use of attributes in bracket syntax [[...]] (regr. yesterday).
authorBruno Haible <bruno@clisp.org>
Tue, 30 Jul 2024 17:22:40 +0000 (19:22 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 30 Jul 2024 19:33:02 +0000 (21:33 +0200)
commit513ef3260b319513b4095ec2c2d3f35b7b40f468
treeec4f6c8834c96a90d7b3ce3e43bb68e8b5a6ec3e
parent3b28e3a49d503dba36107a320a372db96f0f023c
Reenable use of attributes in bracket syntax [[...]] (regr. yesterday).

* m4/gnulib-common.m4 (gl_COMMON_BODY): Add more comments. Don't define
_GL_BRACKET_USABLE.
* lib/c++defs.h (_GL_EXTERN_C_FUNC): New macro.
(_GL_FUNCDECL_RPL, _GL_FUNCDECL_RPL_1, _GL_FUNCDECL_SYS): Expect the
attributes in an optional 4th argument. Expand them before the return
type.
* lib/arpa_inet.in.h: Update all _GL_FUNCDECL_RPL and _GL_FUNCDECL_SYS
invocations.
* lib/dirent.in.h: Likewise.
* lib/error.in.h: Likewise.
* lib/fcntl.in.h: Likewise.
* lib/fnmatch.in.h: Likewise.
* lib/glob.in.h: Likewise.
* lib/iconv.in.h: Likewise.
* lib/inttypes.in.h: Likewise.
* lib/locale.in.h: Likewise.
* lib/malloc.in.h: Likewise.
* lib/math.in.h: Likewise.
* lib/monetary.in.h: Likewise.
* lib/netdb.in.h: Likewise.
* lib/pthread.in.h: Likewise.
* lib/search.in.h: Likewise.
* lib/signal.in.h: Likewise.
* lib/spawn.in.h: Likewise.
* lib/stdio.in.h: Likewise.
* lib/stdlib.in.h: Likewise.
* lib/string.in.h: Likewise.
* lib/sys_random.in.h: Likewise.
* lib/sys_resource.in.h: Likewise.
* lib/sys_socket.in.h: Likewise.
* lib/sys_stat.in.h: Likewise.
* lib/sys_time.in.h: Likewise.
* lib/threads.in.h: Likewise.
* lib/time.in.h: Likewise.
* lib/uchar.in.h: Likewise.
* lib/unistd.in.h: Likewise.
* lib/utime.in.h: Likewise.
* lib/wchar.in.h: Likewise.
* lib/wctype.in.h: Likewise.
* lib/c-vasprintf.h (c_aszprintf, c_vaszprintf, c_asprintf,
c_vasprintf): Move _GL_ATTRIBUTE_NODISCARD back to the beginning of the
declaration.
36 files changed:
ChangeLog
lib/arpa_inet.in.h
lib/c++defs.h
lib/c-vasprintf.h
lib/dirent.in.h
lib/error.in.h
lib/fcntl.in.h
lib/fnmatch.in.h
lib/glob.in.h
lib/iconv.in.h
lib/inttypes.in.h
lib/locale.in.h
lib/malloc.in.h
lib/math.in.h
lib/monetary.in.h
lib/netdb.in.h
lib/pthread.in.h
lib/search.in.h
lib/signal.in.h
lib/spawn.in.h
lib/stdio.in.h
lib/stdlib.in.h
lib/string.in.h
lib/sys_random.in.h
lib/sys_resource.in.h
lib/sys_socket.in.h
lib/sys_stat.in.h
lib/sys_time.in.h
lib/threads.in.h
lib/time.in.h
lib/uchar.in.h
lib/unistd.in.h
lib/utime.in.h
lib/wchar.in.h
lib/wctype.in.h
m4/gnulib-common.m4