help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Please explain diff between K&R, Linux and GNU c-mode styles...


From: seberino
Subject: Re: Please explain diff between K&R, Linux and GNU c-mode styles...
Date: Fri, 25 Oct 2002 14:42:46 -0700
User-agent: Mutt/1.2.5.1i

Thanks for the description.  I appreciate it.

I can set identation myself with (setq c-basic-offset 3)
but what is the easiest way to get a style with
open bracket on same line *for everything* including functions!!?!!

I want K&R with a slight modification basically.
(Putting "{" in different place for functions seems lame.)

Chris


On Fri, Oct 25, 2002 at 03:02:08PM -0500, Edgar Antonio Luna Díaz wrote:
> seberino@spawar.navy.mil writes:
> 
> > I can't find any description of
> > difference between GNU, K&R and Linux
> > C-mode styles.  Can you please give
> > a 1-2 sentence description of main
> > diff of each?
> This is an off-topic
> 
> GNU: indent 4 or 2 spaces. 
> K&R: 8
> 
> GNU: open bracket is in the next line
> K&R: open bracket is in the same line, except to functions
> declarations.
> 
> Four sentences :P
> 
> 
> -- 
> Edgar Antonio Luna Díaz - http://www.gnulinux.org.mx
> Key Fingerprint=C008 5EAC 5272 AC8C 7589  4821 8B34 6166 8733 8310



-- 
_______________________________________

Dr. Christian Seberino
SPAWAR Systems Center San Diego
Code 2363
49590 Lassing Road, Room A339
San Diego, CA 92152-6147
U.S.A.

Phone: (619) 553-7940
Fax:   (619) 553-1269
Email: seberino@spawar.navy.mil
_______________________________________




reply via email to

[Prev in Thread] Current Thread [Next in Thread]