Liste des Groupes | Revenir à cl c |
On 2025-02-25, John McCue <jmccue@reddwf.jmcunx.com> wrote:Ar Rakin <rakinar2@onesoftnet.eu.org> wrote:>Hello there,>
I've been writing C code for a long time, in different styles, but
always wanted to know which code style most people prefer. This is all
about that question. Which one of the following do you prefer the most?
GNU Style for me.
OP didn't properly characterize GNU style.
>
GNU style is actually something like this:
>
if (flag)
{
switch (state)
{
case 42:
{
state = 73;
break;
}
}
}
else
{
statement;
}
>
Four space indentation, but braces half-indent by two spaces.
Les messages affichés proviennent d'usenet.