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

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:05:24 -0700
On Mon, Aug 26, 2002 at 03:35:35PM -0400, Khachaturov Vassilii wrote:
> (From the most places I've looked at, it seems like hard tabs are at 8, and
> shiftwidth/soft tab stop
> (or whatever your favourite name for the structural level indent is) is 2.
> This is countrary
> to the README.developer, which seems to use shiftwidth=hard tab
> width=whatever one prefers,
> much more appealing to my taste, but I am willing to submit in whatever
> format is preferred.)

The only firm rules I'd insist on are

	1) tab characters in files move to tab stops set every 8 spaces
	   (1, 9, 17, etc.), as there are, I think, editors where that's
	   wired in and unchangeable, and text isn't always viewed with
	   an editor and, at least on UNIX, tabs are every 8 spaces;

	2) all lines at the same bracketing level should be indented the
	   same, at least to the extent that they appear to be indented
	   at the same level when you read the code.