Liste des Groupes | Revenir à cl c |
Ar Rakin <rakinar2@onesoftnet.eu.org> wrote:Interesting. The OpenBSD code style seems like a mixture of both the GNU and Linux styles. Good to know!Hello there,GNU Style for me.
>
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?
<snip>
3. Other Styles?BSD ? Not sure how different it is from Linux, but OpenBSD
has a detail write up in manual style(9):
https://man.openbsd.org/style
FWIW, people really should learn to use indent(1), will help
with many of these arguments :) For example:
GNU Style for use with BSD indent(1), File .indent.pro, but
BSD indent(1) may format it a bit different that GNU indent(1).
-i2
-bl
-lp
-nce
GNU Style for use with GNU indent(1), File .indent.pro
--gnu-style
--dont-format-comments
--no-space-after-function-call-names
--dont-break-procedure-type
--line-length78
--case-indentation2
Thank you.your welcome
Les messages affichés proviennent d'usenet.