[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: snarf .h files
From: |
Mike Gran |
Subject: |
Re: snarf .h files |
Date: |
Wed, 23 Nov 2011 20:23:36 -0800 (PST) |
> 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.
Thanks,
Mike