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
too.

> 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?
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to