From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: Bracketing: A Matter of Style Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: References: <38EBEA6D DOT D1E0E8BD AT home DOT com> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 39 X-Trace: /b/VKWuuva3gyqhMfELQr/n+ttfnRz1JPzgrKGC7eGpbqdv9hZ4qKnJAs4N4WmVfn5P5AgdPA+CC!ZVZsvsgaCI5taHsFQZ2H4ntaV6KbZdAyqqFQOlljCKYra/RBp2EtNxD1YGcJFlYsJIai93o59G+J!3A== X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Fri, 07 Apr 2000 15:41:50 GMT Distribution: world Date: Fri, 07 Apr 2000 15:41:50 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Thu, 6 Apr 2000 13:01:17 +0600 (LKT), Kalum Somaratna aka Grendel wrote: >On Thu, 6 Apr 2000, Robin Johnson wrote: > >> >> You might also want to take a look at the program called indent. It is >> available in the /gnu subdir on simtel. It will neatly format any code, >> however you want. > >You could also use GNU emacs with which you can change the indentation >style using M-x c-set-style. This is very handy and you can see how your >code will look in various styles on the fly and you can select whichever >is appropriate.. c-style-alist, the data block where it gets the information on various styles, is a bit too dense for me to parse. My style is as follows: for(i = 0; i < 20; i++) { foo(i); bar(i); switch(i) { case 1: flip(i); } } It's similar to MSVC's default style, with two spaces per tab. Which style would that be? -- Damian Yerrick "I refuse to listen to those who refuse to listen to reason." See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html This is McAfee VirusScan. Add these two lines to your signature to prevent the spread of signature viruses. http://www.mcafee.com/