home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / gnu / utils / bug / 1473 < prev    next >
Encoding:
Text File  |  1992-09-03  |  920 b   |  46 lines

  1. Newsgroups: gnu.utils.bug
  2. Path: sparky!uunet!cis.ohio-state.edu!chopin.UUCP!hxl
  3. From: hxl@chopin.UUCP (Charlie Xiaoli Huang)
  4. Subject: indent 1.6 and typedef
  5. Message-ID: <9209031707.AA11529@chopin.epic>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Thu, 3 Sep 1992 17:07:34 GMT
  10. Approved: bug-gnu-utils@prep.ai.mit.edu
  11. Lines: 33
  12.  
  13. Hi,
  14.  
  15. I installed indent 1.6 on a Sun IPC runnning 4.1.1 and 
  16. using gcc 2.2.2. Everything seemed fine except for the
  17. following annoying "feature": it forces a newline after
  18. each of of typedef.
  19.  
  20. For example:
  21.  
  22.     original:
  23.  
  24.     typedef struct foo {
  25.         int bar;
  26.     } foo_t;
  27.  
  28. The outcome will always become
  29.  
  30.     typedef struct foo {
  31.         int bar;
  32.     }
  33.     foo_t;
  34.  
  35. (the placement of braces and indentations are subject to
  36. options and indent.pro, but the newline is always forced
  37. before "foo_t").
  38.  
  39. Anyway I can turn this off? RTFM didn't help much on this
  40. "feature".
  41.  
  42. Thanks,
  43.  
  44. hxl
  45.  
  46.