Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Move simgrid::surf::Link declaration with its friends in forward.h
authorGabriel Corona <gabriel.corona@loria.fr>
Thu, 10 Dec 2015 15:20:45 +0000 (16:20 +0100)
committerGabriel Corona <gabriel.corona@loria.fr>
Thu, 10 Dec 2015 15:20:45 +0000 (16:20 +0100)
include/simgrid/forward.h
include/simgrid/link.h

index 1875ce9..a0b8ded 100644 (file)
@@ -17,6 +17,7 @@ namespace surf {
 class Cpu;
 class RoutingEdge;
 class As;
 class Cpu;
 class RoutingEdge;
 class As;
+class Link;
 
 }
 }
 
 }
 }
@@ -24,12 +25,14 @@ class As;
 typedef simgrid::surf::Cpu surf_Cpu;
 typedef simgrid::surf::RoutingEdge surf_RoutingEdge;
 typedef simgrid::surf::As surf_As;
 typedef simgrid::surf::Cpu surf_Cpu;
 typedef simgrid::surf::RoutingEdge surf_RoutingEdge;
 typedef simgrid::surf::As surf_As;
+typedef simgrid::surf::Link Link;
 
 #else
 
 typedef struct surf_Cpu surf_Cpu;
 typedef struct surf_RoutingEdge surf_RoutingEdge;
 typedef struct surf_As surf_As;
 
 #else
 
 typedef struct surf_Cpu surf_Cpu;
 typedef struct surf_RoutingEdge surf_RoutingEdge;
 typedef struct surf_As surf_As;
+typedef struct Link Link;
 
 #endif
 
 
 #endif
 
index 538d378..322d8b1 100644 (file)
@@ -9,23 +9,7 @@
 #ifndef INCLUDE_SIMGRID_LINK_H_
 #define INCLUDE_SIMGRID_LINK_H_
 
 #ifndef INCLUDE_SIMGRID_LINK_H_
 #define INCLUDE_SIMGRID_LINK_H_
 
-
-#ifdef __cplusplus
-
-namespace simgrid {
-namespace surf {
-
-class Link;
-
-}
-}
-typedef simgrid::surf::Link Link;
-
-#else
-typedef struct Link Link;
-#endif
-
-
+#include <simgrid/forward.h>
 
 /* C interface */
 SG_BEGIN_DECL()
 
 /* C interface */
 SG_BEGIN_DECL()