-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 8720 day of my life Eric Marsden wrote:
>>>>>> "ib" == Ivan Boldyrev <[EMAIL PROTECTED]> writes:
>
>   ib> I'd like call C function with variable number of arguments (like
>   ib> printf or scanf) from CMU CL. I guess, I can't do it with UFFI.
>   ib> But I can't understand from docs how I can call it with CMU CL
>   ib> Alien facility.
>
> you can't. Making calls to vararg functions is platform-dependent, and
> CMUCL doesn't have the necessary glue to enable it (though it probably
> works "by accident" on current platforms if you use EXTERN-ALIEN and
> declare the actual types passed).

Every C call just push arguments on stack, doesn't it?  Or compiler
must exactly know which function is vararg and which is not?

OK, nevermind.  In my case, pvm_packf is just front-end for simple PVM
functions.  I desided to implement such a front-end in pure Lisp (with
calls to foreign functions).

- -- 
Ivan Boldyrev

Violets are red, Roses are blue. //
I'm schizophrenic, And so am I.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.3.5 (GNU/Linux)

iQEVAwUBQIkegw4ALcwzZFpVAQJRkQf+IxUVJNGreeSiNFW08Qcjj0QPHsxZFPvJ
FvTpWD6Gb/Zpz6fNDHLu6Hsnvzu2cPSakfe8ZZmYyiG7wziw5zxg9NxugrQGfgE9
hDtMF0Lr9ZzkShZlK/A27BT5s9X+1bHIS5VPVjY19oZ/sJt6Ua5MP4vLqF03Md3N
vChuykXUJ4CJw6M1OQxboAGukpPqgUof+J9ceIUNXGatgRY47uO0EB74yOMNIvxC
YOEhKDbFZH0RRv8Tq7t+bwboUiX5plAGm+rN2MlK3PisagiOLOswt3xa9hZZvObU
Ve3soa8HTfCuOEwVmYUjFNItWDFsXXSfqtZfcCb735w4asIf8ruTyA==
=Cn02
-----END PGP SIGNATURE-----


Reply via email to