Re: __initfunc - very clever and nice, but...

Andreas Schwab (schwab@issan.informatik.uni-dortmund.de)
10 Jul 1998 12:06:49 +0200


Tigran Aivazian <tigran@sco.COM> writes:

|> Hello guys,
|>
|> I am sure __initfunc was a very good idea in terms of throwing away the
|> unused init code but it creates a small nuisance with respect to using
|> ctags/vim. I already mailed the author of vim(1) but his responce was very
|> logical explanation that since this is not C there is no reason why ctags
|> should recognise the stuff starting with __initfunc as a function.
|>
|> For example, if I try vi -t start_kernel I get two tags - both in alpha
|> arch which I have no interest in, simply because the i386 one is
|> __initfunc.
|>
|> Is there some other clever way to indicate that a function is to be
|> __initfunc'ed and yet keep it visible to ctags(1)?

Use ctags --regex='/__initfunc *([^(]+ *(/'. You need the GNU version
of ctags as distributed with Emacs.

-- 
Andreas Schwab                                      "And now for something
schwab@issan.informatik.uni-dortmund.de              completely different"
schwab@gnu.org

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu