Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Indent the rest of the code (examples, buildtools, doc...) except for examples/SMPI...
[simgrid.git] / tools / tesh2 / include / unit.h
index 7b92ab7..8e9510c 100644 (file)
  *             This file contains all the declarations of the functions related with\r
  *             the tesh unit concept.\r
  *\r
- */\r
\r
+ */  \r
+    \r
 #ifndef __UNIT_H       \r
 #define __UNIT_H\r
-\r
+    \r
 #include <com.h>\r
-\r
+    \r
 #ifdef __cplusplus\r
-extern "C" {\r
-#endif\r
-\r
+extern "C" {
+  \r
+#endif  /* \r */
+  \r
 /*! \brief unit_new - create a new unit.\r
  *\r
  * \param runner       The runner which runs the unit.\r
@@ -35,10 +36,11 @@ extern "C" {
  *                                     [EINVAL] if one of the parameters is invalid.\r
  *                                     [ENOMEM] if the system has not enough space to allocate\r
  *                                              the unit.\r
- */\r
-unit_t\r
-unit_new(runner_t runner, unit_t root, unit_t owner, fstream_t fstream);\r
-\r
+ */ \r
+  unit_t \r
+      unit_new(runner_t runner, unit_t root, unit_t owner,
+               fstream_t fstream);
+  \r \r
 /*! \brief unit_free - destroy a tesh unit.\r
  *\r
  * \param ptr          A pointer to the unit to destroy.\r
@@ -49,10 +51,9 @@ unit_new(runner_t runner, unit_t root, unit_t owner, fstream_t fstream);
  *\r
  * errors :\r
  *                                     [EINVAL] if the pointer to the unit to destroy is invalid.\r
- */\r
-int\r
-unit_free(unit_t* ptr);\r
-\r
+ */ \r
+  int \r unit_free(unit_t * ptr);
+  \r \r
 /*! \brief unit_run - run a tesh unit.\r
  *\r
  * \param unit         The unit to run.\r
@@ -68,11 +69,9 @@ unit_free(unit_t* ptr);
  *\r
  * remarks :           If the runner is interrupted during a call of this function,\r
  *                                     the unit is not launched but its flag interrupted is signaled.\r
- */\r
-int\r
-unit_run(unit_t unit, xbt_os_mutex_t mutex);\r
-\r
-\r
+ */ \r
+  int \r unit_run(unit_t unit, xbt_os_mutex_t mutex);
+  \r \r \r
 /*! \brief unit_interrupt - interrupt a tesh unit.\r
  *\r
  * \param unit         The unit to interrupt.\r
@@ -87,10 +86,9 @@ unit_run(unit_t unit, xbt_os_mutex_t mutex);
  *\r
  * remarks :           If the runner is interrupted during a call of this function,\r
  *                                     the unit is not launched but its flag interrupted is signaled.\r
- */\r
-int\r
-unit_interrupt(unit_t unit);\r
-\r
+ */ \r
+  int \r unit_interrupt(unit_t unit);
+  \r \r
 /*! \brief unit_summuarize - summarize the run of tesh unit.\r
  *\r
  * \param unit         The unit to summarize the run.\r
@@ -101,19 +99,14 @@ unit_interrupt(unit_t unit);
  *\r
  * errors :\r
  *                                     [EINVAL] if the unit specified as parameter is invalid.\r
- */\r
-int\r
-unit_summuarize(unit_t unit);\r
-\r
-int\r
-unit_reset(unit_t unit);\r
-\r
-void\r
-unit_set_error(unit_t unit, int errcode, int kind, const char* line);\r
-\r
+ */ \r
+  int \r unit_summuarize(unit_t unit);
+  \r \r int \r unit_reset(unit_t unit);
+  \r \r void \r
+      unit_set_error(unit_t unit, int errcode, int kind, const char *line);
+  \r\r
 #ifdef __cplusplus\r
-}\r
-#endif\r
-\r
-\r
-#endif /* !__UNIT_H */\r
+} \r
+#endif  /* \r */
+\r\r
+#endif  /* !__UNIT_H */\r