On Fre, 2003-09-19 at 18:30, 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.

I'm not 100% sure if it works for calls hidden in macros,
especially considering mean constructs like

#define a some_
#define b function
#define gotcha a ## b

and then look for "some_function". You'd really have to run
the preprocessor on the files to find such references.

But I know a tool which finds references to functions,
"global", from
ftp://ftp.cs.tu-berlin.de/pub/gnu/global/
It's a really cool tool anyway (sort of like tags on steroids).

You could also have a look at cscope from
http://sourceforge.net/project/showfiles.php?group_id=4664
I don't really know that one, but it's supposed to be
able to find references, too.

Hope this helps,
Torsten

Reply via email to