* Re: Please explain diff between K&R, Linux and GNU c-mode styles...
[not found] <mailman.1035568658.14167.help-gnu-emacs@gnu.org>
@ 2002-10-25 20:02 ` Edgar Antonio Luna Díaz
2002-10-25 21:42 ` seberino
[not found] ` <mailman.1035582199.7294.help-gnu-emacs@gnu.org>
2002-10-25 20:12 ` Richard V. Molen
1 sibling, 2 replies; 5+ messages in thread
From: Edgar Antonio Luna Díaz @ 2002-10-25 20:02 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 535 bytes --]
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
[-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Please explain diff between K&R, Linux and GNU c-mode styles...
2002-10-25 20:02 ` Please explain diff between K&R, Linux and GNU c-mode styles Edgar Antonio Luna Díaz
@ 2002-10-25 21:42 ` seberino
[not found] ` <mailman.1035582199.7294.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 5+ messages in thread
From: seberino @ 2002-10-25 21:42 UTC (permalink / raw)
Cc: help-gnu-emacs
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
_______________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <mailman.1035582199.7294.help-gnu-emacs@gnu.org>]
* Re: Please explain diff between K&R, Linux and GNU c-mode styles...
[not found] <mailman.1035568658.14167.help-gnu-emacs@gnu.org>
2002-10-25 20:02 ` Please explain diff between K&R, Linux and GNU c-mode styles Edgar Antonio Luna Díaz
@ 2002-10-25 20:12 ` Richard V. Molen
1 sibling, 0 replies; 5+ messages in thread
From: Richard V. Molen @ 2002-10-25 20:12 UTC (permalink / raw)
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?
They differ in mostly in purpose & indentation: Linux for the
Linux kernel developers, GNU for the FSF developers...
Have you tried Emacs info for 'cc-mode'' 'Built-in Styles'.
--
Richard V. Molen
Warning!!
Signature under construction, safety glasses required.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Please explain diff between K&R, Linux and GNU c-mode styles...
@ 2002-10-25 17:56 seberino
0 siblings, 0 replies; 5+ messages in thread
From: seberino @ 2002-10-25 17:56 UTC (permalink / raw)
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?
Thanks!
Chris
--
_______________________________________
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
_______________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-10-26 3:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.1035568658.14167.help-gnu-emacs@gnu.org>
2002-10-25 20:02 ` Please explain diff between K&R, Linux and GNU c-mode styles Edgar Antonio Luna Díaz
2002-10-25 21:42 ` seberino
[not found] ` <mailman.1035582199.7294.help-gnu-emacs@gnu.org>
2002-10-26 3:53 ` Edgar Antonio Luna Díaz
2002-10-25 20:12 ` Richard V. Molen
2002-10-25 17:56 seberino
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.