Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • It doesn't work 100% with plain C, but I used GCC-XML [gccxml.org] a bit with one of my C++ bindings [cpan.org] (look in the genscripts directory; they are very hacky, though, and far from comprehensive; a lot of work to do there...). Maybe there is something similar for plain C.
    • Thanks for the pointer! I will take a look at the program.

      At the time I though one of writing a parser for C header files and XS files, but I didn't find a grammar module in CPAN that was convincing enough. Now that Damian Conway has released Regexp::Grammars [cpan.org] I guess that the job could be easier.

      Although, I did find an advantage in scanning the .so libraries. As it clearly shows which functions are made "public" in the C API. It's nice for finding "private" functions that haven't declared as static.