[pulseaudio-discuss] Suggested coding style change for functions

Tanu Kaskinen tanu.kaskinen at linux.intel.com
Mon Sep 23 01:37:33 PDT 2013


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



More information about the pulseaudio-discuss mailing list