Felipe Monteiro de Carvalho wrote:
> Hello,
> 
> While writing the apache pascal headers, I need to convert a c
> function like this:
> 
> void ap_allow_methods(request_rec *r, int reset, ...);
> 
> I know we can implement a variable number of paramaters in pascal
> using array of const type. But is that type compatible with a C
> function with a variable number of parameters?

Use array of const with cdecl, it will work as expected.

> 
> I mean, will it work when calling a function written in c in a DLL?


> 
> If not, what should I do?
> 
> thanks,

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

Reply via email to