Re: [HACKERS] Indent
От | Mike Mascari |
---|---|
Тема | Re: [HACKERS] Indent |
Дата | |
Msg-id | 19991110012419.20605.rocketmail@web2106.mail.yahoo.com обсуждение исходный текст |
Ответы |
Re: [HACKERS] Indent
|
Список | pgsql-hackers |
--- Peter Eisentraut <peter_e@gmx.net> wrote: > From FAQ_DEV: > > "pgindent will format source files to match our standard format, which > has four-space tabs, and an indenting format specified by flags to the > your 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 - 9 PostgreSQL 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. Amen. I hold myself to several rules when writing code, one of which is that no single line exceed 80 characters in length, which is of rare occurence in the backend code. Mike Mascari (mascarim@yahoo.com) ===== __________________________________________________ Do You Yahoo!? Bid and sell for free at http://auctions.yahoo.com
В списке pgsql-hackers по дате отправления: