caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* OCaml Int64 <-> C int64_t
@ 2010-08-18 17:28 Jianzhou Zhao
  2010-08-18 17:36 ` [Caml-list] " Mathias Kende
  0 siblings, 1 reply; 4+ messages in thread
From: Jianzhou Zhao @ 2010-08-18 17:28 UTC (permalink / raw)
  To: caml-list

Hi,

To convert between OCaml Int64 and C Integer, I think uint64_t or
int64_t can be the target C type. Int64_val is the macro converting
OCaml value to int64, I failed to find the macro for the other
direction under ./byterun. ./byterun/ints.c defines operations on
int64, caml_copy_int64(I64_of_intnat(..)) seems to be working for such
conversion? But mlvalues.h does not declare them to use. How can I
convert int64 to value?

Thanks
-- 
Jianzhou


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

end of thread, other threads:[~2010-08-18 18:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-18 17:28 OCaml Int64 <-> C int64_t Jianzhou Zhao
2010-08-18 17:36 ` [Caml-list] " Mathias Kende
2010-08-18 18:16   ` Jianzhou Zhao
2010-08-18 18:47     ` Mathias Kende

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