Re: How to find the definition effectively

"Shigio YAMAGUCHI" <[email protected]>
Newsgroups gmane.comp.gnu.global.general
Message-ID <[email protected]>
Hi,

At present, there might be no good method.

GLOBAL classifies all symbols into three:
o definition
o reference
o other symbol

Current GLOBAL treats struct name 'a' shown below as other symbol,

        struct a {
                int b;
        };

So, it cannot distinguish the definition and the reference.

We can modify the parser of GLOBAL to distinguish difinition and
reference. It is already in the TODO list.

[Plans for the future]
<http://www.gnu.org/software/global/plans.html>
o Pickup definitions of data type, enum name, enum value, union name
  and struct name. Finally, remove GSYMS. (gtags-parser, gtags)

This will be achieved some time.

> I want to use global and emacs to work with the Linux 2.6 kernel source.
> When I try to find the definition of list_head (it can be found in
> $linux_src/include/linux/list.h),
> I was  swamped with 1151 results including definition and references.
> So ,how to find the definition effectively?
--
Shigio YAMAGUCHI <[email protected]> - Tama Communications Corporation
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3
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.