[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lynx-dev Lynx coding style
From: |
Thomas E. Dickey |
Subject: |
Re: lynx-dev Lynx coding style |
Date: |
Sun, 24 Nov 2002 11:04:08 -0500 (EST) |
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 <address@hidden>
http://invisible-island.net
ftp://invisible-island.net
; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden