Hi!
Synopsis:
Is there a way I can have SE recognize
static functions when it determines the calling tree?
Long version.
Background: I inherited many many thousands of lines of complex code. I've been using SE's ability to define #DEFINES to get around the problem of SE not seeing references and fully doing calling trees in code with #DEFINES. For the most part, I've been able to find a decent working set of #DEFINES. That's the
good news.
Now, I found another "issue" with SE and calling trees - static functions. Yea, it's been a while since *I* have used a compiler that didn't puke if I didn't do a prototype define. So, for local only functions (the reason why a function is defined to be "static"), I never worried or cared about using the keyword "static" in the function definition. But, I guess it's a good idea. Well, that is unless you use SE to give you the calling tree.
I looked and tried all of the options that I could find, and it didn't seem to make any difference.
Basically, SE does not parse/handle static functions properly while doing a calling tree. The code has many files. Some files are huge. A few files have
many functions in a
single file (hey, I didn't write the code initially
, and the most of the functions are defined as static. Yea, it's kinda OOP-like doing that way. OOP - YUCK!
Back on track: The functions call each other and the calling depth can go on for a number of levels. If I just nuke "static"
everywhere (I even nuked "static" on the variables - not good and unacceptable), then SE determined the calling tree just fine. But, I now need to have a separate copy of the code just so I can get the calling tree for these functions in these rather large files - not good. :-P
Also, since I'm not the only one working in the code, and there's the chance that we may share updates with the other group/project (originators), I do
not want to nuke the "static" definitions on functions.
So... Is there a way I can have SE recognize
static functions when it determines the calling tree?
Thanks in advance!Joe