caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Binding C libraries which use variable arguments  (stdarg.h)
@ 2009-10-28 22:07 Adrien
  2009-10-28 22:45 ` Basile STARYNKEVITCH
  0 siblings, 1 reply; 14+ messages in thread
From: Adrien @ 2009-10-28 22:07 UTC (permalink / raw)
  To: Caml Mailing List

Hi,

I am currently trying to bind a C function that takes variables
arguments, like foo(int a, ...). I can't find how to make a C stub for
that function.

I found camlidl didn't support idl's "vararg" keyword and pidl (p
stands for perl) didn't either. I was told to try libffi but it
doesn't support varargs unfortunately. I also thought about doing it
by hand but that's not the best idea for portability.

Any other idea? Hint^WPointer? (sorry for the bad joke ;-) )

Thanks.


PS: I was also told I was toast

 ---

Adrien Nader


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2009-11-03 19:33 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-28 22:07 [Caml-list] Binding C libraries which use variable arguments (stdarg.h) Adrien
2009-10-28 22:45 ` Basile STARYNKEVITCH
2009-10-29  8:55   ` Goswin von Brederlow
2009-10-29 21:37     ` Adrien
2009-10-29 23:31       ` Goswin von Brederlow
2009-10-29 21:18   ` Adrien
2009-10-30  9:35     ` Xavier Leroy
2009-11-01  9:31       ` Adrien
2009-11-01 11:07         ` Florian Weimer
2009-11-01 12:12           ` Adrien
2009-11-01 12:16             ` Florian Weimer
2009-11-01 14:58               ` Adrien
2009-11-01 20:06                 ` Richard Jones
2009-11-03 19:33                 ` Florian Weimer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).