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.0 required=5.0 tests=T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 868 invoked from network); 14 May 2023 10:26:19 -0000 Received: from 9front.inri.net (168.235.81.73) by inbox.vuxu.org with ESMTPUTF8; 14 May 2023 10:26:19 -0000 Received: from one.net.tachibana-labs.org ([78.141.198.89]) by 9front; Sun May 14 06:20:42 -0400 2023 Received: from [127.0.0.1] (cpc99362-croy26-2-0-cust24.19-2.cable.virginm.net [80.195.49.25]) by one.net.tachibana-labs.org (OpenSMTPD) with ESMTPSA id d42a1b04 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sun, 14 May 2023 10:20:36 +0000 (UTC) Date: Sun, 14 May 2023 11:20:35 +0100 From: mia soweli To: 9front@9front.org, ori@eigenstate.org User-Agent: K-9 Mail for Android In-Reply-To: References: Message-ID: <90330A14-7497-4989-8B43-EDE22B1C881A@tachibana-labs.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: dependency-aware standard JSON over ORM GPU metadata Subject: [9front] =?US-ASCII?Q?Re=3A_=5B9front=5D_=5BPATCH=5D_cc=3A_support_const?= =?US-ASCII?Q?_and_restrict_inside_array_declarations?= Reply-To: 9front@9front.org Precedence: bulk i came across code like this updating the netsurf port=2E i think it was in= libcss=2E On 14 May 2023 06:25:45 BST, ori@eigenstate=2Eorg wrote: >Quoth mia soweli : >> this allows c23 style array declarations (see c23 draft section 6=2E7= =2E6), >> with type qualifiers inside the brackets=2E >> for example: >>=20 >> const int list[restrict 4]; >> int list[const 4]; >> int list[const restrict 4]; >> int list[volatile 4]; >> int list[noret 4]; /* we may not want to allow this */ >>=20 >> they are ignored as with other uses of const, restrict, and volatile=2E >> it does not allow >>=20 >> int list[static 4]; >>=20 >> which is also allowed in c23=2E >>=20 > >I'm not sure why this is useful=2E Is there some specific code >that wants this? >