Skip to content

Commit

Permalink
- Made some builtins impure
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@10698 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Dec 13, 2011
1 parent 0b6fd34 commit 6e8f6e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Compiler/FrontEnd/ModelicaBuiltin.mo
Expand Up @@ -662,7 +662,7 @@ end loadFileInteractive;
function system "Similar to system(3). Executes the given command in the system shell."
input String callStr "String to call: bash -c $callStr";
output Integer retval "Return value of the system call; usually 0 on success";
external "builtin";
external "builtin" annotation(__OpenModelica_Impure=true);
end system;

function saveAll "save the entire loaded AST to file"
Expand Down Expand Up @@ -885,15 +885,15 @@ function readFile
Note that if the function fails, the error message is returned as a string instead of multiple output or similar."
input String fileName;
output String contents;
external "builtin";
external "builtin" annotation(__OpenModelica_Impure=true);
end readFile;

function writeFile
"Write the data to file. Returns true on success."
input String fileName;
input String data;
output Boolean success;
external "builtin";
external "builtin" annotation(__OpenModelica_Impure=true);
end writeFile;

function readFileShowLineNumbers "
Expand Down

0 comments on commit 6e8f6e7

Please sign in to comment.