On Sun, 24 Nov 2002, Carlton Anderson wrote:

> What is the preferred coding style for Lynx?
>
> To elaborate, what is the desired tab size?
>   4? 8?

8, but using a shiftwidth of 4 (so it looks like it's laid out for
4-column tabs).

> And what about the placement of whitespace
>   and braces?

K&R.  Much of the code is consistent - it would be nice to use indent, but
there are some cases that indent won't handle.

>
> For a variable consisting of two words
> such as "colorName," is it preferable
> to write it as "colorName" or "color_name"?

Actually the latter - since some ports such as VMS do not use
case-sensitive externs.

-- 
T.E.Dickey <[EMAIL PROTECTED]>
http://invisible-island.net
ftp://invisible-island.net


; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to [EMAIL PROTECTED]

Reply via email to