Deutsch   English   Français   Italiano  
<v5ctt1$15hrn$3@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Lawrence D'Oliveiro <ldo@nz.invalid>
Newsgroups: comp.lang.c
Subject: Re: Fixing a sample from K&R book using cake static analyser
Date: Mon, 24 Jun 2024 23:01:53 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <v5ctt1$15hrn$3@dont-email.me>
References: <v53sl1$35qt7$1@dont-email.me> <v558hv$3dskb$1@dont-email.me>
	<20240623034624.135@kylheku.com> <87wmmfq4if.fsf@bsb.me.uk>
	<20240624012527.8bbe16b96f5bfca10feadb5c@gmail.moc>
	<87zfrbnsvv.fsf@bsb.me.uk> <v5aeue$j1nj$4@dont-email.me>
	<87ikxyobls.fsf@bsb.me.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 25 Jun 2024 01:01:54 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="250b38e1e4730787d8a829a06e323428";
	logging-data="1230711"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX184Bw4eoCcu33bUuIHJWvmQ"
User-Agent: Pan/0.158 (Avdiivka; )
Cancel-Lock: sha1:tQ8lD7LMjSQzyqPpzUmebgvDeO8=
Bytes: 1605

On Mon, 24 Jun 2024 11:53:51 +0100, Ben Bacarisse wrote:

> Lawrence D'Oliveiro <ldo@nz.invalid> writes:
> 
>> Too many different paths in the control flow, though. I think it’s a
>> good idea to minimize that.
> 
> Your non-solution has more.

My solution only has one major flow of control: in the top and out the 
bottom. Everything else is error checks, and it is quite obvious where 
they all go--through the same cleanup path.