]> granicus.if.org Git - re2c/commitdiff
- Free all stuff allocated by code generation after every run
authorhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Mon, 5 Jun 2006 22:29:23 +0000 (22:29 +0000)
committerhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Mon, 5 Jun 2006 22:29:23 +0000 (22:29 +0000)
re2c/main.cc
re2c/parser.y

index b801c58a4e5a06b25bdf784ee3cb94c5c44c3a2c..2701569469d0178d5c3551101c1422ceb543d983 100644 (file)
@@ -306,7 +306,6 @@ int main(int argc, char *argv[])
                parse(null_scanner, null_dev);
                next_label = 0;
                next_fill_index = 0;
-               Symbol::ClearTable();
                bWroteGetState = false;
                bUsedYYMaxFill = false;
        }
index 59773dbafc34ba345a381aeae53815b6e52767bc..7e903a6dcd5605c98eecc0208cd50b79f3641a36 100644 (file)
@@ -215,6 +215,10 @@ void parse(Scanner& i, std::ostream& o)
                }
                o << sourceFileInfo;
        }
+
+       RegExp::vFreeList.clear();
+       Range::vFreeList.clear();
+       Symbol::ClearTable();
 }
 
 } // end namespace re2c