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=0.9 required=5.0 tests=AWL,SPF_SOFTFAIL autolearn=disabled version=3.1.3 Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id 7E964BBAF for ; Tue, 16 Jun 2009 10:40:52 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqYBALj3NkpVnozDlGdsb2JhbACBT5cCAQEBAQkLCAkTBblHhA0F X-IronPort-AV: E=Sophos;i="4.42,227,1243807200"; d="scan'208";a="29621871" Received: from mail193.messagelabs.com ([85.158.140.195]) by mail3-smtp-sop.national.inria.fr with SMTP; 16 Jun 2009 10:40:35 +0200 X-VirusChecked: Checked X-Env-Sender: christoph.bauer@lmsintl.com X-Msg-Ref: server-3.tower-193.messagelabs.com!1245141632!12287963!1 X-StarScan-Version: 6.0.0; banners=-,-,- X-Originating-IP: [213.68.136.230] Received: (qmail 12247 invoked from network); 16 Jun 2009 08:40:32 -0000 Received: from kaiserslautern1.lms-gmbh.de (HELO mail-in.lmsintl.com) (213.68.136.230) by server-3.tower-193.messagelabs.com with SMTP; 16 Jun 2009 08:40:32 -0000 Received: from KL-SRV57.lmsintl.com (unknown [10.2.100.57]) by mail-in.lmsintl.com (Postfix) with ESMTP id 644E743C005 for ; Tue, 16 Jun 2009 11:03:59 +0200 (CEST) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: C Interface and float record Date: Tue, 16 Jun 2009 10:40:31 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: C Interface and float record Thread-Index: AcnuXhu4V+2aygC9SsCGTu80rEXJ4A== From: "Christoph Bauer" To: X-Spam: no; 0.00; alloc:01 alloc:01 caml:02 caml:02 external:03 float:03 float:03 christoph:04 christoph:04 interface:06 allocate:06 allocate:06 i'm:09 bauer:09 bauer:09 Hi, I have a type type t =3D { f1 : float; f2 : float; f3 : float; } and a external C-function should allocate this as for the result. Do I have to use caml_alloc(6, Double_array_tag) to allocate such a record? I'm unsure about the 6. Could I also use caml_alloc_small?=20 Thanks, Christoph Bauer