source code suffixes

Sandy Meier smeier at rz.uni-potsdam.de
Fri Jan 28 00:17:49 GMT 2000


Am Mon, 24 Jan 2000 schrieb Shenderovich, Uri:
> Hi all,
> We're currently testing the Kdevelop (1.0 and 1.1b1) and we're very
> satisfied in generall.
> Nevertheless , we have couple of problems/questions :
> 
>  - Kdevelop doesn't add the source code with suffixes other than
> "*.c;*.cc;*.C" to the sources of the projects . In our case , 
>    the sources has the suffix *.x28 ( yes,it's C code )

At the moment this is hardcoded in the file kdevelop/cproject.cpp, but you can
change it and compile KDevelop again. :-)

----
ProjectFileType CProject::getType( const char *aFile )  
...
// Check for a known extension.
      if( ext == ".cpp" || ext == ".c" || ext == ".cc" ||
          ext == ".ec" || ext == ".ecpp" || ext == ".C" || ext == ".cxx" )
        retVal = CPP_SOURCE;
      else if( ext == ".h" || ext == ".hxx" || ext == ".hpp" || ext == ".H" || ext == ".hh" )
        retVal = CPP_HEADER;
      else if( ext == ".l++" || ext == ".lxx" || ext == ".ll" || ext == ".l")
        retVal = LEXICAL;
...
----

Have fun!

Sandy

--
email: smeier at rz.uni-potsdam.de  ICQ: 27681958
the KDevelop project: http://www.kdevelop.org
--
Hi! I'm a signature virus! Copy me into your signature file to help me
spread!




More information about the KDevelop mailing list