all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Francesco Potorti` <Potorti@isti.cnr.it>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: etags: function not indexed after macro
Date: Tue, 23 May 2006 13:11:41 +0200	[thread overview]
Message-ID: <E1FiUnd-00015r-00@pot.isti.cnr.it> (raw)
In-Reply-To: "rap@zurich.ibm.com"'s message of Fri, 12 May 2006 10:53:44 +0200

Dear Roman,

the etags bug that you signaled:

>#define DECLARE_TEST(name)      \
>        static int test_##name;
>
>DECLARE_TEST(var)
>
>
>
>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
workaround.

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;
   
   DECLARE_TEST(var)
================

rather than this style?

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

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

             reply	other threads:[~2006-05-23 11:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-23 11:11 Francesco Potorti` [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-05-12  8:53 etags: function not indexed after macro Roman Pletka
2006-05-13  8:00 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1FiUnd-00015r-00@pot.isti.cnr.it \
    --to=potorti@isti.cnr.it \
    --cc=bug-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.