Ethereal-dev: Re: [Ethereal-dev] coding guidelines (what's the tabstop/shiftwid th?)

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxx>
Date: Mon, 26 Aug 2002 13:29:10 -0700
On Mon, Aug 26, 2002 at 03:19:55PM -0500, Esh, Andrew wrote:
> RE: Rule #1: So what's to be in the source code, tabs or spaces?

The firm rule didn't mention that.

> BTW: I don't see where Unix
> mandates 8 spaces per tab. Maybe that's a general default, but it's almost
> always configurable.

It *is* the general default, and there are a fair number of UNIX
programs, as I remember, that assume that it's the case.  (I think at
least some versions of curses assume it to be the case, for example.)

It might be configurable, but I'm not going to change my default because
somebody prefers something else, and if somebody else's choice makes
code's indentation look wrong, I'll fix it so I can read it.