From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Dziulko Newsgroups: gmane.emacs.help Subject: etags Date: Tue, 17 Jun 2003 08:09:13 -0400 (EDT) Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1055853160 18162 80.91.224.249 (17 Jun 2003 12:32:40 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 17 Jun 2003 12:32:40 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 17 14:32:33 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19SFdZ-0004iF-00 for ; Tue, 17 Jun 2003 14:32:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19SFLm-0005su-HZ for gnu-help-gnu-emacs@m.gmane.org; Tue, 17 Jun 2003 08:14:10 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19SFKQ-0004km-BO for help-gnu-emacs@gnu.org; Tue, 17 Jun 2003 08:12:46 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19SFK5-0004C8-Mh for help-gnu-emacs@gnu.org; Tue, 17 Jun 2003 08:12:26 -0400 Original-Received: from klaatu.canisius.edu ([138.92.8.100]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19SFH1-0002W0-2M for help-gnu-emacs@gnu.org; Tue, 17 Jun 2003 08:09:15 -0400 Original-Received: from localhost (dziulko@localhost) by klaatu.canisius.edu (8.11.6/8.11.6) with ESMTP id h5HC9DL11536 for ; Tue, 17 Jun 2003 08:09:13 -0400 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:10994 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10994 Hello I am looking for a way to get a list of all user defined #define's in some C code that actaully get used. I was reading up a little on etags, and I think it might help me with this. Has anyone done or seen anything close to this? Example: #include #define MSG1 "Hello, world!" #define CONST1 42 int main () { (void) printf("\n%s\n", MSG1); return 0; } ///////////////// Idealy, I would want something to say: Line 7: MSG1 Perhaps this isn't the best place to post this. If you know a better place, please let me know. Thanks a lot! Kevin