From mboxrd@z Thu Jan 1 00:00:00 1970 From: alex.shneer@verizon.com To: Ian Roxborough Cc: sourcenav@sources.redhat.com Subject: Re: cross references of static functions Date: Wed, 10 Jan 2001 13:47:00 -0000 Message-id: <852569D0.00764DD5.00@smtpsrv1.bigyellow.com> X-SW-Source: 2001-q1/msg00006.html Can you think of any possible workarounds or patches for 4.5.2 that could solve this or will it be fixed in the next version? There are similar scope management problems in the COBOL parser. I thought to borrow ideas from C++ parser to patch the cobol parser: no luck here, obviously. Ian Roxborough on 01/10/2001 04:23:01 PM To: alex.shneer@verizon.com cc: sourcenav@sources.redhat.com Subject: Re: cross references of static functions This sounds like bad scope management. One of the many parser problems that needs to be solved. Once we add support for things like namespaces and innerclasses, we should have way better scope management (well, really we need to improve scope management inorder to add namespace and innerclass support). Ian. alex.shneer@verizon.com wrote: > > Hi, > can anybody tell why cross reference window shows that both func1 and func2 > are referenced by static_func, > no matter wich one we choose: one defined in the static1.c or one defined > in static2.c? > > static1.c: > -------------------------------------- > static static_func() > { > func1(); > } > -------------------------------------- > static2.c > -------------------------------------- > static static_func () > { > func2(); > } > ---------------------------------------