caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] c-interface question...
@ 2003-09-18  8:31 Michael Wohlwend
  2003-09-18 12:08 ` David Baelde
  2003-09-18 18:12 ` David Brown
  0 siblings, 2 replies; 4+ messages in thread
From: Michael Wohlwend @ 2003-09-18  8:31 UTC (permalink / raw)
  To: caml-list

Hi,

to play with the c-interface I tried to change the digest module to allow 
calculating a md5 sum piece by piece (i.e. making the function init, 
updtae and finalize avalable).
one question about the parameters of

external md5_new : unit -> md5_context = "md5_new"

should it be:

CAMLprim value md5_new()
{
CAMLparam0();
...
CAMLreturn(...);
}

or
CAMLprim value md5_new(value unit)
{
CAMLparam1(unit);
...
CAMLreturn(...);
}


as it receives a unit-paramter?
(the same for returning unit: CAMLreturn0 or CAMLreturn(Val_unit) ? )

thanks for answering,
  Michael




-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


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

end of thread, other threads:[~2003-09-19 14:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-18  8:31 [Caml-list] c-interface question Michael Wohlwend
2003-09-18 12:08 ` David Baelde
2003-09-18 18:12 ` David Brown
2003-09-19 14:44   ` Richard Jones

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).