From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: weis Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id SAA20851 for caml-redistribution; Tue, 14 Dec 1999 18:29:18 +0100 (MET) Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id OAA05685 for ; Tue, 14 Dec 1999 14:57:41 +0100 (MET) Received: from nenuphar.saclay.cea.fr (nenuphar.saclay.cea.fr [132.166.192.7]) by nez-perce.inria.fr (8.8.7/8.8.7) with ESMTP id OAA21848 for ; Tue, 14 Dec 1999 14:57:38 +0100 (MET) Received: from orion.serma.cea.fr (orion.serma.cea.fr [132.166.151.161]) by nenuphar.saclay.cea.fr (8.9.1a/8.9.1/CEAnet-relay-5.0.D20) with ESMTP id OAA20924 for ; Tue, 14 Dec 1999 14:57:39 +0100 (MET) Received: from cea.fr (localhost [127.0.0.1]) by orion.serma.cea.fr (8.9.3/8.8.7) with ESMTP id OAA15445 for ; Tue, 14 Dec 1999 14:57:38 +0100 Sender: weis Message-ID: <38564CD2.E5C1A7E4@cea.fr> Date: Tue, 14 Dec 1999 13:57:38 +0000 From: Patrick Goldbronn - SYSCO Organization: CEA X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.2.9-27mdksmp-fb i686) X-Accept-Language: fr-FR, en MIME-Version: 1.0 To: "Inria, caml" Subject: use of camlidl Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Content-Transfer-Encoding: 8bit Hello, (sorry for bad english) I have 2 questions about use of camlidl. 1) I'd like to give the caml name of the interfacing C function : for example, I have the function : void NP_do (int n , double val) ; With camlidl, I get the caml function nP_do: int -> float -> unit ; I'd like to have the name 'do' (in module np.ml :) ) I see that for typedef with attribute mltype. I don't see an attribute mlname :( Can I do such thing ? 2) I see in documentation (in section 3.7 page 10) value c2ml (ty * input) ; void ml2c (value input, ty * output) ; But in generated C file, I see another argument : 'camlidl_ctx _ctx' So (after error during compilation) I added camlidl_ctx in function c2ml and ml2c but I don't use it (of course I don't know what is it :( ) value c2ml (ty * input, camlidl_ctx _ctx) ; void ml2c (value input, ty * output, camlidl_ctx _ctx) ; That's right nevertheless ? Thank's for your light :) -- ##################################### # Patrick GOLDBRONN # # CEA - DRN/DMT/SYSCO # # CE-Saclay, Bâtiment 460 # # 91191 GIF/YVETTE CEDEX (FRANCE) # # # # Tél : 01 69 08 73 55 # # Fax : 01 69 08 96 96 # #####################################