guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: snarf .h files


From: Ludovic Courtès
Subject: Re: snarf .h files
Date: Fri, 25 Nov 2011 00:29:40 +0100
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.90 (gnu/linux)

Hey,

Mike Gran <address@hidden> skribis:

>> From: Ludovic Courtès <address@hidden>
>
>>> Basically to search for c file definitions like this...
>>>  
>>> SCM_DEFINE (cfunc, "gfunc", 1, 0, 0, (SCM arg), "a function");
>>>  
>>> and return header declarations like this
>>>  
>>> SCM cfunc (SCM arg);
>>
>>There’s no such tool AFAIK, but you can always come up with one.  :-)
>
>
> Cool.  I was able to cobble something together.
>
>
>>The tools at
>><http://git.savannah.gnu.org/cgit/gnutls.git/tree/guile/modules/system/documentation>
>>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’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]