Home > Archive > Lisp > April 2004 > [UFFI or CMUCL Alien] Can I use use printf-like C function from
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
[UFFI or CMUCL Alien] Can I use use printf-like C function from
|
|
| Ivan Boldyrev 2004-04-18, 8:31 am |
| -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I'd like call C function with variable number of arguments (like
printf or scanf) from Lisp (particulary, CMU CL 18e).
I guess, I can't do it with UFFI. But I can't understand from docs
how I can call it with CMU CL Alien facility.
I try to use UFFI in my project for better portability, but provide
some extensions for CMU CL (and may be SBCL) because UFFI dosn't
provide some features *yet*...
For those who is interested: I am working on PVM bindings for Common
Lisp and I am going to release it under MIT-like license. Function I
want to call is
extern int pvm_packf(const char *fmt, ...);
- --
Ivan Boldyrev
Assembly of a Japanese bicycle requires greatest peace of spirit.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.3.5 (GNU/Linux)
iQEVAwUBQH+OUQ4ALcwzZFpVAQL9MggAoS+ZpjXh
6vA9n3H6d4eXBOZ+ZVXcv5IQ
Df1acKMfG/guA6/86+upoI8KIC6E1imnq/xeCQbjFEwxxguePksm7BHFdLdqEl4G
2AMr/ LubBk7YynXfPvE2MPsWM5aaQVRzrHwpDQkFekxLj
SiLCdPTsH+tnoFl0oBN
a8a7AbdalXyZS485RdT+415zVNSnkZfKcc9mjUOy
fPxTpW7FjtVsFKeHRv8IhK0C
ZU4p14kBraRII6KSlgO0YFEb2p7/VFt4P2St6AKPCtQz9bcVapKbgN+Hpk3Rd5om
Jg6RCRDAz+voVUp0kli6JgtWl80lVHKZnL3l+r/45Xwg4zjtF7ZwWA==
=vYy9
-----END PGP SIGNATURE-----
| |
| Ivan Boldyrev 2004-04-23, 11:52 am |
| -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 8716 day of my life Marco Antoniotti wrote:
> Ivan Boldyrev wrote:
>
> As an aside, I think Beppe Attardi had a PVM binding for what was
> then EcoLisp (now ECL).
I see, ecl-*/contrib/pvm has bunch of code. Curprisingly, ECL is
faster than I expected.
BTW, I desided to implement pvm_packf analugue in Lisp. It just a
frontend to other PVM functions. So, I can parse format string myself
and emulate C implementation. Or use something more lispy than just
string...
- --
Ivan Boldyrev
| recursion, n:
| See recursion
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.3.5 (GNU/Linux)
iQEVAwUBQIPWEg4ALcwzZFpVAQLg8Qf+MganmGwU
CUwSZ1H8S5GLOTJn2WcySCWK
pL+somU8BaT9SJRiDZCvaDeA+qL93KOh01hbF7kL
trypzPE88/BxGw+9DOj/zezC
XTVim78nm+qTGyUmnCxFvjgKE1yVPQW4A5RlcN+N
X9WsLs9gHv1+ew3doxs9OZUs
ExJW9thgz/ FWstFVMYlk82AKrZCFESulrhZc9uakATFuzpY7Up
R2igdZ5oGx7ZH6
irar+KBQDEfXH1j3nBj3VuxtaknioxYrEDEaLNhS
jcMwUerdBFEdM4r/oyYTEbHA
7OPwag62VBZDi5hdvYwAI+CFId7AL7PH/hvU5P1sornEeN3QTDt8Aw==
=Jd8R
-----END PGP SIGNATURE-----
|
|
|
|
|