On 14 Sep 2006, at 10:50, Marc Santhoff wrote:

function H5Screate_simple(rank:longint; dims: phsize_t;
maxdims:phsize_t):hid_t;cdecl;external;

Yes, this does actually work. :)

When passing arrays, pass the address of the first element of the array.

Still thinking about that, I don't want to change calling syntax very
much ...

Well, you can create different overloaded versions for all possible uses of course:

function H5Screate_simple(rank:longint; dims: array of hsize_t; maxdims: array of hsize_t):hid_t;cdecl;external; function H5Screate_simple(rank:longint; dims: array of hsize_t; maxdims: phsize_t):hid_t;cdecl;external; function H5Screate_simple(rank:longint; dims: phsize_t; maxdims: array of hsize_t):hid_t;cdecl;external; function H5Screate_simple(rank:longint; dims: phsize_t; maxdims: array of hsize_t):hid_t;cdecl;external;

(possibly leaving some out which don't make sense)


Jonas
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to