[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue/geas STANDARDS
From: |
Neil Tiffin |
Subject: |
gnue/geas STANDARDS |
Date: |
Mon, 07 May 2001 09:19:39 -0700 |
CVSROOT: /home/cvs
Module name: gnue
Changes by: Neil Tiffin <address@hidden> 01/05/07 09:19:38
Modified files:
geas : STANDARDS
Log message:
Add -di22 for indenting variable names in declarations and reformat the
paragraph.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/geas/STANDARDS.diff?cvsroot=OldCVS&tr1=1.2&tr2=1.3&r1=text&r2=text
Patches:
Index: gnue/geas/STANDARDS
diff -u gnue/geas/STANDARDS:1.2 gnue/geas/STANDARDS:1.3
--- gnue/geas/STANDARDS:1.2 Sun May 6 12:32:12 2001
+++ gnue/geas/STANDARDS Mon May 7 09:19:38 2001
@@ -15,14 +15,15 @@
do_something;
or
if (foo) do_something;
+
(but there could be special cases where the latter is acceptable, e.g.
-error handling like "if (!param) exit 0;".
+error handling like "if (!param) exit 0;").
-If the code doesn't conform, using "indent -nut codefile.c" could save
-you a big deal of work in changing the code. (Be sure to use GNU indent
-2.2.6 or later).
-But probably indent can't do everything. Especially it won't insert braces
-where they miss.
+If the code doesn't conform, using "indent -nut codefile.c" or "indent
+-nut -di22 header.h" could save you a big deal of work in changing the
+code. (Be sure to use GNU indent 2.2.6 or later). The "-di22" indents
+variables in declarations to column 22. But probably indent can't do
+everything. Especially it won't insert braces where they miss.
Additional hints on parameters for indent to make the code cleaner are
always appreciated.