caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* What should the "size" in "caml_alloc_custom" be?
@ 2010-05-17 18:00 lyn HONG
  2010-05-18  6:58 ` [Caml-list] " Goswin von Brederlow
  2010-05-20 22:04 ` Richard Jones
  0 siblings, 2 replies; 5+ messages in thread
From: lyn HONG @ 2010-05-17 18:00 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/plain, Size: 370 bytes --]

Hi all,

I have a question about "allocating custom blocks" in "iterfacing C with
object Ocaml". when we call function "caml_alloc_custom(ops, size, used,
max)" in the C side, if the structure we want to allocate has a pointer, is
the "size"  going to be size of the structure itself only, or should we also
include the memory block that pointer points to?

Thanks,
Lin

[-- Attachment #2: Type: text/html, Size: 441 bytes --]

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

end of thread, other threads:[~2010-05-20 22:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-17 18:00 What should the "size" in "caml_alloc_custom" be? lyn HONG
2010-05-18  6:58 ` [Caml-list] " Goswin von Brederlow
2010-05-18 14:58   ` lyn HONG
2010-05-18 17:33     ` Goswin von Brederlow
2010-05-20 22:04 ` 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).