Skip to content

Commit

Permalink
- Fix loadFiles() when parsing only 1 file
Browse files Browse the repository at this point in the history
- Use loadFile instead of loadFiles in GenerateInterface since it always loads exactly 1 file


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@23282 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Nov 9, 2014
1 parent 0611eee commit 736de63
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Compiler/Script/CevalScript.mo
Expand Up @@ -2296,7 +2296,7 @@ algorithm
case (cache,_,"loadFile",_,st,_)
then (cache,Values.BOOL(false),st);

case (_,_,"loadFiles",{Values.ARRAY(valueLst=vals as _::_::_),Values.STRING(encoding),Values.INTEGER(i)},
case (_,_,"loadFiles",{Values.ARRAY(valueLst=vals),Values.STRING(encoding),Values.INTEGER(i)},
(GlobalScript.SYMBOLTABLE(
ast = p,instClsLst = ic,
lstVarVal = iv,compiledFunctions = cf,
Expand Down
2 changes: 1 addition & 1 deletion Compiler/boot/GenerateInterface.mos
@@ -1,5 +1,5 @@
setCommandLineOptions("+g=MetaModelica");
if not loadFiles({inFile}) then
if not loadFile(inFile) then
print("Failed to load file: " + inFile + "\n" + getErrorString());
exit(1);
end if;
Expand Down

0 comments on commit 736de63

Please sign in to comment.