Path: csiph.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Tim Rentsch
Newsgroups: comp.lang.c
Subject: Re: _BitInt(N)
Date: Sun, 21 Dec 2025 22:24:40 -0800
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <86wm2frq3b.fsf@linuxsc.com>
References: <10dajlh$ko3c$1@dont-email.me> <10g1qq9$2f8lb$4@dont-email.me> <10g28gm$2mf9s$1@dont-email.me> <10g2f2d$2oufq$1@dont-email.me> <10g2m3v$2s5sa$1@dont-email.me> <10g53au$3onvh$1@dont-email.me> <10g58pa$3r273$1@dont-email.me> <10g6bpp$60nh$1@dont-email.me> <10g6qek$bfrp$1@dont-email.me> <10g742m$ev96$2@dont-email.me> <10g779l$h980$1@dont-email.me> <10g7aci$icq7$1@dont-email.me> <10g7hm2$lpsu$1@dont-email.me> <87y0nm7yru.fsf@example.invalid> <10gl6jq$3htol$9@dont-email.me> <10gm4l9$2302c$1@dont-email.me> <10gmhn1$10oh3$1@solani.org> <87o6og31e7.fsf@example.invalid> <10gosdg$33du5$4@dont-email.me> <86ldj3tvq9.fsf@linuxsc.com> <87pl8ftmkf.fsf@example.invalid>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Date: Mon, 22 Dec 2025 06:24:46 +0000 (UTC)
Injection-Info: dont-email.me; posting-host="a7f5d1e51a9a8827e6b0e0c25bf5c54b"; logging-data="3477400"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+cGZ4Xo4BYzXTBkfAWSXhe3aebRRnp7wI="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:mUZvtEr5XJjluk8WC0N2LfFmEgU= sha1:Z9lSGJ1otVXBFOGeum2q6bJlNzk=
Xref: csiph.com comp.lang.c:395874
Keith Thompson writes:
> Tim Rentsch writes:
>
>> Richard Heathfield writes:
>>
>>> On 02/12/2025 23:33, Keith Thompson wrote:
>
> [...]
>
>>>> But trigraphs have been removed in C23.
>>>
>>> Then so, in some mainframe environments, have curly braces. I suppose
>>> their fix will be to not adopt C23.
>>
>> Curly braces are still available by means of the digraphs <% and %>.
>
> True, and that's probably good enough, but digraphs aren't recognized
> in string literals, character constants, header names, or comments.
Comments are irrelevant because they aren't translated; if someone
wants to use trigraphs (or digraphs) for curly braces inside a
comment they are perfectly free to do so.
Header names can be handled by copying or linking the file with a
new name, where the new name has <% and %> in place of curly braces.
String literals and character constants are a mild inconvenience,
but nothing more than that - just four #define of symbols with
appropriate values. Once those values are determined it should be
straightforward to effect the necessary changes programmatically.