]> git.tdb.fi Git - libs/datafile.git/commitdiff
Also call finish on auxiliary loaders
authorMikko Rasa <tdb@tdb.fi>
Wed, 6 Oct 2021 21:33:30 +0000 (00:33 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 6 Oct 2021 21:33:30 +0000 (00:33 +0300)
source/loader.cpp

index 98a0234961d2029d0b665450a314c120bf90e35f..5fd32c93fb59f403244deafa81904222f2f2a902 100644 (file)
@@ -72,6 +72,8 @@ void Loader::load(Parser &p)
                }
        }
        finish();
+       for(Loader *l: aux_loaders)
+               l->finish();
 }
 
 void Loader::load(const Statement &st)
@@ -82,6 +84,8 @@ void Loader::load(const Statement &st)
        for(const Statement &s: st.sub)
                load_statement(s);
        finish();
+       for(Loader *l: aux_loaders)
+               l->finish();
 }
 
 void Loader::load_direct(Parser &p, unsigned l)
@@ -150,6 +154,8 @@ void Loader::load_sub_with(Loader &ldr)
        {
                ldr.load_direct(*cur_parser, cur_level+1);
                ldr.finish();
+               for(Loader *l: ldr.aux_loaders)
+                       l->finish();
        }
        else if(cur_st)
        {