<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">no problem for me.&nbsp;<div><div>And yes, xcode sucks badly, and visualstudio sucks worst :(</div><div><br><div><div>El 19/01/2011, a las 7:13p.m., Alexander Lazarević escribió:</div><br class="Apple-interchange-newline"><blockquote type="cite">2011/1/19 Igor Stasenko <span dir="ltr">&lt;<a href="mailto:siguctua@gmail.com">siguctua@gmail.com</a>&gt;</span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

yeah it's a pain to find the definition using grep.. A good C/C++ IDE<br>
helps a lot in this regard..<br>
unfortunately not all platforms having decent IDEs.. (Xcode is a piece<br>
of shit ;) ).<br>
currently i using things like this:<br>
<br>
find -type f | xargs grep fooo<br>
<br>
where foo is my search string/pattern :)<br></blockquote><div><br>I can recommend etags and emacs in this regard.<br><br># create the TAGS file at the root of the platforms code<br>rm -f TAGS<br>find platforms -type f -iname "*.[ch]" -exec etags --append {} \;<br>

<br># Start with a file you want to examine<br>emacs platforms/unix/src/vm/interp.c<br><br>Now place the cursor on any function/macro/struct/... you want to look up the definition and type M-. (find-tag)<br>(Doing this the first time you have to say that you want to use above created TAG file) and it will<br>

jump to the file and definition. There are also other commands that will jump to every use of a function etc.<br><br>Alex<br><br>PS: There is emacs for macs and windoze<br>PPS: There are rumors that there is something similar as etags for another editor called vi<br>

PPPS: Xcode can't be worse than VisualStudio<br></div></div>
</blockquote></div><br></div></div></body></html>