Re: tsearch2api project - Mailing list pgsql-hackers

From Tom Lane
Subject Re: tsearch2api project
Date
Msg-id 13528.1192667348@sss.pgh.pa.us
Whole thread Raw
In response to Re: tsearch2api project  ("Pavel Stehule" <pavel.stehule@gmail.com>)
List pgsql-hackers
"Pavel Stehule" <pavel.stehule@gmail.com> writes:
> but I would
> #define ENVELOPE_FCE(name,dest) \
> Datum name (PG_FUNCTION_ARGS); \
> PG_FUNCTION_INFO_V1(name); \
> Datum \
> name (PG_FUNCTION_ARGS) \
> { \
>         return (dest)(fceinfo); \
> }

That seems perfectly legitimate to me --- I'm pretty sure there are
several instances of that in the core code already.

I'd be more inclined to call the macro WRAPPER_FUNCTION, perhaps.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: About to remove current contents of contrib/tsearch2
Next
From: Kenneth Marshall
Date:
Subject: Re: Hash index todo list item