home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.software-eng
- Path: sparky!uunet!pmafire!mica.inel.gov!ux1!fcom.cc.utah.edu!mercury.ced.utah.edu!bryant
- From: bryant@ced.utah.edu (Bryant Eastham,MEB 3116,581-5353)
- Subject: Re: C code Layout
- Message-ID: <1992Dec18.192304.22614@fcom.cc.utah.edu>
- Sender: news@fcom.cc.utah.edu
- Reply-To: bryant@ced.utah.edu
- Organization: Center for Engineering Design
- References: <1992Dec18.100545.74@dallas.sil.org>
- Date: Fri, 18 Dec 92 19:23:04 GMT
- Lines: 28
-
- I know this is dangerous considering some of my earlier
- postings, but here we go:
-
- if ( ... )
- {
- statement;
-
- } /* end if */
- else
- {
- statement;
-
- } /* end else */
-
- The editor I use (emacs) does the indenting automatically, so
- I don't have to use spaces or small tabs. In general, I use
- the following rule:
-
- Same scope, same indent.
-
- It also doesn't use as much hor. space as the other
- alternative...
-
- Bryant Eastham
- Center for Engineering Design
- University of Utah
- bryant@ced.utah.edu
-
-