public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Siarhei Siamashka <siarhei.siamashka@nokia.com>
To: "ext Luiz Augusto von Dentz" <luiz.dentz@gmail.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH] Coding style fixes
Date: Mon, 19 Jan 2009 12:00:44 +0200	[thread overview]
Message-ID: <200901191200.44698.siarhei.siamashka@nokia.com> (raw)
In-Reply-To: <2d5a2c100901180711h33c099ddpe7d2ba2d804fa2c4@mail.gmail.com>

On Sunday 18 January 2009 17:11:22 ext Luiz Augusto von Dentz wrote:
> Hi
>
> > And seriously, having "do { } while(0)" for a multiline macro is a must.
>
> Interesting, what does it do that { } doesn't?

By searching in the Internet it is possible to find some rationale for this:
http://vivekkutal.blogspot.com/2006/03/do-while0.html

Anyway, it is part of linux kernel CodingStyle

-- 
Best regards,
Siarhei Siamashka

      reply	other threads:[~2009-01-19 10:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-17 18:40 [PATCH] Coding style fixes Siarhei Siamashka
2009-01-18 15:09 ` Marcel Holtmann
2009-01-18 15:11 ` Luiz Augusto von Dentz
2009-01-19 10:00   ` Siarhei Siamashka [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200901191200.44698.siarhei.siamashka@nokia.com \
    --to=siarhei.siamashka@nokia.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=luiz.dentz@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox