Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Compile trace_mgr with g++. Next step: objectification
[simgrid.git] / teshsuite / surf / trace_usage / trace_usage.cpp
similarity index 96%
rename from teshsuite/surf/trace_usage/trace_usage.c
rename to teshsuite/surf/trace_usage/trace_usage.cpp
index 06450c7..34005e4 100644 (file)
@@ -6,7 +6,6 @@
 /* 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 "surf/trace_mgr.h"
 #include "surf/surf.h"
 
 #include "xbt/log.h"
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
+#include "src/surf/trace_mgr.hpp"
 
 XBT_LOG_NEW_DEFAULT_CATEGORY(surf_test,
                              "Messages specific for surf example");
 
-void test(void);
-void test(void)
+static void test(void)
 {
   tmgr_fes_t history = tmgr_history_new();
   tmgr_trace_t trace_A = tmgr_trace_new_from_file("trace_A.txt");