coding style guidelines?

Поиск
Список
Период
Сортировка
От Larry Rosenman
Тема coding style guidelines?
Дата
Msg-id 20001116111758.A28449@lerami.lerctr.org
обсуждение исходный текст
Ответы Re: coding style guidelines?
Список 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 по дате отправления:

Предыдущее
От: Marko Kreen
Дата:
Сообщение: Re: [rfc] new CREATE FUNCTION (and more)
Следующее
От: Zeugswetter Andreas SB
Дата:
Сообщение: AW: AW: Coping with 'C' vs 'newC' function language nam esh