Re: AC Codin' Style[ was lug-bg: Kernel 2.4.11]
- Subject: Re: AC Codin' Style[ was lug-bg: Kernel 2.4.11]
- From: boukov@xxxxxxxxxxx (Petko Boukov)
- Date: Fri, 12 Oct 2001 04:10:11 -0700
('binary' encoding is not supported, stored as-is)
Nqma majtap, az si go misleh da predlozha patch-ove s mahnati goto-ta,
ama ne si e rabota da pipash neshto raboteshto, samo za da go pravish
po-krasivo: 'If it ain't broken, don't fix it.'
Blagodarq vi, olekna mi che i BSD-tata bili na syshtiq hal :))
Petko
> George Danchev <danchev@xxxxxxxxx> lug-bg@xxxxxxxxxxxxxxxxxx Re: AC Codin' Style[ was lug-bg: Kernel 2.4.11]Date: Fri, 12 Oct 2001 12:46:54 +0300
>Reply-To: lug-bg@xxxxxxxxxxxxxxxxxx
>
>On Friday 12 October 2001 12:03, you wrote:
>> On Thu, 11 Oct 2001, Petko Boukov wrote:
>> > Syglasen sym, primeryt ti e udachen. V takyv tochno sluchaj goto
>> > pesti dublirane na kod. Az nqmashe da napravq usloviqta vlozheni, no
>> > shtqh da dubliram RELEASE-ite:
>> >
>> > if (!SUCCEEDED(1))
>> > return FAILED;
>> > if (!SUCCEEDED(2)) {
>> > RELEASE(1);
>> > return FAILED;
>> > }
>> > if (!SUCEEDED(3)) {
>> > RELEASE(2);
>> > RELEASE(1);
>> > return FAILED;
>> > }
>> > return SUCCESS;
>> >
>> > Tova obache haresva li ti?
>> >
>> > $ find /usr/src/linux-2.4.10 -type f -name "*.c" -exec grep goto {} \; |
>> > wc -l 13232
>> >
>> > Nqmam podryka BSD kernel, ama ot tova, koeto sym vidql v TCP/IP
>> > Illustrated vol.2 v tehniq tcp/ip stack ne slagat goto za shtqlo i
>> > neshtqlo.
>> >
>> > Petko
>> >
>> :) az imam :
>>
>> root@freebsd:~# find /usr/src/sys -type f -name "*.c" -exec grep goto {}
>> \; | wc -l 5564
>>
>> Koeto pak ne e malko, ponezhe prakticheski source na fbsd kernela e 71 mb
>> ( 4.4 release, ako ne se luzha), a linux-2.4.11 e nqkude okolo 100-110 mb,
>> kato razlikata e osnovno v driveri, v koito goto se polzva dosta chesto.
>korekciq ... dori e pove4e, 2.4.10 e 160 MB source , i se polu4ava 4e "goto"
>/MB se sreshta 82.7 pyti v linux-2.4.10 , a v fbsd-4.4 kernel - 78,3... i
>kato se vzeme predvid 4e v linux ima pove4e hw-drivers (deto se sreshta
>"goto") ste izleze 4e v fbsd kernel gustotata na "goto" e po-golqma...
>A bsd folks trqbva da se slushat ... linux trqbva da se sravnqva s bsd
>(sravnqvat se sypostavimi nesta) , kvi sa tiq sravneniq s Win .... :)
>Ako vse oste nqkoj misli 4e Alan Cox e prekalil s "goto"-tata , neka da
>edit-va sourceto, to nali za tova e otvoreno :)
------------------------------------------------------------
--== Sent via Deja.com ==--
http://www.deja.com/
===========================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora
|