Skip to content

Commit

Permalink
Move initialization of symboltable
Browse files Browse the repository at this point in the history
The interactive clients all call Main.init, so init the symbol table
in this call as well.

Belonging to [master]:
  - OpenModelica/OMCompiler#2129
  • Loading branch information
sjoelund authored and OpenModelica-Hudson committed Jan 30, 2018
1 parent 5296b68 commit e2c5189
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Compiler/Main/Main.mo
Expand Up @@ -776,6 +776,7 @@ algorithm
args_1 := Flags.new(args);
System.gettextInit(if Config.getRunningTestsuite() then "C" else Flags.getConfigString(Flags.LOCALE_FLAG));
setDefaultCC();
SymbolTable.reset();
end init;

public function main
Expand Down Expand Up @@ -849,8 +850,6 @@ algorithm
try
Settings.getInstallationDirectoryPath();

SymbolTable.reset();

readSettings(args);
if Flags.isSet(Flags.INTERACTIVE_TCP) then
print("The flag -d=interactive is depreciated. Please use --interactive=tcp\n");
Expand Down

0 comments on commit e2c5189

Please sign in to comment.