Article View: comp.lang.c
Article #670Re: Taming The Switch-Statement
From: David Brown
Date: Thu, 22 Oct 2026 06:57
Date: Thu, 22 Oct 2026 06:57
19 lines
2314 bytes
2314 bytes
On 21/10/2026 22:02, Chris M. Thomasson wrote: > On 10/21/2026 5:17 AM, David Brown wrote: > [...] > > *_t intrudes into POSIX. I don't program for POSIX, so I don't care. The same applies to most code that is used in connection with FreeRTOS, or LWIP. (Of course there will be some overlap - bits of code that are intended to run on a microcontroller but tested with code running native on a PC.) I don't know if the "_t" convention for type identifiers started with POSIX, but it has certainly far outgrown POSIX. And I think the smart folks behind POSIX know this, and will not assume that just because they pick a new type name ending in _t, it will not conflict with some user code. As C doesn't have namespaces, there is always a risk of conflicting names - you just have to try to avoid clashes in things you are likely to see.
Technical Details
Message-ID:
<11bcc4o$jt81$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<119qf6l$2rmg3$1@dont-email.me> <11b6224$2ejik$1@dont-email.me> <11b774o$2m8c9$3@dont-email.me> <11b7k22$2v8e5$1@dont-email.me> <11b8f5h$67l$1@reader2.panix.com> <11baah2$3te3v$1@dont-email.me> <11bb5ou$8nfg$2@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: David Brown <david.brown@hesbynett.no> Newsgroups: comp.lang.c Subject: Re: Taming The Switch-Statement Date: Thu, 22 Oct 2026 08:57:28 +0200 Organization: A noiseless patient Spider Lines: 19 Message-ID: <11bcc4o$jt81$1@dont-email.me> References: <119qf6l$2rmg3$1@dont-email.me> <11b6224$2ejik$1@dont-email.me> <11b774o$2m8c9$3@dont-email.me> <11b7k22$2v8e5$1@dont-email.me> <11b8f5h$67l$1@reader2.panix.com> <11baah2$3te3v$1@dont-email.me> <11bb5ou$8nfg$2@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 22 Oct 2026 06:57:29 +0000 (UTC) Injection-Info: dont-email.me; logging-data="652545"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18FYDRFF/mMc2c51StckfQl37gDjQHpROY="; posting-host="2f8d23f3daf5dbc8aaf1ed14c9b6876a" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:Jms8Kh7sdX2Cl77+0rVAs1nOoWg= sha256:Dk/Mlbj+1eJ/YAv82JioO/IC4bkE1u/L64m7oBcMZ3o= sha1:3XeWuWhjylWwmdiJLjRgoDtWDIs= sha256:Z5RPibIiaRl2/2xKigRUcs68bAB6ghM03rp4dP4ZL/M= Content-Language: en-GB, nb-NO In-Reply-To: <11bb5ou$8nfg$2@dont-email.me>