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: boukov@xxxxxxxxxxx (Petko Boukov)
  • Date: Thu, 11 Oct 2001 13:25:47 -0700

 ('binary' encoding is not supported, stored as-is)
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

> windows-1251?b?wO3j5esgwvrr6u7i <whitefang@xxxxxx> lug-bg@xxxxxxxxxxxxxxxxxx Re: AC Codin' Style[ was lug-bg: Kernel 2.4.11]Date: Thu, 11 Oct 2001 19:23:06 +0300
>Reply-To: lug-bg@xxxxxxxxxxxxxxxxxx
[...]
>if( !SUCCEDED(1))     if( SUCCEDED(1)
>     goto fail1     if(SUCCEDED(2))
>if( !SUCCEDED(2)     if(SUCCEDED(3))
>     goto fail2     return SUCCESS;
>if( !SUCCEDED(3)     else {
>     goto fail3;     RELEASE(2);
>     RELEASE(1);
>return SUCCESS;     return FAILED;
>fail3:     RELEASE(2)     }
>fail2:     RELEASE(1)     else {
>fail1:     return FAILED;     RELEASE(1);
>     return FAILED;
>     }
>     else
>     return FAILED;

------------------------------------------------------------
--== 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



 

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

 

линукс за българи
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.