home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.software-eng
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!swrinde!emory!nastar!phardie
- From: phardie@nastar.uucp (Pete Hardie)
- Subject: Re: C code Layout
- Message-ID: <1992Dec18.155057.11748@nastar.uucp>
- Organization: Digital Transmission Systems, Duluth, GA.
- References: <1992Dec14.074411@eklektix.com> <1992Dec15.153859.29057@nastar.uucp> <454@casemo.UUCP>
- Date: Fri, 18 Dec 1992 15:50:57 GMT
- Lines: 23
-
- In article <454@casemo.UUCP> keating@casemo.UUCP (John Keating ) writes:
- >I prefer the following:
- > if (condition)
- > {
- > statement ;
- > ...
- > }
-
- I find it distracting, the two levels of indentation. Also, it means you
- need to have a very small tab, or use spaces, which seems too typing-intensive
- for my taste.
-
- One thing I have toyed with is using indent and/or cb in combo with SCCS/RCS
- to store the source in an unindented format, and let each developer specify
- in a file the preferred format s/he would like to see the code in, and have
- the check-out process format code for them, and the check-in process remove
- all formatting.
-
- --
- Pete Hardie: phardie@nastar (voice) (404) 497-0101
- Digital Transmission Systems, Inc., Duluth GA
- Member, DTS Dart Team | cat * | egrep -v "signature virus|infection"
- Position: Goalie |
-