Skip to content

Commit

Permalink
- fixed coding style
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@11622 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Willi Braun committed Apr 1, 2012
1 parent 6b95e13 commit 823d928
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions SimulationRuntime/fmi/import/moGenerator.c
Expand Up @@ -651,11 +651,11 @@ void instScalarVariable(ModelDescription* md, fmiScalarVariable* list) {
list[i].vr = getValueReference(md->modelVariables[i]);
list[i].description = getDescription(md, md->modelVariables[i]);
if (list[i].description != NULL){
len = strlen(list[i].description);
tempDesc = (char*) calloc(len + 1, sizeof(char));
memcpy(tempDesc, list[i].description, len);
charReplace(tempDesc, len, 0x22, 0x27);
list[i].description = (const char *) tempDesc;
len = strlen(list[i].description);
tempDesc = (char*) calloc(len + 1, sizeof(char));
memcpy(tempDesc, list[i].description, len);
charReplace(tempDesc, len, 0x22, 0x27);
list[i].description = (const char *) tempDesc;
}
//tempDesc = (char*) calloc(len + 1, sizeof(char));

Expand Down Expand Up @@ -1515,7 +1515,7 @@ void blockcodegen(fmuModelDescription* fmuMD, const char* decompPath,
fprintf(pfile, "initial algorithm\n");
fprintf(pfile, "\tfmuSetTime(fmufun, inst, time);\n");
fprintf(pfile, "\tif not initializationDone then\n");
/*
/*
// Set start values for real variables
if (noReal > 0) {
tmpReal = pntReal;
Expand Down Expand Up @@ -1649,7 +1649,7 @@ void blockcodegen(fmuModelDescription* fmuMD, const char* decompPath,
fprintf(pfile, "%s});\n", tmpStringParam->name);
}
}
*/
*/
fprintf(pfile, "\t\tfmuInit(fmufun, inst, tolControl, relTol, evtInfo);\n");
fprintf(pfile, "\t\tinitializationDone:= true;\n");
fprintf(pfile, "\tend if;\n");
Expand Down

0 comments on commit 823d928

Please sign in to comment.