Re: pgindent weirdness - Mailing list pgsql-hackers

From Aidan Van Dyk
Subject Re: pgindent weirdness
Date
Msg-id BANLkTim7sY97Nr4qG5REjHzuxG-BQv=ovA@mail.gmail.com
Whole thread Raw
In response to Re: pgindent weirdness  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: pgindent weirdness  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Wed, Apr 20, 2011 at 12:38 PM, Andrew Dunstan <andrew@dunslane.net> wrote:

>> So in the case at hand, we actually *need* to remove the "struct" from
>> RelationGetBufferForTuple's declaration, so that BulkInsertStateData
>> gets used as a typedef name in that way.

Since the general form seems to be to declare things as:  typedef struct foo { ... } foo;

Is there any reason why we see any struct foo in the sources other
than in the typedef line?

"Legacy" and "invasive patch" are good enough reasons, if they are it...

a.


--
Aidan Van Dyk                                             Create like a god,
aidan@highrise.ca                                       command like a king,
http://www.highrise.ca/                                   work like a slave.


pgsql-hackers by date:

Previous
From: Greg Stark
Date:
Subject: Re: Formatting Curmudgeons WAS: MMAP Buffers
Next
From: Tom Lane
Date:
Subject: Re: pgindent weirdness