Re: GNOME Indentation Style



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Peter Bloomfield wrote:
On 04/29/2005 07:50:13 AM, John (J5) Palmieri wrote:
[ snip ]

You should use whatever the project has chosen.  If you are  starting
a new project the majority of GNOME programs are coded  using the 8
space tab "kernel" indentation style.  What is  important is not the
coding style used but that it is the same  style throughout the project.


Will that "kernel"/GNOME style join the "common styles" supported  by
GNU indent?  Or is it a simple combination of existing  options?  The
definitions of -gnu, -kr, and -orig are quite  intimidating!

I've never tried it, but from /usr/src/linux/Documentation/CodingStyle:

"However, that's not too bad, because even the makers of GNU indent
recognize the authority of K&R (the GNU people aren't evil, they are
just severely misguided in this matter), so you just give indent the
options '-kr -i8' (stands for "K&R, 8 character indents")..."

        -brian

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)

iD8DBQFCcmAq6XyW6VEeAnsRAohMAJ9db76b81M/iFRWrAV4h7h4HPCeDACeJCDz
Co140nBp1GoNG7u/DbS6MpE=
=dI9c
-----END PGP SIGNATURE-----



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