Re: Passing parameters to a C function - Mailing list pgsql-hackers

From Martijn van Oosterhout
Subject Re: Passing parameters to a C function
Date
Msg-id 20070530144120.GA18387@svana.org
Whole thread Raw
In response to Passing parameters to a C function  ("Rodrigo Sakai" <rodrigo.sakai@poli.usp.br>)
Responses Re: Passing parameters to a C function
List pgsql-hackers
On Wed, May 30, 2007 at 11:26:01AM -0300, Rodrigo Sakai wrote:
>    I have a question about passing parameters to a C function.  Imagine the
> example by PostgreSQL:
>
> PG_FUNCTION_INFO_V1(complex_add);


> But using version 1 calling convention it won't work! So, how can I pass the
> 'a' and 'b' variables in complex_add(?, ?)?

Use the DirectFunctionCalln functions in fmgr.

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

pgsql-hackers by date:

Previous
From: "Rodrigo Sakai"
Date:
Subject: Passing parameters to a C function
Next
From: Tom Lane
Date:
Subject: Re: Passing parameters to a C function