bug-cflow
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-cflow] static function calls not being produced unless explicitly c


From: Josiah Carlson (NIM)
Subject: [bug-cflow] static function calls not being produced unless explicitly called
Date: Mon, 20 Aug 2007 13:05:44 -0700

Good day,

 

I have recently started using cflow, and I have noticed that it doesn’t produce static definition results in the call graph unless they are explicitly called by a non-static function.  For example…

 

When running the following source through cflow via ‘cflow test.c’…

 

static long

foo(void) {

    return 0;

}

 

int

main(char** argc, int argv) {

    /* uncomment the following and foo is now output */

    /* foo(); */

    return 1;

}

 

I get the following…

 

main() <int main (char **argc,int argv) at test.c:8>:

 

But when I uncomment the foo call, I get…

 

main() <int main (char **argc,int argv) at test.c:8>:

    foo() <long foo (void) at test.c:3>

 

Personally, I want to see all static functions in the output.  I have worked around it by temporarily removing the static portion of the declaration, but not having to do such a thing (to a few dozen files) would be nice.  If this is intended behavior, then I suppose I will live with it.

 

Thank you,

 - Josiah Carlson

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]