summaryrefslogtreecommitdiffstats
path: root/src/namespacedef.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2014-02-20 19:47:17 (GMT)
committeralbert-github <albert.tests@gmail.com>2014-02-20 19:47:17 (GMT)
commitb0456fbefa864b33611f289818deeaaf791c17c9 (patch)
tree82071291d54bcb333c8bd1be6d6242925016c74a /src/namespacedef.cpp
parent9b76c1a9bb7039962933aeef398bb7aa2f59c3a5 (diff)
downloadDoxygen-b0456fbefa864b33611f289818deeaaf791c17c9.zip
Doxygen-b0456fbefa864b33611f289818deeaaf791c17c9.tar.gz
Doxygen-b0456fbefa864b33611f289818deeaaf791c17c9.tar.bz2
Bug 724241 - Internal inconsistency: namespace in IDL
Library was missing in the list of namespaces. In scanner.l constants, module and library are handled in the same way. In namespace.{h,cpp} only constants and module were handled, now also library is handled in a similar way.
Diffstat (limited to 'src/namespacedef.cpp')
-rw-r--r--src/namespacedef.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/namespacedef.cpp b/src/namespacedef.cpp
index 253b712..b43173d 100644
--- a/src/namespacedef.cpp
+++ b/src/namespacedef.cpp
@@ -68,6 +68,10 @@ NamespaceDef::NamespaceDef(const char *df,int dl,int dc,
{
m_type = CONSTANT_GROUP;
}
+ else if (type && !strcmp("library", type))
+ {
+ m_type = LIBRARY;
+ }
else
{
m_type = NAMESPACE;
@@ -1109,9 +1113,13 @@ QCString NamespaceDef::compoundTypeString() const
{
return "constants";
}
+ else if (isLibrary())
+ {
+ return "library";
+ }
else
{
- err("Internal inconsistency: namespace in IDL not module or constant group\n");
+ err("Internal inconsistency: namespace in IDL not module, library or constant group\n");
}
}
return "";