[fpc-pascal] NULL pointer to array of integer
Jonas Maebe
jonas.maebe at elis.ugent.be
Thu Sep 14 11:14:37 CEST 2006
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
More information about the fpc-pascal
mailing list