From: Patrick Goldbronn - SYSCO <patrick.goldbronn@cea.fr>
To: "Inria, caml" <caml-list@inria.fr>
Subject: use of camlidl
Date: Tue, 14 Dec 1999 13:57:38 +0000 [thread overview]
Message-ID: <38564CD2.E5C1A7E4@cea.fr> (raw)
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 #
#####################################
next reply other threads:[~1999-12-14 17:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-12-14 13:57 Patrick Goldbronn - SYSCO [this message]
1999-12-15 9:03 ` Patrick Goldbronn - SYSCO
1999-12-16 10:35 ` Xavier Leroy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=38564CD2.E5C1A7E4@cea.fr \
--to=patrick.goldbronn@cea.fr \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox