From: | mike g <mike(at)thegodshalls(dot)com> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Duplicate variable declared? |
Date: | 2004-04-22 03:16:33 |
Message-ID: | 1082603793.26232.6.camel@localhost.localdomain |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
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
From | Date | Subject | |
---|---|---|---|
Next Message | Rod Taylor | 2004-04-22 03:18:55 | Re: contrib vs. gborg/pgfoundry for replication solutions |
Previous Message | Bruce Momjian | 2004-04-22 03:12:08 | Re: contrib vs. gborg/pgfoundry for replication solutions |