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: g.vlaev@xxxxxxxxxx (Georgi Vlaev)
  • Date: Fri, 12 Oct 2001 09:51:42 +0300



Wmesto izlishno da sporite po toq vapros prosto si pusnete 1 search w 
/usr/src/linux
izpolzwa se dostatychno w coda na 

kernel
wsichki <arch> 
drivers
....

Za pisaneto na HW driver-i ne se iziskwa osobena algoritmika, a prosto 
spazwane na prawila.
Operatora goto tam e dosta polezen.

if( !SUCCEDED(1)) 
e udachen primer , osobeno ako trqbwa da napriwash 10 takiwa operacii.

> > From: Àíãåë Âúëêîâ <whitefang@xxxxxx>
> > Date: Thu, 11 Oct 2001 19:23:06 +0300
> >
> > Heh
> > Ami vseki si ima style :)
>
> [del]
>
> > 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;
>
> Ama che kod, ama che chudo! Abe hora, vie za buleva algebra ne ste li
> chuwali? Ami ako trjabwa formalno da se *dokazhe*, che dadena programa
> udowoletvorjawa zadadena specifikacija? Goto razbiwa *logikata* na
> programata i e opasen operator! Towa obache ne kazwa, che ne trjabwa da
> se izpolzwa. Ako si go hareswate, izpolzwajte si go. Samo deto ne
> pishete 1000+ reda kod za da ni ubezhdawate kolko e hubaw goto i kak
> sweta ne mozhe bez nego.
> ============
> Jordan (at home)
> http://www.cse.dmu.ac.uk/~jordan/
>
> ===========================================================================
> A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
> http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora
===========================================================================
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.