Linux Users

cancel
Showing results for 
Search instead for 
Did you mean: 

type of variable va_list visa.h

Hi,

I need to create Pascal binding for NI-VISA and I have a problem with variable va_list in visa.h file line number 73

typedef va_list  ViVAList

va_list is not declared anywhere visa.h, visatype.h and vpptype.h.

What is the type of this variable int, double, boolean or...?

I'm supprised that C ignored undeclared variable.

0 Kudos
Message 1 of 4
(4,955 Views)

Thanks,

I see it impossible to translate it to Pascal and call a function in line 169 and etc.

0 Kudos
Message 3 of 4
(4,125 Views)

Indeed. I don't think Pascal even has a concept of a va_list interface. Even if it had it would be quite a dead end, since va_list is implemented by each compiler in its own way.

Basically, using va_list functions is only guaranteed to work if you use for both the caller and the callee the same compiler, in theorie even only the same version, although compiler builders usually don't change the implementation of this between versions, but C doesn't guarantee anything here.

Rolf Kalbermatter
My Blog
0 Kudos
Message 4 of 4
(4,125 Views)