Deutsch   English   Français   Italiano  
<vpl2on$24m0q$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Ar Rakin <rakinar2@onesoftnet.eu.org>
Newsgroups: comp.lang.c
Subject: Re: Which code style do you prefer the most?
Date: Wed, 26 Feb 2025 00:39:19 +0600
Organization: A noiseless patient Spider
Lines: 43
Message-ID: <vpl2on$24m0q$1@dont-email.me>
References: <vpkmq0$21php$1@dont-email.me> <vpl2k4$24fmt$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 25 Feb 2025 19:39:20 +0100 (CET)
Injection-Info: dont-email.me; posting-host="f56c6d46c610cdb54bbc2d41e3b735c1";
	logging-data="2250778"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/n35aeqEUj5zpRphoVELDMY6bLqww/5nc="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:yAhb7yicpbFjXvWwaNzkwgobgbU=
Content-Language: en-US
In-Reply-To: <vpl2k4$24fmt$1@dont-email.me>
Bytes: 2288

On 2/26/25 12:36 AM, John McCue 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.
> 
> <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
> 

Interesting. The OpenBSD code style seems like a mixture of both the GNU 
and Linux styles. Good to know!