Re: [Ctags] Exuberant Ctags problem with extern ... INIT
Brought to you by:
dhiebert
|
From: Darren H. <dar...@te...> - 2001-12-10 04:16:36
|
Long, long, ago, on Wed, 28 Nov 2001, James A Paget wrote: > > > ...in the application I am working on, Exuberant Ctags fails to > > > find a few of the tags. The problem occurs in files such as > > > include.h, listed below: > > > > > > #ifdef ALLOCATE > > > #define extern > > > #define INIT(A) = (A) > > > #else > > > #define INIT(A) > > > #endif > > > > > > extern int unfound INIT(0); > > > > > > I have tried to get ctags to include unfound, but to no avail. Here > are > > > two approaches I tried, neither of which resulted in a tag for > "unfound": > > > > > > ctags -f - -I INIT== include.h > > > This works for me. I do not know why this does not work for you. > > I put the above text exactly into a file and ran it exactly as you > > indicated. > > I've tried this using Exuberant Ctags 5.1 on Windows 2000 and it still > does not work. You are indeed correct about this not working. When I look at the code, there is no way this could work (e.g. -I only works for name replacement, not for symbol replacement). Apparently I was dreaming when I thought I had tried this because it certainly doesn't work now. I claim senility as a defense. -- Darren Hiebert <da...@hi...> http://darren.hiebert.com |