Re: [PATCH] c: Implement C23 nullptr (N3042)

2022-08-24 Thread Marek Polacek via Gcc-patches
On Mon, Aug 15, 2022 at 04:03:13PM -0400, Jason Merrill wrote: > On 8/13/22 14:35, Marek Polacek wrote: > > This patch implements the C23 nullptr literal: > > , which is > > intended to replace the problematic definition of NULL which migh

Re: [PATCH] c: Implement C23 nullptr (N3042)

2022-08-15 Thread Jason Merrill via Gcc-patches
On 8/13/22 14:35, Marek Polacek wrote: This patch implements the C23 nullptr literal: , which is intended to replace the problematic definition of NULL which might be either of integer type or void*. Since C++ has had nullptr for over a

Re: [PATCH] c: Implement C23 nullptr (N3042)

2022-08-15 Thread Joseph Myers
On Sat, 13 Aug 2022, Marek Polacek via Gcc-patches wrote: > This patch also defines nullptr_t in . I'm uncertain about > the __STDC_VERSION__ version I should be checking. Also, I'm not We're using defined (__STDC_VERSION__) && __STDC_VERSION__ > 201710L until the final version for C23 is sett

[PATCH] c: Implement C23 nullptr (N3042)

2022-08-13 Thread Marek Polacek via Gcc-patches
This patch implements the C23 nullptr literal: , which is intended to replace the problematic definition of NULL which might be either of integer type or void*. Since C++ has had nullptr for over a decade now, it was relatively easy to ju