Re: [HACKERS] Indent - Mailing list pgsql-hackers

From Mike Mascari
Subject Re: [HACKERS] Indent
Date
Msg-id 19991110012419.20605.rocketmail@web2106.mail.yahoo.com
Whole thread Raw
Responses Re: [HACKERS] Indent  (Bruce Momjian <maillist@candle.pha.pa.us>)
List 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 by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Indent
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Indent