/* A few basic tests for the surf library */
-/* Copyright (c) 2004-2014. The SimGrid Team.
+/* Copyright (c) 2004-2015. 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. */
-#ifdef __BORLANDC__
-#pragma hdrstop
-#endif
-
#include <stdio.h>
#include "simgrid/sg_config.h"
#include "surf/surf.h"
now = surf_get_clock();
XBT_DEBUG("Next Event : %g", now);
- xbt_dynar_foreach(model_list, iter, model) {
- XBT_DEBUG("\t %s actions", surf_model_name(model));
+ xbt_dynar_foreach(all_existing_models, iter, model) {
+ XBT_DEBUG("\t Actions");
while ((action = surf_model_extract_failed_action_set((surf_model_t)model))) {
XBT_DEBUG("\t * Failed : %p", action);
surf_action_unref(action);
surf_action_unref(action);
}
if (surf_model_running_action_set_size((surf_model_t)model)) {
- XBT_DEBUG("running %s", surf_model_name(model));
+ XBT_DEBUG("running that model");
running = 1;
}
}
}
-#ifdef __BORLANDC__
-#pragma argsused
-#endif
-
int main(int argc, char **argv)
{
surf_init(&argc, argv); /* Initialize some common structures */