public inbox for sourcenav@sourceware.org
 help / color / mirror / Atom feed
* RE: help with unused functions
@ 2000-10-17 16:46 William Gacquer
  2000-10-17 16:55 ` Ben Elliston
  0 siblings, 1 reply; 4+ messages in thread
From: William Gacquer @ 2000-10-17 16:46 UTC (permalink / raw)
  To: Mo DeJong, sourcenav

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: help with unused functions
  2000-10-17 16:46 help with unused functions William Gacquer
@ 2000-10-17 16:55 ` Ben Elliston
  0 siblings, 0 replies; 4+ messages in thread
From: Ben Elliston @ 2000-10-17 16:55 UTC (permalink / raw)
  To: William Gacquer; +Cc: Mo DeJong, sourcenav

   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.

Correct.

   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.

That's right.

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

No, it means it has no cross-references.

Ben

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: help with unused functions
  2000-10-17 16:11 William Gacquer
@ 2000-10-17 16:18 ` Mo DeJong
  0 siblings, 0 replies; 4+ messages in thread
From: Mo DeJong @ 2000-10-17 16:18 UTC (permalink / raw)
  To: sourcenav

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* help with unused functions
@ 2000-10-17 16:11 William Gacquer
  2000-10-17 16:18 ` Mo DeJong
  0 siblings, 1 reply; 4+ messages in thread
From: William Gacquer @ 2000-10-17 16:11 UTC (permalink / raw)
  To: sourcenav

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

________________
William Gacquer
Rayman 2 PS2 team - Ubi Simulations - Annecy France


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2000-10-17 16:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-10-17 16:46 help with unused functions William Gacquer
2000-10-17 16:55 ` Ben Elliston
  -- strict thread matches above, loose matches on Subject: below --
2000-10-17 16:11 William Gacquer
2000-10-17 16:18 ` Mo DeJong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).