Skip to content

Commit

Permalink
- change the standard streams buffer size.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@9849 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adeas31 committed Sep 17, 2011
1 parent 8915aef commit 1a251ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions c_runtime/meta/meta_modelica.c
Expand Up @@ -610,12 +610,13 @@ int isOptionNone(void* any)
}

/*
* On windows Mingw based gcc has a buffer based stdout.
* The gdb often use the buffer based stdout.
* So printf does not print straight away on the console.
* changing it to NULL fix the problem.
* */
void changeStdoutBuffer() {
void changeStdStreamBuffer() {
setbuf(stdout, NULL);
setbuf(stderr, NULL);
}

unsigned long mmc_prim_hash(void *p)
Expand Down
2 changes: 1 addition & 1 deletion c_runtime/meta/meta_modelica.h
Expand Up @@ -432,7 +432,7 @@ void printTypeOfAny(void*); /* For debugging */
char* getTypeOfAny(void*); /* For debugging */
char* getRecordElementName(void*, int); /* For debugging */
int isOptionNone(void*); /* For debugging */
void changeStdoutBuffer(); /* For debugging */
void changeStdStreamBuffer(); /* For debugging */

/*
* Generated (Meta)Records should access a static, constant value of
Expand Down

0 comments on commit 1a251ee

Please sign in to comment.