coding style guidelines? - Mailing list pgsql-hackers

From Larry Rosenman
Subject coding style guidelines?
Date
Msg-id 20001116111758.A28449@lerami.lerctr.org
Whole thread Raw
Responses Re: coding style guidelines?
List pgsql-hackers
Is there any guidelines on the formatting of the C code in
PG?  As I was working on guc-file.l yesterday, I noticed
some things with LONG lines (I broke some of them up).

I was wondering if there were formal standards? 

Also, do we care about extraneous #include's? 
(src/backend/parser/scansup.c has #include <ctype.h> which it
doesn't need on closer inspection, for example). 

When I copied scansup.c into guc-file.l I added the #include
<ctype.h>, but it may not need it. 

Larry

-- 
Larry Rosenman                      http://www.lerctr.org/~ler
Phone: +1 972-414-9812 (voice) Internet: ler@lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749


pgsql-hackers by date:

Previous
From: Marko Kreen
Date:
Subject: Re: [rfc] new CREATE FUNCTION (and more)
Next
From: Zeugswetter Andreas SB
Date:
Subject: AW: AW: Coping with 'C' vs 'newC' function language nam esh