Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
reduce the amount of includes teshsuite/simdag
authorMartin Quinson <martin.quinson@loria.fr>
Sun, 6 Mar 2016 21:09:03 +0000 (22:09 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Sun, 6 Mar 2016 21:09:03 +0000 (22:09 +0100)
teshsuite/simdag/platforms/Evaluate_get_route_time.c
teshsuite/simdag/platforms/basic_link_test.c
teshsuite/simdag/platforms/flatifier.cpp
teshsuite/simdag/platforms/is_router_test.cpp

index 5737ea5..bb81c1c 100644 (file)
@@ -8,9 +8,7 @@
 
 
 #include <stdio.h>
-#include <stdlib.h>
 #include "simgrid/simdag.h"
-#include "surf/surf.h"
 #include "xbt/xbt_os_time.h"
 
 #define BILLION  1000000000L;
index f8de5b8..b7a67e0 100644 (file)
@@ -6,7 +6,6 @@
 
 #include <stdio.h>
 #include "simgrid/simdag.h"
-#include "xbt/log.h"
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(basic_link_test, sd, "SimDag test basic_link_test");
 
index fec3e12..e4e48f5 100644 (file)
@@ -4,25 +4,9 @@
 /* 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 "src/internal_config.h"
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <time.h>
-#include <string.h>
-#include <math.h>
-
 #include "src/surf/network_interface.hpp"
 #include "simgrid/simdag.h"
-#include "xbt/log.h"
-#include "xbt/dict.h"
-#include "xbt/ex.h"
 #include "xbt/xbt_os_time.h"
-#include "surf/surf.h"
-#include "src/surf/surf_private.h"
 
 XBT_LOG_NEW_DEFAULT_CATEGORY(flatifier, "Logging specific to this platform parsing tool");
 
@@ -39,8 +23,7 @@ static int name_compare_links(const void *n1, const void *n2)
 static int parse_cmdline(int *timings, char **platformFile, int argc, char **argv)
 {
   int wrong_option = 0;
-  int i;
-  for (i = 1; i < argc; i++) {
+  for (int i = 1; i < argc; i++) {
     if (strlen(argv[i]) > 1 && argv[i][0] == '-' && argv[i][1] == '-') {
       if (!strcmp(argv[i], "--timings")) {
         *timings = 1;
index 1579d0c..41e4be8 100644 (file)
@@ -5,9 +5,7 @@
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 #include <stdio.h>
-#include <stdlib.h>
 #include "simgrid/simdag.h"
-#include "surf/surf.h"
 #include "src/surf/surf_routing.hpp"
 
 int main(int argc, char **argv)