From: Laurent Marzullo <marzullo@la-defense.oilfield.slb.com>
Subject: Calling function (command-line) from c++ dll
Date: Mon, 17 Nov 2003 10:31:35 +0100 [thread overview]
Message-ID: <1069061495.31347.32.camel@MARZULLO-MIS> (raw)
Hello,
I'm currently writting a module that I load with (load-extension)
function and I'm tryin to get the command line option of the guile
script into the init function of the dll.
------ guile script ----------------------------
#!/usr/local/bin/guile -s
!#
(load-extension "libpvcs" "init_pvcs")
-----------------------------------------------
------ c++ source file -------------------------
void
init_pvcs( void )
{
SCM command_line_func = scm_c_lookup( "command-line" );
// Now I'm trying to call command-line, which must return
// a list, isn't it ???
//
SCM arg_lst = scm_c_call_with_current_module(
scm_current_module(),
????????? ,
0 );
// How do I call it ??
}
------------------------------------------------
How to call command-line from a C module ?????
Thanks a lot !!
--
Laurent Marzullo <marzullo@la-defense.oilfield.slb.com>
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel
reply other threads:[~2003-11-17 9:31 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1069061495.31347.32.camel@MARZULLO-MIS \
--to=marzullo@la-defense.oilfield.slb.com \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).