[fpc-pascal] NULL pointer to array of integer

Jonas Maebe jonas.maebe at elis.ugent.be
Wed Sep 13 14:13:19 CEST 2006


On 13 Sep 2006, at 10:04, Marc Santhoff wrote:

> (*
> hid_t H5Screate_simple(int rank, const hsize_t * dims, const hsize_t *
> maxdims )
>
> --> h2pas -->

Add an overloaded literal translation if you want to be able to pass  
nil:

type
   phsize_t = ^hsize_t;

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

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


Jonas



More information about the fpc-pascal mailing list