From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Dave Griffiths" Newsgroups: gmane.lisp.guile.user Subject: docstrings and snarfing Date: Thu, 13 Jul 2006 11:15:05 +0100 (BST) Message-ID: <29874.193.203.82.226.1152785705.squirrel@www.webmail.pawfal.org> Reply-To: dave@pawfal.org NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1152785763 19678 80.91.229.2 (13 Jul 2006 10:16:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 13 Jul 2006 10:16:03 +0000 (UTC) Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Jul 13 12:16:00 2006 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G0yEQ-00008l-Mx for guile-user@m.gmane.org; Thu, 13 Jul 2006 12:15:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G0yEQ-0004XX-0h for guile-user@m.gmane.org; Thu, 13 Jul 2006 06:15:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G0yDt-000433-SS for guile-user@gnu.org; Thu, 13 Jul 2006 06:15:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G0yDs-00041u-8a for guile-user@gnu.org; Thu, 13 Jul 2006 06:15:08 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G0yDs-00041n-3q for guile-user@gnu.org; Thu, 13 Jul 2006 06:15:08 -0400 Original-Received: from [66.33.201.159] (helo=webmail1.sd.dreamhost.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G0yFb-0006KJ-OR for guile-user@gnu.org; Thu, 13 Jul 2006 06:16:56 -0400 Original-Received: from www.webmail.pawfal.org (localhost [127.0.0.1]) by webmail1.sd.dreamhost.com (Postfix) with ESMTP id D6D292C6BB for ; Thu, 13 Jul 2006 03:15:05 -0700 (PDT) Original-Received: from 193.203.82.226 (SquirrelMail authenticated user dave@pawfal.org) by www.webmail.pawfal.org with HTTP; Thu, 13 Jul 2006 11:15:05 +0100 (BST) Original-To: guile-user@gnu.org User-Agent: SquirrelMail/1.4.6 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:5399 Archived-At: Hi all, I want to implement docstrings for my extension functions, but for various reasons I can't use snarfing (the array it generates has problems with C++ namespaces). So I had a look through the macros for SCM_DEFINE to find out what it does with the DOCSTRING argument, and got lost pretty quickly, so I tried running the example through the C preprocessor, and it seems the docstring is lost anyway: static const char s_clear_image [] = "clear-image"; SCM clear_image (SCM image_smob) { } void init_image_type () { # 1 "clear-image.x" 1 scm_c_define_gsubr (s_clear_image, 1, 0, 0, (SCM (*)()) clear_image); ; # 14 "clear-image.c" 2 } after snarfing and cpping the example code: #include SCM_DEFINE (clear_image, "clear-image", 1, 0, 0, (SCM image_smob), "Clear the image.") { /* C code to clear the image in image_smob... */ } void init_image_type () { #include "clear-image.x" } Any pointers to what happens with the docstring, or how I can implement them for my functions? Many thanks, dave _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user