diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2009-06-22 20:14:03 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2009-06-22 20:14:03 (GMT) |
commit | 7c0a46b50fad0925e47b78326f8c2e92e3829fb4 (patch) | |
tree | 2f918f7da3205101b2a8a300ee9afefe247b3f24 /src/vhdlscanner.l | |
parent | 7a3de4c3c8aac25c38b6e93bb0927de40cd1c650 (diff) | |
download | Doxygen-7c0a46b50fad0925e47b78326f8c2e92e3829fb4.zip Doxygen-7c0a46b50fad0925e47b78326f8c2e92e3829fb4.tar.gz Doxygen-7c0a46b50fad0925e47b78326f8c2e92e3829fb4.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 |