Date: Mon, 24 Feb 1997 18:18:06 +0200 (IST) From: Eli Zaretskii To: "A.Appleyard" cc: DJGPP AT delorie DOT com Subject: Re: How to find all references? In-Reply-To: <334FBF9568F@fs2.mt.umist.ac.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Mon, 24 Feb 1997, A.Appleyard wrote: > > How about grep: can you look at all the places the variables and functions > > are mentioned, then see whether any of them is a function call (for a > > function) or if a variable is getting a value? > > But I use functions and variables in hundreds of places! Can you define a pattern or a regular expression that distinguishes between a function/variable *definition/declaration* and its *use*? If so, you can run egrep or sed on the output of the first grep. Btw, I still think that NM is your answer. Can you tell why you couldn't make it help you?