:: Re: [DNG] C source style [was vdev …
Inizio della pagina
Delete this message
Reply to this message
Autore: Hendrik Boom
Data:  
To: dng
Oggetto: Re: [DNG] C source style [was vdev status update in daedalus]
On Thu, Jul 31, 2025 at 10:52:31AM +0200, Didier Kryn wrote:

>     Likewise, I prefer putting *all* openning curly braces on their own
> line, and similarly the closing curly braces. I mean when the curly braces
> enclose instructions; the style is more flexible for array initializers.


I like to have my closing braces directly below my opening braces.
This makes it easier to match them up visually.
My opening braces are at the start of a line, after some indentation.

>
>     Like everybody I use 4 characters for C,


I end up usig 4 characters, too, but split up.
Two spaces of indentation before the curly brace,

-- hendrik