Go Back   Angband Forums > Angband > Vanilla

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old December 20, 2007, 19:23   #1
Join Date: Apr 2007
Posts: 726
Bandobras is on a distinguished road
Coding standard? Indentation?

I keep making a mess of indentation whenever I touch a C file from Angband, so I wonder what I should set up my Emacs to (or Eclipse, or 'indent' utility). I see a year ago I had the following conversation on the NPP forum, but now that V is again active I wonder if there are any opinions...

> > > Merry Christmas!
> > >
> > > wonder what coding standards do you adhere to.
> > > E.g. GNU ( Any other?
> > >
> > > Also, I wonder what indentation you use: GNU, K&R? Spaces or tabs for indents?
> > > 4-wide or 8-wide tabs? What was the original standard of Moria?
> > > Of Ben Harrison's Vanillia? Do you ever use
> > > the indent utility to maintain a single format?
> > >
> > > BTW, is NPP os a CVS/SVN somewhere?
> > >
> > > Thanks a lot!
> >
> > CJN: AFAIK, most *bands, including NPP, use K&R style with 8-wide tabs and tab for indent.
> >
> Bad, bad, bad. But at least the tab width is standard ---
> however the text must go off 80 characters wide terminal very often...
> Hmm, from the look of the code it's not pure K&R. Obviously not GNU, too.
> I guess everybody indents as he likes...
Bandobras is offline   Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +1. The time now is 13:23.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.