Re: [fpc-pascal] Free Pascal bindings for EyeLink C code (with a god-cast)

2023-06-14 Thread Tomas Hajny via fpc-pascal
On 14 June 2023 20:59:41 +0200, "Rafael Picanço via fpc-pascal" wrote: Hi Rafael, >I am trying to follow your advice and use units instead: > >const > EXTERNAL_DEV_NONE : TGetExButtonStatesFunction = Pointer(0); > >However I am receiving an error: > >Error: Incompatible types: got "Pointer"

Re: [fpc-pascal] Free Pascal bindings for EyeLink C code (with a god-cast)

2023-06-14 Thread Rafael Picanço via fpc-pascal
ith subject or body 'help' to > > fpc-pascal-requ...@lists.freepascal.org > > > > You can reach the person managing the list at > > fpc-pascal-ow...@lists.freepascal.org > > > > When replying, please edit your Subject line so it is more specific &g

Re: [fpc-pascal] Free Pascal bindings for EyeLink C code (with a god-cast)

2023-06-13 Thread Marco van de Voort via fpc-pascal
On 13-6-2023 15:38, Rafael Picanço via fpc-pascal wrote: Thank you Marco, I am elaborating on top of your suggestions. > The problem is that the logical solution, making it a macro, doesn't work, as macro definitions don't export through USES clauses. I think that pre-processor constants with

Re: [fpc-pascal] Free Pascal bindings for EyeLink C code (with a god-cast)

2023-06-13 Thread Rafael Picanço via fpc-pascal
3 Jun 2023 11:25:13 +0200 > From: Marco van de Voort > To: fpc-pascal@lists.freepascal.org > Subject: Re: [fpc-pascal] Free Pascal bindings for EyeLink C code > (with a god-cast) > Message-ID: > <5a5a8eac-e91d-d9d7-4131-d7301ec3c...@pascalprogramming.org> >

Re: [fpc-pascal] Free Pascal bindings for EyeLink C code (with a god-cast)

2023-06-13 Thread Marco van de Voort via fpc-pascal
On 13-6-2023 05:19, Rafael Picanço via fpc-pascal wrote: (1) I have no idea on how to translate these god-casts, eg., ((getExButtonStates)0), to free pascal. Right now, I think that even if I don't really need them, I just want to understand and learn in the process. The problem is that the