Re: Confused static assertion implementation

2025-11-18 Thread Peter Eisentraut
On 14.11.25 03:13, Thomas Munro wrote: I won't be surprised if Peter (CC'd) already has a patch for this in his C11 incubation branch, but if not, maybe this will be useful. While experimenting with threads and atomics on various systems, I didn't like the way our macros failed in the ancient fa

Re: Confused static assertion implementation

2025-11-14 Thread Thomas Munro
On Fri, Nov 14, 2025 at 6:18 PM Chao Li wrote: > As you added a semi-colon in the line, the one after the empty line can be > deleted, though C allows empty statement, but unnecessary, and may lead to > confusion for code readers. > You missed to replace this pgac_cv__static_assert with the new

Re: Confused static assertion implementation

2025-11-13 Thread Chao Li
> On Nov 14, 2025, at 10:13, Thomas Munro wrote: > > Hi, > > I won't be surprised if Peter (CC'd) already has a patch for this in > his C11 incubation branch, but if not, maybe this will be useful. > > While experimenting with threads and atomics on various systems, I > didn't like the way o