| delorie.com/archives/browse.cgi | search |
| From: | Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: Bracketing: A Matter of Style |
| Organization: | Pin Eight Software http://pineight.8m.com/ |
| Message-ID: | <kvuresct9vlm9hd6aghdkp03e172arbgbv@4ax.com> |
| References: | <38EBEA6D DOT D1E0E8BD AT home DOT com> <Pine DOT LNX DOT 4 DOT 10 DOT 10004061257530 DOT 1735-100000 AT darkstar DOT grendel DOT net> |
| X-Newsreader: | Forte Agent 1.7/32.534 |
| MIME-Version: | 1.0 |
| 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
<kalum AT lintux DOT cx> 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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |