-/*
- * jedule_output.c
- *
- * Created on: Dec 1, 2010
- * Author: sascha
- */
+/* Copyright (c) 2010-2014. The SimGrid Team.
+ * All rights reserved. */
+/* This program is free software; you can redistribute it and/or modify it
+ * under the terms of the license (GNU LGPL) which comes with this package. */
#include <stdio.h>
#include <stdlib.h>
int start = subset->start_idx;
int end = subset->start_idx + subset->nres - 1;
- char resid[1024];
+ char resid[1024];
- get_hierarchy_string(subset->parent, resid);
+ get_hierarchy_string(subset->parent, resid);
fprintf(jed_file, "<select resources=\"");
- fprintf(jed_file, "%s", resid);
+ fprintf(jed_file, "%s", resid);
fprintf(jed_file, ".[%d-%d]", start, end);
fprintf(jed_file, "\" />\n");
}
}
+static void jed_event_free_ref(void *evp)
+{
+ jed_event_t ev = *(jed_event_t *)evp;
+ jed_event_free(ev);
+}
+
void jedule_init_output() {
- jedule_event_list = xbt_dynar_new(sizeof(jed_event_t), NULL);
+ jedule_event_list = xbt_dynar_new(sizeof(jed_event_t), jed_event_free_ref);
}
void jedule_cleanup_output() {