Suggested coding style change for functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2013-09-23 at 10:21 +0200, David Henningsson wrote:
> On 09/20/2013 11:23 AM, Peter Meerwald wrote:
> > I think both coding styles are sane and I suggest to NOT convert to a new 
> > style
> > 
> > the 'other projects' is Gnome?
> 
> Gnome, Linux Kernel, FluidSynth (as mentioned previously).
> 
> > there is not the ONE style and it really depends on your personal 
> > situation which styles you work more often with -- what's good for one 
> > contributer might not be for another
> 
> Out of curiousity, do you know any bigger open source projects that do
> the "no newline" style? I don't think I've ever seen one except for
> PulseAudio.

Quoting the CODING_STYLE file of systemd:

    - Try to use this:

          void foo() {
          }

      instead of this:

          void foo()
          {
          }

      But it's OK if you don't.

-- 
Tanu



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux