From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.2 required=5.0 tests=AWL,SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id AAA10BC69 for ; Wed, 9 May 2007 15:47:50 +0200 (CEST) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l49DloeQ002744 for ; Wed, 9 May 2007 15:47:50 +0200 Received: by ug-out-1314.google.com with SMTP id k3so274689ugf for ; Wed, 09 May 2007 06:47:47 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=rKcigDfwtaUBAYIzRBwXdIYWZo9BPYqGAQucCqtgWpGWO05T7EHiSHsGbTz692/utnSPJloIyWxuQinCMWunLrs8LY24u/yPoY6y8U2einNJkEiQfs2gm5+awxJfhvZ2Gtmwpo0zE1G0WfkrCY1fB6Td12TPFx7/FASltITQZ4M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=YvxTPgD6Wu71anyskG9E7Jr0QaH/3+Dov4hTdD81Se84Y5ehj4U5pNRYmwyKHV/DTd9YOE01aS7hz1AWbaDnW7sEIEiVtoRs76sBvASpxQjBJEd5ZbPdbsjBzJrYsLOJHjDuXDa84++XGpJ93YHIOqZiXxqBEyq3ZjzUHN8xK8c= Received: by 10.78.138.14 with SMTP id l14mr126351hud.1178718466319; Wed, 09 May 2007 06:47:46 -0700 (PDT) Received: by 10.78.21.20 with HTTP; Wed, 9 May 2007 06:47:46 -0700 (PDT) Message-ID: Date: Wed, 9 May 2007 09:47:46 -0400 From: "Markus Mottl" To: "Jean-Marc EBER" Subject: Re: [Caml-list] question about the OCaml/C interface Cc: "Ocaml Mailing List" In-Reply-To: <46419449.5090404@lexifi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <46419449.5090404@lexifi.com> X-j-chkmail-Score: MSGID : 4641D106.001 on concorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at concorde with ID 4641D106.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; markus:01 mottl:01 markus:01 mottl:01 ocaml:01 lexifi:01 camlprim:01 camlparam:01 ocaml:01 jeanmarc:01 eber:01 eber:01 wrote:01 caml-list:01 jean-marc:01 On 5/9/07, Jean-Marc EBER wrote: > Is the following code "correct": > > CAMLprim value my_func(...) > { > CAMLlocal2(ret); There should be a CAMLparam0() on entry, otherwise the code seems correct to me. Regards, Markus -- Markus Mottl http://www.ocaml.info markus.mottl@gmail.com