Re: [HACKERS] Indent

From: Mike Mascari <mascarim(at)yahoo(dot)com>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [HACKERS] Indent
Date: 1999-11-10 01:24:19
Message-ID: 19991110012419.20605.rocketmail@web2106.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

--- Peter Eisentraut <peter_e(at)gmx(dot)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(at)yahoo(dot)com)

=====

__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1999-11-10 01:55:50 Re: [HACKERS] Indent
Previous Message Bruce Momjian 1999-11-10 01:19:48 Re: [HACKERS] Indent