Skip to content

Commit

Permalink
- fix messageClose
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@20779 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
lochel committed May 23, 2014
1 parent e113af9 commit 8183b05
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions SimulationRuntime/c/util/omc_error.c
Expand Up @@ -250,13 +250,17 @@ void messageXML(int type, int stream, int indentNext, char *msg, int subline, co

static void messageCloseText(int stream)
{
level[stream]--;
if(ACTIVE_STREAM(stream))
level[stream]--;
}

static void messageCloseXML(int stream)
{
fputs("</message>\n", stdout);
fflush(stdout);
if(ACTIVE_STREAM(stream))
{
fputs("</message>\n", stdout);
fflush(stdout);
}
}

static void (*messageFunction)(int type, int stream, int indentNext, char *msg, int subline, const int *indexes) = messageText;
Expand Down

0 comments on commit 8183b05

Please sign in to comment.