Indent

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Indent
Дата
Msg-id Pine.LNX.4.20.9911082316520.4161-100000@peter-e.yi.org
обсуждение исходный текст
Ответы Re: [HACKERS] Indent  (Bruce Momjian <maillist@candle.pha.pa.us>)
Список pgsql-hackers
>From FAQ_DEV:

"pgindent will format source files to match our standard format, whichhas four-space tabs, and an indenting format
specifiedby flags to theyour operating system's utility indent."
 

Then why are all files indented with eight spaces? I personally like the
four spaces, straight bsd style in Emacs and -orig in indent. But at least
it should be consistent.

Also, how can I prevent this from happening:

void
print_copyright(void)
{       puts(                "                PostgreSQL Data Base Management System                Copyright(c) 1996 -
9PostgreSQL Global Development Group 
 
instead of

void                                                                              
print_copyright(void)                                                             
{                                                                                        puts(
                                          
 
"                                                                
PostgreSQL Data Base Management System

Copyright(c) 1996 - 9 PostgreSQL Global Development Group

?
Looks really ugly in the output.

-- 
Peter Eisentraut                  Sernanders vaeg 10:115
peter_e@gmx.net                   75262 Uppsala
http://yi.org/peter-e/            Sweden



В списке pgsql-hackers по дате отправления:

Предыдущее
От: The Hermit Hacker
Дата:
Сообщение: Re: [HACKERS] CORBA STATUS
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] Indent