[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
More un-important stuff, this patch updates ahack._tx and indent.pro to
the compromise about tabs we agreed upon some time ago.
Basically, a radical change (proper use of TABs, no TABs at all) was
ruled out to keep CVS integrity, but since the current usage of TABs
just is evil, new patches/files should follow a simple 3-spaces-no-tabs
indentation pattern.
--
Elias Pschernig
Index: docs/src/ahack._tx
===================================================================
RCS file: /cvsroot/alleg/allegro/docs/src/ahack._tx,v
retrieving revision 1.14
diff -u -p -r1.14 ahack._tx
--- docs/src/ahack._tx 6 May 2005 09:39:06 -0000 1.14
+++ docs/src/ahack._tx 21 Aug 2005 17:20:53 -0000
@@ -40,14 +40,14 @@ probably reformat your code to fit in wi
obviously save me time if you write it this way in the first place, hence
this description:
-Basic Allegro style: K&R, with 3 space indentation. On disk, though, tab
-stops are 8 spaces, so if for example a line was indented by 12 spaces, this
-would be saved out as either 12 space characters or 1 tab and 4 spaces, not
-as 4 tabs. If your editor can't handle the difference between 3 char
-internal and 8 char external tab stops, either get a better editor or use
-indent to clean up after yourself. The indent.pro file included with the
-Allegro distribution comes close to getting this layout right, but doesn't
-quite manage it, so some things still need to be cleaned up by hand.
+Basic Allegro style: K&R, with 3 space indentation. On disk, though, tab stops
+are 8 spaces, so if for example a line was indented by 12 spaces, this would be
+saved out as either 12 space characters or 1 tab and 4 spaces, not as 4 tabs.
+Because this format always will lead to code display looking broken in place or
+another, new patches should now always use spaces only and no longer contain
+tabs. The indent.pro file included with the Allegro distribution comes close to
+getting this layout right, but doesn't quite manage it, so some things still
+need to be cleaned up by hand.
Preprocessor defines and structure names are UPPER_CASE. Function and
variable names are lower_case. MixedCaseNames are evil and should not be
Index: indent.pro
===================================================================
RCS file: /cvsroot/alleg/allegro/indent.pro,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 indent.pro
--- indent.pro 14 May 2000 20:16:31 -0000 1.1.1.1
+++ indent.pro 21 Aug 2005 17:20:53 -0000
@@ -1 +1 @@
--kr -nce -ss -ncs -i3 -cli3
+-kr -nce -ss -ncs -i3 -cli3 -nut