Variable length argument types for libusb binding

Paul Isaacs <[email protected]> Mon, 14 Mar 2016 22:53:50 -0400
Newsgroups gmane.comp.compilers.gpc
Message-ID <[email protected]>
Hello,

I have written a gnu pascal binding for libusb.

I would like to improve it by using schemata for the various variable 
length libusb function arguments.

I can come close by generating the USB arg pointer dynamically as follows:

UsbArgPtr := UsbPtr(  addr(  ArraySchemata[ 1 ]  )  ) to generate a 
pointer to the array within the schemata. This process can be hidden 
within the thick binding but not the thin binding.

I would like to be able to declare a type that points to this address 
for use as an argument type in the binding functions.

Is this possible? Do schemata have other attributes as well as .Size 
that could be used?

Thanks,

Paul Isaacs


_______________________________________________
Gpc mailing list
[email protected]
https://www.g-n-u.de/mailman/listinfo/gpc