A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Once again, Linux does not follow the real way of doing things.
[simgrid.git]
/
teshsuite
/
simdag
/
platforms
/
flatifier.c
diff --git
a/teshsuite/simdag/platforms/flatifier.c
b/teshsuite/simdag/platforms/flatifier.c
index
dad86de
..
46ae1b4
100644
(file)
--- a/
teshsuite/simdag/platforms/flatifier.c
+++ b/
teshsuite/simdag/platforms/flatifier.c
@@
-1,4
+1,4
@@
-/* Copyright (c) 2008
, 2009, 2010
. The SimGrid Team.
+/* Copyright (c) 2008
-2013
. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
@@
-74,9
+74,9
@@
static void create_environment(xbt_os_timer_t parse_time, const char *platformFi
{
xbt_ex_t e;
TRY {
{
xbt_ex_t e;
TRY {
- xbt_os_timer_start(parse_time);
+ xbt_os_
cpu
timer_start(parse_time);
SD_create_environment(platformFile);
SD_create_environment(platformFile);
- xbt_os_timer_stop(parse_time);
+ xbt_os_
cpu
timer_stop(parse_time);
}
CATCH(e) {
xbt_die("Error while loading %s: %s", platformFile, e.msg);
}
CATCH(e) {
xbt_die("Error while loading %s: %s", platformFile, e.msg);
@@
-104,7
+104,12
@@
int main(int argc, char **argv)
const SD_link_t *links;
xbt_os_timer_t parse_time = xbt_os_timer_new();
const SD_link_t *links;
xbt_os_timer_t parse_time = xbt_os_timer_new();
+#ifdef _XBT_WIN32
+ setbuf(stderr, NULL);
+ setbuf(stdout, NULL);
+#else
setvbuf(stdout, NULL, _IOLBF, 0);
setvbuf(stdout, NULL, _IOLBF, 0);
+#endif
SD_init(&argc, argv);
SD_init(&argc, argv);
@@
-275,6
+280,7
@@
int main(int argc, char **argv)
printf("</platform>\n");
}
SD_exit();
printf("</platform>\n");
}
SD_exit();
+ xbt_os_timer_free(parse_time);
return 0;
}
return 0;
}