summaryrefslogtreecommitdiffstats
path: root/src/vhdlscanner.l
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2009-06-22 20:14:03 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2009-06-22 20:14:03 (GMT)
commitb70a5b4f9325ec703db37394feeaa9ebc11228b4 (patch)
tree2f918f7da3205101b2a8a300ee9afefe247b3f24 /src/vhdlscanner.l
parent8375a55083e5232e65493e73cb594c9c5e9552ab (diff)
downloadDoxygen-b70a5b4f9325ec703db37394feeaa9ebc11228b4.zip
Doxygen-b70a5b4f9325ec703db37394feeaa9ebc11228b4.tar.gz
Doxygen-b70a5b4f9325ec703db37394feeaa9ebc11228b4.tar.bz2
Release-1.5.9-20090622
Diffstat (limited to 'src/vhdlscanner.l')
-rw-r--r--src/vhdlscanner.l10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/vhdlscanner.l b/src/vhdlscanner.l
index 2acd2dc..8e7b9de 100644
--- a/src/vhdlscanner.l
+++ b/src/vhdlscanner.l
@@ -1798,6 +1798,7 @@ static void mergeGrouping(const Entry* ce,int)
void mapLibPackage(const Entry* ce)
{
+ Entry *lastComp=0;
while (TRUE)
{
bool found = FALSE;
@@ -1820,9 +1821,18 @@ void mapLibPackage(const Entry* ce)
found=TRUE;
rt->spec=-1; //nullify entry
rt->section=0;
+ lastComp=temp;
break;
}
}//for
+ if (lastComp && rt->spec!=-1)
+ {
+ Entry *ee=new Entry(*rt); //append a copy to entries sublist
+ lastComp->addSubEntry(ee);
+ found=TRUE;
+ rt->spec=-1; //nullify entry
+ rt->section=0;
+ }
}//if
}//for
if (!found) // nothing left to do