help with unused functions

William Gacquer wgacquer@ubisoft.fr
Tue Oct 17 16:46:00 GMT 2000


Thanks for being so fast!

should in look in the ".to" or the ".by" databases? I see no other database
to look at to retrieve the "access" status of a function.

But when I have an isolated function - foo(), for instance - in the code
that neither used nor referring to anything, foo() is visible in .fil, .fu
but not .to and .by.

Does that mean that SN is not able to find the isolated functions?

-----Original Message-----
From: Mo DeJong [ mailto:mdejong@cygnus.com ]
Sent: mercredi 18 octobre 2000 01:19
To: sourcenav@sourceware.cygnus.com
Subject: Re: help with unused functions


On Wed, 18 Oct 2000, William Gacquer wrote:

> Can somebody send me a short tcl script or C code that retrieves all
unused
> functions in a C project?
> 
> I apologize for asking this kind of question but I am in hurry : 2 days to
> finish our game....
> 
> Thanks in advance.
> 	William

Take a look at share/sdk/api/tcl/database/examples/unused.tcl
in the install dir. It prints unused variables, you will
have to adapt it a bit but it should be of some help.
There are other examples in that same dir that can
help you get started.

Mo DeJong
Red Hat Inc


More information about the Sourcenav mailing list