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
[Caml-list] c-interface question...
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-09-18 (08:31)
From: Michael Wohlwend <mwohlwend@w...>
Subject: [Caml-list] c-interface question...

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

CAMLprim value md5_new(value unit)

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

thanks for answering,

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