English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
C stubs with many args.
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2009-11-29 (18:31)
From: Richard Jones <rich@a...>
Subject: Re: [Caml-list] C stubs with many args.
On Sun, Nov 29, 2009 at 04:31:11PM +0100, Guillaume Yziquel wrote:
> I've been trying to follow section 18.1.2 of:
> 	http://caml.inria.fr/pub/docs/manual-ocaml/manual032.html
> Unfortunately, I'm a bit confused as to what should the CAMLparam and 
> such be for the bytecode stub.
> Could someone provide me with an example somewhere?

In case you still have problems, you could look at the code we
autogenerate in libguestfs, eg: ocaml/guestfs_c_actions.c.  We
generate bindings for functions that have various numbers of arguments
(up to 9).


Richard Jones
Red Hat