Sujet : Re: Which code style do you prefer the most?
De : jmccue (at) *nospam* reddwf.jmcunx.com (John McCue)
Groupes : comp.lang.cDate : 25. Feb 2025, 19:36:52
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vpl2k4$24fmt$1@dont-email.me>
References : 1
User-Agent : tin/2.6.3-20231224 ("Banff") (OpenBSD/7.6 (i386))
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.
<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/styleFWIW, 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
-- csh(1) - "An elegant shell, for a more... civilized age." - Paraphrasing Star Wars