global doesn't respect functions declared as static

Mohammed Sadiq <[email protected]>
Newsgroups gmane.comp.gnu.global.bugs
Message-ID <8760k1xyb5.fsf@rose>
In C source, I have defined two static functions in separate files. When I
search for definition of one of these, I sometimes get the wrong location.

What I did:
global -d my_func --from-here "133:/path/to/src/my-source.c"

Result I got:
src/my-first-source.c
src/my-source.c

As I have given --from-here argument, it should be showing only the definition
from the same file (as the function is declared static).

Expected result:
src/my-source.c


Alternatly, if it is hard to track the return type of functions, the result
can be sorted that the first item shown is from the same file (when there is a
match).

Ie, The result then would be:
src/my-source.c
src/my-first-source.c


Note: I have been using ggtags in GNU Emacs. Looking into source, I see this is
ggtags is doing. So I think, the first result is what that matters the most.

Thanks
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.