I am reading source code of xl2tpd, and face lots of problems when reading this code. For example I cannot find where the structure lac is defined. How do I find the definition of this structure?
I have used ctags and vim to read this code, but failed to find the structure. I googled and could not find the structure. Is there any method that can make the code reading process more comfortable? That is, I can jump to definition of most variables, functions and structures?
try cscope with vim. follow steps below –
1) run
cscope -Rin xl2tpd directory . it will create file cscope.out2) open file with vim where structure
lacis used3) use
:cs f g <lac>. now it will show the files wherelacis defined .4) choose
file.h. it contain the definition .if you are perticulerly interested in definition of struct
lacit is below –