On Tue, Sep 28, 2010 at 12:12 PM, Robert Haas <robertmhaas@gmail.com> wrote:
>> If we do so, many PGDLLEXPORT will be added:
>> * 17 in src/tutorial
>> * 507 in contrib
>> for each exported PGFunction, _PG_init, and _PG_fini.
>
> Oh - I didn't realize this meant marking lots of things in contrib
> that didn't otherwise need to be marked. Why do other people need
> this if we don't?
As I mentioned, we don't need the marks in our build environment at all.
So, the PGDLLEXPORT marks are for users who refers our tutorials and
contrib modules as sample codes.
Personally, I learned many idioms from contrib modules, but didn't
notice the tutorial directory. I think codes in contribs are often
copied-and-pasted. So, if we add PGDLLEXPORTs to some places,
I'd like to add them to contribs, too.
--
Itagaki Takahiro