Robert Gamble wrote:
CBFalconer wrote: Uday wrote:
Is there way to list all functions in a C files? I've to rename
all the functions.
Many. nm, cscope, xref all come to mind.
What exactly would be the prescribed procedure for obtaining a
list of all functions in a source file using cscope?
Cscope does seem to be a problem. It also has some funny ideas
about what constitutes a function.
However the xref I include in the hashlib package (DOS executable
only, source is lost) marks all function names with a terminal ().
So you can easily pick out the list with simple things such as
"grep () <xrefoutput.xrf>". However it won't discriminate between
static declarations in different files. It considers functional
macros to be functions and has similar failings to cscope. To
illustrate:
#include <iso646.h>
int main(void) {
while (not(something)) continue;
....
and cscope and xref both think not is a function.
--
Chuck F (cb********@yahoo.com) (cb********@worldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!