From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id NAA28874; Fri, 1 Jun 2001 13:48:06 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id NAA28742 for ; Fri, 1 Jun 2001 13:48:05 +0200 (MET DST) Received: from verdot.inria.fr (verdot.inria.fr [128.93.11.7]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f51Bm2114221; Fri, 1 Jun 2001 13:48:02 +0200 (MET DST) Received: (from ddr@localhost) by verdot.inria.fr (8.9.3/8.9.3) id NAA19587; Fri, 1 Jun 2001 13:48:02 +0200 Date: Fri, 1 Jun 2001 13:48:02 +0200 From: Daniel de Rauglaudre To: Harry Chomsky Cc: Caml list Subject: Re: [Caml-list] Win32 API Message-ID: <20010601134802.G15012@verdot.inria.fr> References: <00c301c0ea11$17a38570$22f65140@w2kpro> <20010601001301.A11836@verdot.inria.fr> <00ff01c0ea25$68d716f0$22f65140@w2kpro> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0us In-Reply-To: <00ff01c0ea25$68d716f0$22f65140@w2kpro>; from harry@chomsky.net on Thu, May 31, 2001 at 03:59:55PM -0700 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi, On Thu, May 31, 2001 at 03:59:55PM -0700, Harry Chomsky wrote: > OK, I think I'm understanding this better now. So if a C function does all > of its work using simple macros like Val_int then it's ok, but if it does > anything that might cause the OCaml runtime to allocate memory, then it has > to use the CAMLparam and CAMLreturn macros as described in the > documentation. Is that right? Right. And CAMLlocal also. -- Daniel de RAUGLAUDRE daniel.de_rauglaudre@inria.fr http://cristal.inria.fr/~ddr/ ------------------- To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr