Skip to content

Commit

Permalink
- SimCodeC.tpl
Browse files Browse the repository at this point in the history
  - add Version of Compiler to first comment
- System.mo
  - add function getCurrentDateTime
  - add function getUUIDStr
  both used for fmu xml file
- Util.mo
  - add uniontype DateTime
  - add function getCurrentDateTime   
  both used for fmu xml file
- SimCodeTV.mo
  - add function builtin.add 
  - add function builtin.stringEqual
  - add functions System.getCurrentDateTime and System.getUUIDStr and Util.getCurrentDateTime
  - add uniontype Util.DateTime
- continue with SimCodeFMU.tpl
- add file c_runtime/fmu_model_interface.c

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@6385 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Jens Frenkel committed Oct 15, 2010
1 parent 48fa61c commit 4157bc9
Show file tree
Hide file tree
Showing 9 changed files with 1,231 additions and 234 deletions.
6 changes: 5 additions & 1 deletion Compiler/SimCodeC.mo
Expand Up @@ -294,11 +294,15 @@ algorithm
local
String i_fileNamePrefix;
Absyn.Path i_modelInfo_name;
String ret_0;
equation
txt = Tpl.writeTok(txt, Tpl.ST_STRING("// Simulation code for "));
txt = dotPath(txt, i_modelInfo_name);
txt = Tpl.writeTok(txt, Tpl.ST_STRING(" generated by the OpenModelica Compiler "));
ret_0 = Settings.getVersionNr();
txt = Tpl.writeStr(txt, ret_0);
txt = Tpl.writeTok(txt, Tpl.ST_STRING_LIST({
" generated by the OpenModelica Compiler.\n",
".\n",
"\n",
"#include \"modelica.h\"\n",
"#include \"assert.h\"\n",
Expand Down

0 comments on commit 4157bc9

Please sign in to comment.