[Top][All Lists]

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

Re: etags: function not indexed after macro

From: Francesco Potorti`
Subject: Re: etags: function not indexed after macro
Date: Tue, 23 May 2006 13:11:41 +0200

Dear Roman,

the etags bug that you signaled:

>#define DECLARE_TEST(name)      \
>        static int test_##name;
>void my_func(int i) {
>        test_var = i;
>void my_func2(int j) {
>        test_var = j;
>It looks like etags does not create an entry for the my_func function because
>the closing semicolon is in the definition of the macro. I am using etags that
>comes with GNU Emacs 21.4 (Debian emacs21 21.4a-3). I tried the same code with
>cscope and there it works.

as Eli Zaretskii correctly explains, has an easy and recommended

I will try nonetheless to correct the bug, but I am not sure if this can
be done, because of the way the etags parser is implemented.  Do you
have any strong reasons why you should use this style

   #define DECLARE_TEST(name) static int test_##name;

rather than this style?

   #define DECLARE_TEST(name) static int test_##name

Thank for your bug report, and please try to answer my question.

reply via email to

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