Article View: muc.lists.netbsd.tech.kern
Article #47Re: Do all -current compilers support C23 typed enum syntax?
From: Chris Hanson
Date: Fri, 04 Dec 2026 03:17
Date: Fri, 04 Dec 2026 03:17
36 lines
3693 bytes
3693 bytes
On Dec 3, 2026, at 6:43 PM, Taylor R Campbell <riastradh@NetBSD.org> wrote: > >> Date: Thu, 03 Dec 2026 20:30:57 -0500 >> From: Greg Troxel <gdt@lexort.com> >> >> Chris Hanson <cmhanson@eschatologist.net> writes: >> >>> It sounds like this is the approach I should take in what I'm >>> hacking on in order to enable compilation in older language modes. >> >> I think what's appropriate is for you to propose specific changes to >> the existing rules to core@ and then follow what core@ decides. > > Is this for code in NetBSD, or code that runs on NetBSD? I wasn't > clear from the original question. I think what Greg said is reasonable, once I actually have something more concrete to share I can bring the language feature request to core. I’m hacking on a prototype of the IPC mechanism I mentioned a few days ago. There’s not actually much need for this language feature in any public API, only in a debugging function and in the syscalls used in the library implementation. So this would be for public headers. But given the issues that’ve been raised, if I do propose the language feature be supported, I’d only suggest it be used behind a macro to maintain the headers’ C99 compatibility. -- Chris -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID:
<66950501-7D97-4986-92A9-2002330DF8D1@eschatologist.net>Path:
mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-mo.newsdeef.eu!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.szaf.org!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mailReferences:
<20261204024317.C5FCA84DD6@mail.netbsd.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-mo.newsdeef.eu!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.szaf.org!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail From: Chris Hanson <cmhanson@eschatologist.net> Newsgroups: muc.lists.netbsd.tech.kern Subject: Re: Do all -current compilers support C23 typed enum syntax? Date: Thu, 3 Dec 2026 19:17:41 -0800 Organization: Newsgate at muc.de e.V. Sender: tech-kern-owner@NetBSD.org Approved: news-admin@muc.de Distribution: world Message-ID: <66950501-7D97-4986-92A9-2002330DF8D1@eschatologist.net> References: <20261204024317.C5FCA84DD6@mail.netbsd.org> MIME-Version: 1.0 (Mac OS X Mail 16.0 \(3901.200.71.1.16\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2"; logging-data="99841"; mail-complaints-to="news-admin@muc.de" Authentication-Results: mail.netbsd.org (amavisd-new); dkim=pass (2048-bit key) header.d=eschatologist.net X-Sender-Id: dreamhost|x-authsender|cmhanson@eschatologist.net X-Sender-Id: dreamhost|x-authsender|cmhanson@eschatologist.net X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|cmhanson@eschatologist.net X-MailChannels-Auth-Id: dreamhost X-Descriptive-Dime: 2d2419b326dd6818_1796354272441_3067030317 X-MC-Loop-Signature: 1796354272441:463009870 X-MC-Ingress-Time: 1796354272441 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eschatologist.net; s=dreamhost; t=1796354272; bh=bdw2nWv+kXbnoXyzVR6vfEgK0N25iCTfcR0R0Vuk4TQ=; h=Content-Type:Subject:From:Date:Cc:Content-Transfer-Encoding:To; b=kP5xulQi2rrm2Hq/1ycl/qsc0/o+ogYwVWMgrWLN1rRxsaTbLc9+BHLOmwg0SWkXk RYib7yX8jGheQHFD0BAiqasdeMaggtl5GTX56XjF6GQD3TaTvUsjMghBnX7TZy8M/L bJYLXL/2VgOqdzOGw27VL2bfrmcX5j821wYO1dXlgfGry2sOsk95ZyrdZSwXWrrYCE yF9Mt8OHYeM4Mzz6qfJROQLDrlgJKntYlb0YYxuZfATatkFhMeIe0Ku0ZOqTUQUVOm xZE1WcevQ3P3fZ+YC37VDBzF+0EvFKhotLrJe7Lr8hwAuq1kw8uFG7lOrcB8ZJnFbV TicFRQdL7HsGQ== In-Reply-To: <20261204024317.C5FCA84DD6@mail.netbsd.org> Precedence: bulk X-Newsgate-Id: f02c70b8849f+ X-No-Archive: Yes