[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2] Define alignof_slot using _Alignof when using C11 or newe

From: Paul Eggert
Subject: Re: [PATCH v2] Define alignof_slot using _Alignof when using C11 or newer
Date: Sun, 15 Jan 2023 11:52:31 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2

On 2023-01-14 17:51, Paul Eggert wrote:

We already have two copies of that stuff elsewhere (in lib/stdalign.in.h and m4/stdalign.m4), for reasons that currently escape me.

To try to address that in an upward-compatible way, I installed the attached. This shrinks the number of copies of that code down to one. The basic idea is to prefer C23 semantics in apps and the rest of Gnulib by using the new alignasof module, whereas the existing stdalign module is now for C11/C17 compatibility and is now deprecated.

Attachment: 0001-alignasof-new-module.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]