Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Lawrence D'Oliveiro Newsgroups: comp.lang.c Subject: Re: Fixing a sample from K&R book using cake static analyser Date: Mon, 24 Jun 2024 00:31:25 -0000 (UTC) Organization: A noiseless patient Spider Lines: 10 Message-ID: References: <20240623022343.ec355c69a3d9eb03ad4a50f2@gmail.moc> <20240624015940.be2546d45cc185a330bdee55@gmail.moc> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Mon, 24 Jun 2024 02:31:25 +0200 (CEST) Injection-Info: dont-email.me; posting-host="3048fea01d51f9337586ac8e02824e6c"; logging-data="624371"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ZCI6klqWi2yqGoOmNABTw" User-Agent: Pan/0.158 (Avdiivka; ) Cancel-Lock: sha1:VCDN9upPAvO/MNX+ulgpulWks44= Bytes: 1516 On Mon, 24 Jun 2024 01:59:40 +0300, Anton Shepelev wrote: > I thought the challenge was to fix it as a single function. I don’t know of any “challenge”, I just saw some code that could be improved, and so I improved it. I am pretty sure that disposal of table entries would be needed as a separate function in a more complete lookup-table implementation, which is why I factored it out at this point.