int host_nb = task->allocation->size();
sg_host_t *hosts = xbt_new(sg_host_t, host_nb);
int i =0;
- for (auto host: *task->allocation)
- hosts[i++] = host;
+ for (auto host: *task->allocation){
+ hosts[i] = host;
+ i++;
+ }
double *flops_amount = xbt_new0(double, host_nb);
double *bytes_amount = xbt_new0(double, host_nb * host_nb);
std::set<SD_task_t> *completed_tasks;
xbt_dynar_t return_set;
+} s_SD_global_t;
-} s_SD_global_t, *SD_global_t;
+typedef struct SD_global *SD_global_t;
extern XBT_PRIVATE SD_global_t sd_global;