Joe Conway wrote:
mike g wrote:
In file postgresql-7.4.2/src/backend/utils/fmgrtab.c

This is an automatically generated file. The reason for duplicate 
array_push declarations is that one-and-the-same array_push function 
is used to implement two SQL functions, array_append and 
array_prepend. I don't imagine the duplicate declaration hurts anything.
My apologies for being too lazy to copy and paste the email address into a new email.  I forgot hitting reply would add it to thread rather than starting a new one.

With the large number of variables declared in that block I was thinking that someone was entering it off a list in another file and accidently did it twice.


With it being legal C I will ignore any others that might have shown up in the list.

I believe it is explicitly legal C, in fact.

The C faq at http://www.faqs.org/faqs/C-faq/faq/ states:

	First, though there can be many "declarations" (and in many
	translation units) of a single "global" (strictly speaking,
	"external") variable or function, there must be exactly one
	"definition".


cheers

andrew

Reply via email to