Article View: comp.lang.c
Article #641Re: Taming The Switch-Statement
From: David Brown
Date: Wed, 21 Oct 2026 12:21
Date: Wed, 21 Oct 2026 12:21
27 lines
2761 bytes
2761 bytes
On 21/10/2026 13:33, bart wrote: > On 21/10/2026 12:21, David Brown wrote: >> On 21/10/2026 03:04, bart wrote: > >>> Where does the info come from anyway; does the library export a >>> suitable typedef? In that case you might as well use it. But if not, >>> info must come from elsewhere. >> >> Of course it "exports" the typedef - it is in one of the library's >> headers. > > You could have said that in the first place. So it's not really a choice > then is it? What do you mean? There is an API in "dns.h" that uses typedefs such as "ip_addr_t" and "dns_found_callback". /Obviously/ those typedefs are also included in the header (or other headers included by "dns.h"). This is not something that I should have had to point out. > > Then it makes sense to use what they have provided. > It always makes sense to use the types provided.
Technical Details
Message-ID:
<11baaod$3te3v$2@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> <11arjmc$2qid7$1@dont-email.me> <11at5vi$5vu$1@reader2.panix.com> <11auad0$3no1k$1@dont-email.me> <11aupfl$3ul$1@reader2.panix.com> <11avmfb$55rt$1@dont-email.me> <11b2a6d$131h6$1@dont-email.me> <11b2hr6$15thq$1@dont-email.me> <11b2l06$16mof$1@dont-email.me> <11b2qv0$19h68$1@dont-email.me> <11b35gt$1cn63$2@dont-email.me> <11b557o$1kr9u$1@dont-email.me> <11b56uo$1q18k$5@dont-email.me> <11b6224$2ejik$1@dont-email.me> <11b774o$2m8c9$3@dont-email.me> <11b7k22$2v8e5$1@dont-email.me> <11b7ogt$2m8c9$5@dont-email.me> <11b933e$3h3d0$1@dont-email.me> <11ba78m$3peq3$3@dont-email.me> <11ba7v6$3skdl$1@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: Wed, 21 Oct 2026 14:21:33 +0200 Organization: A noiseless patient Spider Lines: 27 Message-ID: <11baaod$3te3v$2@dont-email.me> References: <119qf6l$2rmg3$1@dont-email.me> <11arjmc$2qid7$1@dont-email.me> <11at5vi$5vu$1@reader2.panix.com> <11auad0$3no1k$1@dont-email.me> <11aupfl$3ul$1@reader2.panix.com> <11avmfb$55rt$1@dont-email.me> <11b2a6d$131h6$1@dont-email.me> <11b2hr6$15thq$1@dont-email.me> <11b2l06$16mof$1@dont-email.me> <11b2qv0$19h68$1@dont-email.me> <11b35gt$1cn63$2@dont-email.me> <11b557o$1kr9u$1@dont-email.me> <11b56uo$1q18k$5@dont-email.me> <11b6224$2ejik$1@dont-email.me> <11b774o$2m8c9$3@dont-email.me> <11b7k22$2v8e5$1@dont-email.me> <11b7ogt$2m8c9$5@dont-email.me> <11b933e$3h3d0$1@dont-email.me> <11ba78m$3peq3$3@dont-email.me> <11ba7v6$3skdl$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 21 Oct 2026 12:21:34 +0000 (UTC) Injection-Info: dont-email.me; logging-data="4110463"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Mei1apjqNOvbJJXVDNDXpEMWxwMRZeJs="; posting-host="f78456a6491f23b3f53847b5a3287905" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:CjmmeP2NhmbN1LBkIdQGmjI4M9c= sha256:3GbsVscMpoDmBQk7sY5Z7ZjNshWHzNWmLwIUuJbNBqw= sha1:BGAgNZFqxocuB5DZMIRYRsYq43s= sha256:7c4DZthWkzDck9VCgrySOJ/TkHZ3vrnIhLCb13vW1FA= In-Reply-To: <11ba7v6$3skdl$1@dont-email.me> Content-Language: en-GB, nb-NO