Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit e2c5189

Browse files
sjoelundOpenModelica-Hudson
authored andcommitted
Move initialization of symboltable
The interactive clients all call Main.init, so init the symbol table in this call as well. Belonging to [master]: - #2129
1 parent 5296b68 commit e2c5189

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Compiler/Main/Main.mo

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -776,6 +776,7 @@ algorithm
776776
args_1 := Flags.new(args);
777777
System.gettextInit(if Config.getRunningTestsuite() then "C" else Flags.getConfigString(Flags.LOCALE_FLAG));
778778
setDefaultCC();
779+
SymbolTable.reset();
779780
end init;
780781

781782
public function main
@@ -849,8 +850,6 @@ algorithm
849850
try
850851
Settings.getInstallationDirectoryPath();
851852

852-
SymbolTable.reset();
853-
854853
readSettings(args);
855854
if Flags.isSet(Flags.INTERACTIVE_TCP) then
856855
print("The flag -d=interactive is depreciated. Please use --interactive=tcp\n");

0 commit comments

Comments
 (0)