On Thu, Aug 27, 2009 at 6:47 AM, Ashok Gautham<[email protected]> wrote: > > I have a way of reading the source. It is logical and I use it when I use > sources myself. > > Have 3 windows. > 1) An editor of your choice in the folder that you want > 2) A file manager > 3) cscope > > I generally tile this up into the editor as one half screen, cscope top right > and mc bottom right(NOTE: Unnecessary info) > > By trial and error, I find the list of files that do not depend on > non-standard headers. > I read the sources in them and then use cscope to find out where the > functions, > structures and macros are used. > > Then I find out the file that has least fan-in. Preferrably, only the > header/files that I > already reviewed. > > Slowly, the entire source is covered. > > --- > Ashok `ScriptDevil` Gautham > > P.S. This might not be the best method. An alternate is to start at > the main file > and then navigate down using cscope to find the declarations. But I > find that makes > me dizzy since I get distracted often :P > _______________________________________________
ctags with vim. I don't use cscope anymore. $ ctags -R * $vim foo.c Press C-] to go to a definition of function or structure. You can come back by pressing C-T. You can also search for tags by :tagsearch /foo Anyway this article will help. http://linuxjournal.com/article/8289 -Girish -- Gayatri Hitech web: http://gayatri-hitech.com SpamCheetah Spam filter: http://spam-cheetah.com _______________________________________________ To unsubscribe, email [email protected] with "unsubscribe <password> <address>" in the subject or body of the message. http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
