On Friday, September 19, 2003, at 11:30 AM, Rodent of Unusual Size wrote:
i have a need to examine a bunch of c files to locate all invocations of a small set of routines. i need to know where they occur (line number and file), and their argument lists, even if they're hidden in macros or inlined .h files.
someone suggested that there's already some sort of toolset in the cpan world that can do this sort of thing; can anyone provide me with more information?
C::Scan may help:
http://search.cpan.org/author/HVDS/C-Scan-0.74/
We use it in mod_perl 2.0 (more like, used to use it), and it proved to be not-so-good with the apache 2.x source code. ExtUtils-XSBuilder [1] uses Parse::RecDescent which was reported to work much better. However C::Scan might do the job for your task.
*1 http://search.cpan.org/author/GRICHTER/ExtUtils-XSBuilder-0.23/XSBuilder/WrapXS.pm
__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
