home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / software / 5070 < prev    next >
Encoding:
Text File  |  1992-12-21  |  980 b   |  41 lines

  1. Newsgroups: comp.software-eng
  2. Path: sparky!uunet!pmafire!mica.inel.gov!ux1!fcom.cc.utah.edu!mercury.ced.utah.edu!bryant
  3. From: bryant@ced.utah.edu (Bryant Eastham,MEB 3116,581-5353)
  4. Subject: Re: C code Layout
  5. Message-ID: <1992Dec18.192304.22614@fcom.cc.utah.edu>
  6. Sender: news@fcom.cc.utah.edu
  7. Reply-To: bryant@ced.utah.edu
  8. Organization: Center for Engineering Design
  9. References: <1992Dec18.100545.74@dallas.sil.org>
  10. Date: Fri, 18 Dec 92 19:23:04 GMT
  11. Lines: 28
  12.  
  13. I know this is dangerous considering some of my earlier
  14. postings, but here we go:
  15.  
  16.    if ( ... )
  17.      {
  18.      statement;
  19.  
  20.      } /* end if */
  21.    else
  22.      {
  23.      statement;
  24.  
  25.      } /* end else */
  26.  
  27. The editor I use (emacs) does the indenting automatically, so
  28. I don't have to use spaces or small tabs. In general, I use
  29. the following rule:
  30.  
  31.   Same scope, same indent.
  32.  
  33. It also doesn't use as much hor. space as the other
  34. alternative...
  35.  
  36. Bryant Eastham
  37. Center for Engineering Design
  38. University of Utah
  39. bryant@ced.utah.edu
  40.  
  41.