* under the terms of the license (GNU LGPL) which comes with this package. */
#include "instr/instr_private.h"
* under the terms of the license (GNU LGPL) which comes with this package. */
#include "instr/instr_private.h"
fprintf(tracing_file, "%s ",str);
}
fprintf (tracing_file, "]\n");
fprintf(tracing_file, "%s ",str);
}
fprintf (tracing_file, "]\n");
- while (!xbt_dynar_is_empty(buffer)){
- double head_timestamp = (*(paje_event_t*)xbt_dynar_get_ptr(buffer, 0))->timestamp;
+ unsigned int cursor;
+ xbt_dynar_foreach(buffer, cursor, event) {
+ double head_timestamp = event->timestamp;