From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id E5582BC57 for ; Wed, 18 Aug 2010 19:36:46 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Al8EAGe2a0xbebk/XGdsb2JhbACDGJ0+FwkMGSGuTZIsgSKDInMElC0 X-IronPort-AV: E=Sophos;i="4.56,228,1280700000"; d="scan'208";a="67949117" Received: from 70.mail-out.ovh.net ([91.121.185.63]) by mail4-smtp-sop.national.inria.fr with SMTP; 18 Aug 2010 19:36:46 +0200 Received: (qmail 4165 invoked by uid 503); 18 Aug 2010 17:31:27 -0000 Received: from b9.ovh.net (HELO mail188.ha.ovh.net) (213.186.33.59) by 70.mail-out.ovh.net with SMTP; 18 Aug 2010 17:31:26 -0000 Received: from b0.ovh.net (HELO queueout) (213.186.33.50) by b0.ovh.net with SMTP; 18 Aug 2010 19:36:45 +0200 Received: from ast-lambert-152-1-12-254.w82-124.abo.wanadoo.fr (HELO ?192.168.1.11?) (mathias@kende.eu@82.124.42.254) by ns0.ovh.net with SMTP; 18 Aug 2010 19:36:43 +0200 Subject: Re: [Caml-list] OCaml Int64 <-> C int64_t From: Mathias Kende To: Jianzhou Zhao Cc: caml-list@yquem.inria.fr In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Date: Wed, 18 Aug 2010 19:36:37 +0200 Message-ID: <1282152997.21939.13.camel@mathias-ens> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 1885600869492987029 X-Ovh-Remote: 82.124.42.254 (ast-lambert-152-1-12-254.w82-124.abo.wanadoo.fr) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: DONE|U 0.500064/N X-Spam: no; 0.00; ocaml:01 mlvalues:01 alloc:01 val:01 val:01 mathias:98 mathias:98 zhao:98 heap:01 caml-list:01 macros:01 int:01 int:01 caml:02 caml:02 Le mercredi 18 août 2010 à 13:28 -0400, Jianzhou Zhao a écrit : > But mlvalues.h does not declare them to use. How can I > convert int64 to value? caml_copy_int64 is declared in . There is no Val_int64 macro because int64 values are heap objects which must be allocated (the Val_... macros are mostly just static_cast). Mathias