From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
---|---|
To: | Tony Caduto <tony(dot)caduto(at)amsoftwaredesign(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Free Pascal and Postgresql Functions, Possible? |
Date: | 2005-12-12 18:41:36 |
Message-ID: | 20051212184127.GA30160@svana.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Mon, Dec 12, 2005 at 08:43:52AM -0600, Tony Caduto wrote:
> I know Delphi/Kylix can create C style DLLs and SOs with the C style
> calling convention, so I "assume" Free Pascal does as well.
>
> Is there any special C headers (for creating functions that return
> results?) that are PG specific that would need to be ported to Pascal?
Well, I don't know about any special C headers. The examples in the
documentation tell you what you need for various features. However, I
think the most important header would be fmgr.h since that is how the C
functions get arguments from and return data to the server. With a few
declarations for things like palloc you should be able to do most
things.
Have a nice day,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.
From | Date | Subject | |
---|---|---|---|
Next Message | vishal saberwal | 2005-12-12 18:45:26 | Re: ERROR: could not find function |
Previous Message | Bruno Wolff III | 2005-12-12 18:34:45 | Re: missing something obvious about intervals? |