summaryrefslogtreecommitdiffstats
path: root/src/filedef.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2010-06-15 11:11:10 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2010-06-15 11:11:10 (GMT)
commit0c6ee149829948582e5e5c1b96c8b3105b02672a (patch)
treeb47b3252c432a415bf772add061e451f5782d6c7 /src/filedef.cpp
parenta1528245b280f1068daad8cd850ea345a3f8b568 (diff)
downloadDoxygen-0c6ee149829948582e5e5c1b96c8b3105b02672a.zip
Doxygen-0c6ee149829948582e5e5c1b96c8b3105b02672a.tar.gz
Doxygen-0c6ee149829948582e5e5c1b96c8b3105b02672a.tar.bz2
Release-1.7.0
Diffstat (limited to 'src/filedef.cpp')
-rw-r--r--src/filedef.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/filedef.cpp b/src/filedef.cpp
index 7593834..d963688 100644
--- a/src/filedef.cpp
+++ b/src/filedef.cpp
@@ -92,8 +92,9 @@ FileDef::FileDef(const char *p,const char *nm,
{
docname.prepend(stripFromPath(path.copy()));
}
- m_isJava = name().right(5)==".java";
- m_isCSharp = name().right(5)==".cs";
+ SrcLangExt lang = getLanguageFromFileName(name());
+ m_isJava = lang==SrcLangExt_Java;
+ m_isCSharp = lang==SrcLangExt_CSharp;
memberGroupSDict = 0;
acquireFileVersion();
m_subGrouping=Config_getBool("SUBGROUPING");
@@ -263,10 +264,8 @@ void FileDef::writeIncludeFiles(OutputList &ol)
bool isIDLorJava = FALSE;
if (fd)
{
- isIDLorJava = fd->name().right(4)==".idl" || // M$ or Corba IDL
- fd->name().right(5)==".pidl" ||
- fd->name().right(5)==".java" || // Sun's Java
- fd->name().right(4)==".jsl"; // M$ J#
+ SrcLangExt lang = getLanguageFromFileName(fd->name());
+ isIDLorJava = lang==SrcLangExt_IDL || lang==SrcLangExt_Java;
}
ol.startTypewriter();
if (isIDLorJava) // IDL/Java include