Mail Archives: djgpp/1998/10/13/11:15:10
On Fri, 9 Oct 1998, George Foot wrote:
> Basically, browse around until you find what you're looking for.
> Something like `grep' is very helpful here -- or even "dir /s
> sqrt*.c" or using djgpp builds of fileutils "ls .../sqrt*.c".
> Also note that some editors (Emacs?) have the facility to scan a
> directory tree for function definitions, and remember exactly
> which file defines which function, allowing you to later look up
> functions just by typing their names.
Actually, the best tool for this job is GNU ID-utils
(v2gnu/idu32b.zip). They are like Grep, but they work by making a
database of tokens in the directory hierarchy, and then search that
database. Since library sources seldom change, you can make the
database once, and then searches are lightning-fast. Also, the
tokenizer is source language sensitive, so it gets the job done with
less clutter than Grep. And of course there's an Emacs interface ;-).
- Raw text -