diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2009-06-22 20:14:03 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2009-06-22 20:14:03 (GMT) |
commit | b70a5b4f9325ec703db37394feeaa9ebc11228b4 (patch) | |
tree | 2f918f7da3205101b2a8a300ee9afefe247b3f24 /src/vhdlscanner.l | |
parent | 8375a55083e5232e65493e73cb594c9c5e9552ab (diff) | |
download | Doxygen-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.l | 10 |
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 |