help-global
[Top][All Lists]
Advanced

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

How to index global variable definition?


From: Boson Hubble
Subject: How to index global variable definition?
Date: Sun, 19 Dec 2010 15:02:15 +0800

Hi,
It seems gtags (5.9.3) can't index global variable definition as object in C source file. An example:
try.h:
/* === try.h begin === */
extern int var_dec;
int var_def;
void func_dec ();
void func_def () {}
/* === try.h end === */

I ran gtags in the directory try.h reside in:
$ gtags

then printed all object names:
$ global -c

The output:
func_def

Could you give me some hints on how to index global variable definition/declaration and function declaration as object (not symbol) with gtags?

Thanks,

Boson





reply via email to

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