]> Savannah Git Hosting - gnulib.git/commit
alignasof: new module
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 15 Jan 2023 19:48:43 +0000 (11:48 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 15 Jan 2023 19:51:07 +0000 (11:51 -0800)
commitc593e834e1c17daf5c151ec2bdadbccc65b9efd4
tree9095a76a29ccd67017ce08910e86644fbed7253c
parent8bec309111411a2fdb51f149af2ff4d8d5226dfd
alignasof: new module

This splits off support for the C23 keywords alignas and alignof,
from the now-deprecated stdalign module.  The latter now merely
provides C11 support.
* MODULES.html.sh, NEWS, doc/gnulib.texi:
* doc/posix-headers/stdalign.texi: Document the change.
* lib/stdalign.in.h: Remove most of the definitions (which are now
supplied by the alignasof module), leaving only
__alignas_is_defined and __alignof_is_defined.
* modules/alignasof, modules/alignasof-tests: New files.
* m4/stdalign.m4 (gl_ALIGNASOF): New macro, with
most of the contents of the old gl_STDALIGN_H.
Do not define __alignas_is_defined or __alignof_is_defined.
(gl_STDALIGN_H): Rely on gl_ALIGNASOF for most of the work.
* modules/alignalloc, modules/alignof, modules/argp:
* modules/crypto/md4-buffer, modules/crypto/md5-buffer:
* modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
* modules/crypto/sha512-buffer, modules/crypto/sm3-buffer:
* modules/fts, modules/rawmemchr, modules/relocatable-prog-wrapper:
* modules/stddef-tests, modules/sys_socket:
Depend on alignasof, not stdalign.
* modules/stdalign: Deprecate.  Depend on alignasof.
* modules/stdalign-tests: Move most contents to the new module
alignasof-tests, and depend on that.
25 files changed:
ChangeLog
MODULES.html.sh
NEWS
doc/gnulib.texi
doc/posix-headers/stdalign.texi
lib/stdalign.in.h
m4/stdalign.m4
modules/alignalloc
modules/alignasof [new file with mode: 0644]
modules/alignasof-tests [new file with mode: 0644]
modules/alignof
modules/argp
modules/crypto/md4-buffer
modules/crypto/md5-buffer
modules/crypto/sha1-buffer
modules/crypto/sha256-buffer
modules/crypto/sha512-buffer
modules/crypto/sm3-buffer
modules/fts
modules/rawmemchr
modules/relocatable-prog-wrapper
modules/stdalign
modules/stdalign-tests
modules/stddef-tests
modules/sys_socket