From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Laurent Marzullo Newsgroups: gmane.lisp.guile.devel,gmane.lisp.guile.user Subject: Calling function (command-line) from c++ dll Date: Mon, 17 Nov 2003 10:31:35 +0100 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <1069061495.31347.32.camel@MARZULLO-MIS> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7BIT X-Trace: sea.gmane.org 1069065282 356 80.91.224.253 (17 Nov 2003 10:34:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 17 Nov 2003 10:34:42 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Nov 17 11:34:39 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ALgiN-0006N8-00 for ; Mon, 17 Nov 2003 11:34:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ALhds-00064A-UU for guile-devel@m.gmane.org; Mon, 17 Nov 2003 06:34:04 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1ALhbs-0005Gj-Gm for guile-devel@gnu.org; Mon, 17 Nov 2003 06:32:00 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1ALhar-00044g-Bo for guile-devel@gnu.org; Mon, 17 Nov 2003 06:31:28 -0500 Original-Received: from [163.187.152.23] (helo=mail.slb.com) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ALha6-0003HC-R7; Mon, 17 Nov 2003 06:30:43 -0500 Original-Received: from conversion-daemon.eurmta02.montrouge.eur.slb.com by eurmta02.montrouge.eur.slb.com (iPlanet Messaging Server 5.2 HotFix 1.14 (built Mar 18 2003)) id <0HOH00H01RRFL1@eurmta02.montrouge.eur.slb.com>; Mon, 17 Nov 2003 10:28:45 +0000 (GMT) Original-Received: from snmsu2.montrouge.omnes.slb.com (snmsu2.montrouge.omnes.slb.com [163.187.152.4]) by eurmta02.montrouge.eur.slb.com (iPlanet Messaging Server 5.2 HotFix 1.14 (built Mar 18 2003)) with ESMTP id <0HOH00DJPQLGVH@eurmta02.montrouge.eur.slb.com>; Mon, 17 Nov 2003 10:03:16 +0000 (GMT) Original-Received: from snmsu1.montrouge.omnes.slb.com (snmsu1 [163.187.152.2]) by snmsu2.montrouge.omnes.slb.com (8.12.10/8.12.6) with ESMTP id hAHA3FrB000906; Mon, 17 Nov 2003 11:03:15 +0100 (MET) Original-Received: from dhcp-90-037.la-defense.eur.slb.com (dhcp-90-037.la-defense.eur.slb.com [163.187.90.37]) by snmsu1.montrouge.omnes.slb.com (8.12.10/8.12.6) with ESMTP id hAHA3E7t004672; Mon, 17 Nov 2003 11:03:14 +0100 (MET) Original-To: "Guile (Devel)" , Guile X-Mailer: Ximian Evolution 1.4.4 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:3038 gmane.lisp.guile.user:2392 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:2392 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 _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel