Re: Free Pascal and Postgresql Functions, Possible?

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: Free Pascal and Postgresql Functions, Possible?
Дата
Msg-id 20051212184127.GA30160@svana.org
обсуждение исходный текст
Ответ на Re: Free Pascal and Postgresql Functions, Possible?  (Tony Caduto <tony.caduto@amsoftwaredesign.com>)
Ответы Re: Free Pascal and Postgresql Functions, Possible?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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@svana.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.

Вложения

В списке pgsql-general по дате отправления:

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: missing something obvious about intervals?
Следующее
От: vishal saberwal
Дата:
Сообщение: Re: ERROR: could not find function