#include <stdio.h>
#include "msg/msg.h" /* Yeah! If you want to use msg, you need to include msg/msg.h */
#include "surf/surfxml_parse.h" /* to override surf_parse and bypass the parser */
-#include "surf/surfxml.h" /* to hijack surf_parse_lex */
/* Create a log channel to have nice outputs. */
#include "xbt/log.h"
{ /* Task creation */
char sprintf_buffer[64];
- todo = calloc(number_of_tasks, sizeof(m_task_t));
+ todo = xbt_new0(m_task_t,number_of_tasks);
for (i = 0; i < number_of_tasks; i++) {
sprintf(sprintf_buffer, "Task_%d", i);
{ /* Process organisation */
slaves_count = argc - 4;
- slaves = calloc(slaves_count, sizeof(m_host_t));
+ slaves = xbt_new0(m_host_t,slaves_count);
for (i = 4; i < argc; i++) {
slaves[i-4] = MSG_get_host_by_name(argv[i]);