Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

Re: AC Codin' Style[ was lug-bg: Kernel 2.4.11]


  • Subject: Re: AC Codin' Style[ was lug-bg: Kernel 2.4.11]
  • From: danchev@xxxxxxxxx (George Danchev)
  • Date: Fri, 12 Oct 2001 12:46:54 +0300



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 :)


-- 
Greets, 
fr33zb1
===========================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora




 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.