Browse thread
[Caml-list] c-interface question...
- Michael Wohlwend
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Michael Wohlwend <mwohlwend@w...> |
| Subject: | [Caml-list] c-interface question... |
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