From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.user Subject: Re: snarf .h files Date: Fri, 25 Nov 2011 00:29:40 +0100 Message-ID: <87obw1f6aj.fsf@gnu.org> References: <1322071009.46980.YahooMailNeo@web37907.mail.mud.yahoo.com> <87aa7myafv.fsf@gnu.org> <1322108616.47530.YahooMailNeo@web37901.mail.mud.yahoo.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1322177393 16444 80.91.229.12 (24 Nov 2011 23:29:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 24 Nov 2011 23:29:53 +0000 (UTC) Cc: "guile-user@gnu.org" To: Mike Gran Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Nov 25 00:29:49 2011 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RTijk-00019u-T4 for guile-user@m.gmane.org; Fri, 25 Nov 2011 00:29:49 +0100 Original-Received: from localhost ([::1]:34179 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTijk-0005rO-AF for guile-user@m.gmane.org; Thu, 24 Nov 2011 18:29:48 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:59987) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTijg-0005rI-Oy for guile-user@gnu.org; Thu, 24 Nov 2011 18:29:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RTijf-0000km-21 for guile-user@gnu.org; Thu, 24 Nov 2011 18:29:44 -0500 Original-Received: from mail1-relais-roc.national.inria.fr ([192.134.164.82]:10674) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTije-0000kh-Sa for guile-user@gnu.org; Thu, 24 Nov 2011 18:29:43 -0500 X-IronPort-AV: E=Sophos;i="4.69,568,1315173600"; d="scan'208";a="132525963" Original-Received: from reverse-83.fdn.fr (HELO pluto) ([80.67.176.83]) by mail1-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES128-SHA; 25 Nov 2011 00:29:41 +0100 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 5 Frimaire an 220 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu In-Reply-To: <1322108616.47530.YahooMailNeo@web37901.mail.mud.yahoo.com> (Mike Gran's message of "Wed, 23 Nov 2011 20:23:36 -0800 (PST)") User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.90 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 192.134.164.82 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:8999 Archived-At: Hey, Mike Gran skribis: >> From: Ludovic Court=C3=A8s > >>> Basically to search for c file definitions like this... >>> =C2=A0 >>> SCM_DEFINE (cfunc, "gfunc", 1, 0, 0, (SCM arg), "a function"); >>> =C2=A0 >>> and return header declarations like this >>> =C2=A0 >>> SCM cfunc (SCM arg); >> >>There=E2=80=99s no such tool AFAIK, but you can always come up with one.= =C2=A0 :-) > > > Cool.=C2=A0 I was able to cobble something together. > > >>The tools at >> >>could serve as a starting point, I think. > > There's a argument ordering bug in your output.scm. The procedure > > run-cpp-and-extract-snarfing expects (1) file, (2) cpp, (3) cpp-flags > but it is passed (2) cpp, (1) c-file, (3) cflags from within > > output-procedure-texi-documentation-from-c-file. Oh nice. :-) This one is actually unused, though. Thanks! Ludo=E2=80=99.