Subject: Re: goto netbsd
To: None <netbsd-advocacy@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: netbsd-advocacy
Date: 09/04/2002 21:03:06
In article <Pine.LNX.4.43.0209041233020.3105-100000@pilchuck.reedmedia.net>,
Jeremy C. Reed <reed@reedmedia.net> wrote:
>On Wed, 4 Sep 2002 collver1@attbi.com wrote:
>
>> # from NetBSD 1.5.3
>>
>> $ find /usr/src -name '*.c' | xargs grep goto | wc -l
>>    27381
>
>And your point is?
>
>Do you have specific examples why the gotos are good or bad? (And do you
>have patches to improve as needed?)
>
>And why is this on the advocacy mailing list?
>

I expect most of these are in the kernel where goto use is encouraged
to avoid code duplication in the error cleanup paths of various
functions/syscalls.

christos