From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 26241 invoked from network); 23 Nov 2022 04:31:59 -0000 Received: from second.openwall.net (193.110.157.125) by inbox.vuxu.org with ESMTPUTF8; 23 Nov 2022 04:31:59 -0000 Received: (qmail 9481 invoked by uid 550); 23 Nov 2022 04:31:54 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 9412 invoked from network); 23 Nov 2022 04:31:53 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=/Bi838rnyPMyeTllAUGEulvu+pVs24ohOvoM3nW7t1U=; b=BZjYOM8JTJvhRiBd4g3oNH4NgrLLxJIBr05Bv0kohWLIJnkxfzrXF3hw41t/BtIVUQ +d8Ia1zMufWejGYTp1MHS9qvoz1UQIbhYKqbG41nBxztmJvuZoZ26E0P8c8GC/c950yZ zfec5JGIS6Lei5P2eO6NXUjG3bWlOpnV5+39lIGTRpY4op1ji06gg5o14frre0UgW8G7 gMNLyhmisXn9WP8lQIQKPS6IG1yrsjZtxYvh6ub8iGc2arGCxU5yPgFG/TMs9m1Fy9QH JSTwhQNeylDXfZJV8zEhAJxUdrouym+wKfpdQYSRyu63oKZs4kP55J7TKftFrzxm6CwM cC5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/Bi838rnyPMyeTllAUGEulvu+pVs24ohOvoM3nW7t1U=; b=LTepsHaptCt+1ZSWyPwPWhFL8qknQ9yuSAxYvZCa/6RLs7iJLjIjvWUZKyykXdT7rF pF4e76qPlmhtQCyDvTYqXL5+tIISU5kUi03QBhr8/XWb5V0AZoS0z4Qs8hrjV2/rkKpN I2zGNs2T6Gp8dHcpR00UDNdQlgPcYXHvBx1V3SzjJX1z1XHT7XveTwO8Qf2A+afdEbsF Y7JmIK3wbCjiDiOf/bvJ/j2k4sU2aI/zvW77/BhCPdOwn9+QfrZIM7WIpJx7H4VvB0gq FM2udm/+UwM2ZnxrlOrDsCxoLp97Lp0bYkoDHyzjsg0qzAVSOaYDWTqu8FWGO0Q4Wxun oItQ== X-Gm-Message-State: ANoB5pmyGiBz1vEXIDv/ws60KGexlCHPKttI/NcuLfHcjA4HnQoyDYz+ Ll2v4af44IEmsrRHzOy6/ylAglwSug48bNBpfYZ71t+oWNw= X-Google-Smtp-Source: AA0mqf5APYTNXkly1t7yvlgYuT2zumUAFvEZdrjyhcuCMwWTVCptmncdvpok4Xtp9ADa2tqCYY1a7C9Ff5DCYRlT/gM= X-Received: by 2002:ab0:6994:0:b0:411:502d:7c67 with SMTP id t20-20020ab06994000000b00411502d7c67mr14781887uaq.29.1669177900851; Tue, 22 Nov 2022 20:31:40 -0800 (PST) MIME-Version: 1.0 References: <20220923162518.56284329@inria.fr> <20221121220625.39f595fb@inria.fr> In-Reply-To: <20221121220625.39f595fb@inria.fr> From: =?UTF-8?B?572X5YuH5YiaKFlvbmdnYW5nIEx1byk=?= Date: Wed, 23 Nov 2022 12:31:27 +0800 Message-ID: To: musl@lists.openwall.com Cc: Reini Urban Content-Type: multipart/alternative; boundary="000000000000d8e78905ee1bc39d" Subject: Re: [musl] C23 implications for C libraries --000000000000d8e78905ee1bc39d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I have concern about the macros guard with __cplusplus and __STDC_VERSION__ #if (__cplusplus >=3D 201103L) || (__STDC_VERSION__ >=3D 202311L) #define NULL nullptr #elif defined(__cplusplus) #define NULL 0L /* Any of 0, 0L, 0LL as wide as a void* */ #else #define NULL ((void*)0) #endif I think all of these should be guarded with #if (defined(__cplusplus) && (__cplusplus >=3D 201103L)) || (defined(__STDC_VERSION__) && (__STDC_VERSION__ >=3D 202311L)) this is safer to avoid -Wundef complain it On Tue, Nov 22, 2022 at 5:11 AM J=E2=82=91=E2=82=99=E2=82=9B Gustedt wrote: > > Reini, > > on Mon, 21 Nov 2022 12:46:37 +0100 you (Reini Urban > ) wrote: > > > The last line has a typo: > > > > https://icube-forge.unistra.fr/icps/c23-library/-/blob/main/README.md > > > > besearch_s =3D> bsearch_s > > thanks! if that were the only thing that is still missing =E2=80=A6 > > BTW, there is now a html page that is easier to access and to bookmark > > https://gustedt.gitlabpages.inria.fr/c23-library/ > > Thanks > J=E2=82=91=E2=82=99=E2=82=9B > > -- > :: INRIA Nancy Grand Est ::: Camus ::::::: ICube/ICPS ::: > :: :::::::::::::::::::::: gsm France : +33 651400183 :: > :: ::::::::::::::: gsm international : +49 15737185122 :: > :: http://icube-icps.unistra.fr/index.php/Jens_Gustedt :: -- =E6=AD=A4=E8=87=B4 =E7=A4=BC =E7=BD=97=E5=8B=87=E5=88=9A Yours sincerely, Yonggang Luo --000000000000d8e78905ee1bc39d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I have concern about the macros guard with __cplusplus and= __STDC_VERSION__

#if (__cplusplus >=3D 201103L) || (__STDC_VERS= ION__ >=3D 202311L)
#define NULL nullptr
#elif defined(__cplusplus= )
#define NULL 0L =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0/* Any= of 0, 0L, 0LL as wide as a void* */
#else
#define NULL ((void*)0)#endif


I think all of these should be guarded with
#if (def= ined(__cplusplus) && (__cplusplus >=3D 201103L)) || (defined(__S= TDC_VERSION__) && (__STDC_VERSION__ >=3D 202311L))
this is safer to avoid=C2=A0-Wundef complain it

On Tue, = Nov 22, 2022 at 5:11 AM J=E2=82=91=E2=82=99=E2=82=9B Gustedt <jens.gustedt@inria.fr> wrote:
>=
> Reini,
>
> on Mon, 21 Nov 2022 12:46:37 +0100 you (Rei= ni Urban
> <reini.urban@g= mail.com>) wrote:
>
> > The last line has a typo:
= > >
> > https://icube-forge.unistra.fr/icps/c23-libra= ry/-/blob/main/README.md
> >
> > besearch_s =3D> b= search_s
>
> thanks! if that were the only thing that is still = missing =E2=80=A6
>
> BTW, there is now a html page that is eas= ier to access and to bookmark
>
> https://gustedt.gitlabpages.inria.fr/c23-l= ibrary/
>
> Thanks
> J=E2=82=91=E2=82=99=E2=82=9B
= >
> --
> :: INRIA Nancy Grand Est ::: Camus ::::::: ICube/IC= PS :::
> :: :::::::::::::::::::::: gsm France : +33 651400183 =C2=A0 = ::
> :: ::::::::::::::: gsm international : +49 15737185122 ::
>= ; :: http:/= /icube-icps.unistra.fr/index.php/Jens_Gustedt ::



--
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=E6=AD=A4=E8=87=B4
=E7=A4=BC
=E7=BD= =97=E5=8B=87=E5=88=9A
Yours
=C2=A0 =C2=A0 sincerely,
Yonggang Luo<= div>
--000000000000d8e78905ee1bc39d--