From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4DCA6B19.70808@domain.hid> Date: Wed, 11 May 2011 12:55:21 +0200 From: Gilles Chanteperdrix MIME-Version: 1.0 References: <1183078C0D064042B3AD2D03E3859EF174E31A@AREXCH02.mra.roland-man.biz> <1303849652.1961.7.camel@domain.hid> <1183078C0D064042B3AD2D03E3859EF174E3E4@domain.hid> <1183078C0D064042B3AD2D03E3859EF174E43D@AREXCH02.mra.roland-man.biz> <1303940558.1932.33.camel@domain.hid> <1183078C0D064042B3AD2D03E3859EF174E5BC@AREXCH02.mra.roland-man.biz> <1183078C0D064042B3AD2D03E3859EF174E826@domain.hid> <4DBFE062.3020902@domain.hid> <1183078C0D064042B3AD2D03E3859EF174E87B@AREXCH02.mra.roland-man.biz> <4DC03CE8.4050608@domain.hid> <1183078C0D064042B3AD2D03E3859EF174E92F@AREXCH02.mra.roland-man.biz> <4DC0F4E0.2070707@domain.hid> <1183078C0D064042B3AD2D03E3859EF174EA21@domain.hid> <4DC25C69.5020001@domain.hid> <1183078C0D064042B3AD2D03E3859EF174ECBA@AREXCH02.mra.roland-man.biz> <4DCA52E8.80904@domain.hid> <1305105644.2098.17.camel@domain.hid> <1183078C0D064042B3AD2D03E3859EF179C957@domain.hid> In-Reply-To: <1183078C0D064042B3AD2D03E3859EF179C957@domain.hid> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-help] message pipe message boundaries List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dietmar.schindler@domain.hid Cc: xenomai@xenomai.org On 05/11/2011 12:48 PM, dietmar.schindler@domain.hid wrote: >> From: Philippe Gerum [mailto:rpm@xenomai.org] >> Sent: Wednesday, May 11, 2011 11:21 AM >> ... >> Also, let's avoid constructs like these: >> >>> buf = iovec->iov_base, count = iovec++->iov_len; >> >> Disk space is cheap so we can afford a few more characters per line; >> ... > > Could you please explain what you mean by this? I can imagine to put a few more characters into the line above by changing it to > > buf = iovec->iov_base, count = iovec->iov_len, ++iovec; > > but this would seem to contradict your recommendation below. > >> In short, one executable statement per line is desired, our code should >> have nothing to hide. > > Since the above code line contains only one statement, I assume you mean one assignment-expression, and will do accordingly. > > By the way, what is your convention regarding goto? goto is allowed, but use it only when needed. Meaning: - if there is a way to arrange the control flow without goto and without resorting to boolean flags variables, or to code duplication, do it, do not use goto; - otherwise use goto, choosing a readable label, as the only thing which makes goto readable is the label you choose. -- Gilles.