Re: Free Pascal and Postgresql Functions, Possible? - Mailing list pgsql-general

From Tony Caduto
Subject Re: Free Pascal and Postgresql Functions, Possible?
Date
Msg-id 439D8EB2.3090902@amsoftwaredesign.com
Whole thread Raw
In response to Re: Free Pascal and Postgresql Functions, Possible?  (Bernd Helmle <mailings@oopsware.de>)
List pgsql-general
>>
>> That said, pascal has historically had a different calling convention
>> and that is likely to cause the most issues.
>
>
> Free Pascal offers the cdecl modifier, which allows to declare and
> access functions with C style call convention. However, someone needs to
> write the necessary interface to the internal PostgreSQL structures that
> are needed for UDFs.
>
>>
>> Have a nice day,
>
>
> dito
>


Sounds like it may be possible then.
Man, if someone where to come up with a simple example on just doing
something like adding two numbers or similar it might convince a few
Delphi/Kylix/Freepascal users to switch over from Firebird/Interbase.

I guess I could help with such a task if someone with C experience could
help also.  I have Freepascal/Lazarus installed as well as Kylix.

Does anyone know what header would need to be ported to Pascal?

Later,

Tony






pgsql-general by date:

Previous
From: Tony Caduto
Date:
Subject: Re: Free Pascal and Postgresql Functions, Possible?
Next
From: Mark Mitchenall
Date:
Subject: Re: TSearch2: Auto identify document language?