[TxMt] QuickOpen included files

Ryan Wilcox ryanwilcox at mac.com
Thu Apr 19 16:19:18 UTC 2007


On Apr 19, 2007, at 11:51 AM, Juan Falgueras wrote:

>
> Is not easy to know where the cpp preprocessor look for the  
> included files.

> @incs = qw(
> /usr/include/c++/4.0.0
> /usr/include/c++/4.0.0/powerpc-apple-darwin8
> /usr/include/c++/4.0.0/backward
> /usr/local/include
> /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include
> /usr/include
> /System/Library/Frameworks
> /Library/Frameworks
> );

It would be really _really_ cool if you could specify (via an  
environmental variable) where to look for include files (think  
basically a duplication of the search paths you pass to gcc/XCode).

Something like:

TM_HEADER_SEARCH_PATHS = /opt/local/include/:~/Projects/common/headers

(where the colon is the separator between items, being one of the few  
illegal characters in the Mac OS file system).

You could also do relative paths, being relative to TM_DIRECTORY/ 
TM_PROJECT_DIRECTORY.

These would then get exploded into a list and added on to @incs here

Hope this helps,
_Ryan Wilcox





More information about the textmate mailing list