[fpc-pascal] More doubts on C to pascal header translations:

Marco van de Voort marcov at stack.nl
Mon Apr 25 09:58:53 CEST 2011

In our previous episode, Paulo Costa said:
> I saw that h2pas translated:
> typedef void(*callback)(int pos, void* userdata);
> to
> callback = procedure (pos:cint; var userdata:pointer);cdecl;

userdata is essentially untyped, so it doesn't matter what it exactly points

> shouldn't it be?
> callback = procedure (pos:cint; userdata:pointer);cdecl;

It is a better translation, and also pointer style support NIL. Do you use
-v or not?

More information about the fpc-pascal mailing list