Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Move declaration, and keep #include at th top of the file (sonar).
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sat, 7 Mar 2020 12:53:18 +0000 (13:53 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 9 Mar 2020 09:14:45 +0000 (10:14 +0100)
include/simgrid/forward.h

index dd703e0..4d450ab 100644 (file)
@@ -8,16 +8,6 @@
 
 #include <xbt/base.h>
 
-typedef enum {
-  SG_OK,
-  SG_ERROR_CANCELED,
-  SG_ERROR_TIMEOUT,
-  SG_ERROR_HOST,
-  SG_ERROR_NETWORK,
-  SG_ERROR_STORAGE,
-  SG_ERROR_VM
-} sg_error_t;
-
 #ifdef __cplusplus
 
 #include <boost/intrusive_ptr.hpp>
@@ -303,4 +293,14 @@ typedef long long sg_offset_t;
 /** Actor's ID, just like the classical processes' have PID in UNIX */
 typedef long aid_t;
 
+typedef enum {
+  SG_OK,
+  SG_ERROR_CANCELED,
+  SG_ERROR_TIMEOUT,
+  SG_ERROR_HOST,
+  SG_ERROR_NETWORK,
+  SG_ERROR_STORAGE,
+  SG_ERROR_VM
+} sg_error_t;
+
 #endif /* SIMGRID_TYPES_H */