public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Gary Jennejohn <garyj@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH V2] Add the Harris QUAD100HD AMCC 405EP-based board.
Date: Mon, 28 Apr 2008 11:40:27 +0200	[thread overview]
Message-ID: <20080428114027.1236c138@peedub.jennejohn.org> (raw)
In-Reply-To: <200804271407.39875.sr@denx.de>

On Sun, 27 Apr 2008 14:07:39 +0200
Stefan Roese <sr@denx.de> wrote:

> On Saturday 26 April 2008, Wolfgang Grandegger wrote:
> > > Please use only one coding style in one file. So either:
> > >
> > > 	func();
> > >
> > > or
> > >
> > > 	func ();
> > >
> > > Since this file mostly consists of the func() style I suggest you switch
> > > to this one completely.
> >
> > Do we really have the choice?
> 
> I definitely think so. I am aware of the coding style rule set be Wolfgang to 
> use the "func ()" style. But I never use this style in the files I write from 
> scratch. This is because I am also doing a lot of Linux development, and here 
> the "func()" style is required/preferred. And if you take a look at the code 
> posted by other developers, most of it uses the "func()" style. It definitely 
> seems to be more common nowadays. At least from my experience.
> 

So now I'm totally confused!  As Wolfgang Denk wrote in his followup:

The README says:

    All contributions to U-Boot should conform to the Linux kernel
    coding style; see the file "Documentation/CodingStyle" and the script
    "scripts/Lindent" in your Linux kernel source directory.  In sources
    originating from U-Boot a style corresponding to "Lindent -pcs" (adding
    spaces before parameters to function calls) is actually used.

The Linux coding style, as you pointed out,  is to _not_ use spaces
between the function name and the first brace, i.e. "foo()" and not
"foo ()".

So WTF?

---
Gary Jennejohn
*********************************************************************
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
*********************************************************************

  parent reply	other threads:[~2008-04-28  9:40 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-25 16:04 [U-Boot-Users] [PATCH V2] Add the Harris QUAD100HD AMCC 405EP-based board Gary Jennejohn
2008-04-26  6:22 ` Stefan Roese
2008-04-26 10:18   ` Gary Jennejohn
2008-04-27 12:01     ` Stefan Roese
2008-04-28  9:32       ` Gary Jennejohn
2008-04-28  9:40         ` Stefan Roese
2008-04-28 10:05         ` Wolfgang Denk
2008-04-28 11:11           ` Gary Jennejohn
2008-04-26 13:11   ` Wolfgang Grandegger
2008-04-27 12:07     ` Stefan Roese
2008-04-27 21:41       ` Wolfgang Denk
2008-04-28  9:45         ` Stefan Roese
2008-04-28  9:40       ` Gary Jennejohn [this message]
2008-04-27 21:37     ` Wolfgang Denk

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=20080428114027.1236c138@peedub.jennejohn.org \
    --to=garyj@denx.de \
    --cc=u-boot@lists.denx.de \
    /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