[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: etags
From: |
Peter Lee |
Subject: |
Re: etags |
Date: |
Thu, 19 Jun 2003 17:42:06 GMT |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (windows-nt) |
>>>> Kevin Dziulko writes:
Kevin> Thanks for your reply, but "grep -n "^#define" *.c" isn't
Kevin> even close to what I'm looking for. I don't want a list of
Kevin> #define'ed constants, but rather #define'ed constants *THAT
Kevin> ACTUALLY GET USED*. That's why in my example I just wanted
Kevin> "Line 7: MSG1" and nothing about CONST1 to ever get
Kevin> listed. [also, I only want defines from my local program
Kevin> listed, and not any of the system library defines]. The
Kevin> cxref command is the closest to this that I've found thus
Kevin> far.
Seems like with a little lisp you could take the output of the above
grep and put it in a buffer. Then using a regex pattern to match your
actual constant, on that buffer, perform a grep on each one appending
the output to a seperate buffer.
Or you could do the above and if grep returns nothing for a given
constant, put that constant in a buffer... when it's done then all you
have is a list of constants that are *not* used and can then infer
that all others must be used somewhere.
- etags, Kevin Dziulko, 2003/06/17
- Re: etags, Alan Mackenzie, 2003/06/19
- Re: etags,
Peter Lee <=