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: Khachaturov Vassilii <Vassilii.Khachaturov@xxxxxxxxxxxx>
Date: Mon, 26 Aug 2002 16:29:14 -0400
> > 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.

Absolutely agreed. But isn't this thinking the best reason to require the
leading
scoping indent to be a multiple of tab symbols, so whoever prefers dense
code
can use smaller tabstop value and whoever preferse sparse code can use
larger
one, and both users be happy?

(I'm going to follow your advice anyhow to produce consistent files with
8-space tabstop in mind.)

V.