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 / context.h
index a20fb83..494be95 100644 (file)
  *             This file contains all the declarations of the functions related with\r
  *             the tesh context type.\r
  *\r
- */\r
\r
+ */  \r
+    \r
 #ifndef _CONTEXT_H\r
 #define _CONTEXT_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 create_new - create a new context.\r
  *\r
  * \return                     If successful the function returns the newly created\r
@@ -28,10 +29,9 @@ extern "C" {
  *                                     global variable errno with the appropiate error code.\r
  *                                     [ENOMEM] if the system has not enough space to allocate\r
  *                                              the context.\r
- */\r
-context_t\r
-context_new(void);\r
-\r
+ */ \r
+  context_t \r context_new(void);
+  \r\r
 /*! \brief context_free - destroy a context object.\r
  *\r
  * \param ptr          A pointer to the context object to destroy.\r
@@ -43,10 +43,9 @@ context_new(void);
  * errors :\r
  *                                     [EINVAL] if the context object pointed to by the ptr parameter is invalid.\r
  *                                     \r
- */\r
-int\r
-context_free(context_t* ptr);\r
-\r
+ */ \r
+  int \r context_free(context_t * ptr);
+  \r \r
 /*! \brief context_dup - duplicate a context object.\r
  *\r
  * \param context      The context to duplicate.\r
@@ -59,11 +58,9 @@ context_free(context_t* ptr);
  *                                     [EINVAL] if the parameter is invalid.\r
  *                                     [ENOMEM] if there is not enough memory to allocate the duplicate.\r
  *                                     \r
- */\r
-context_t\r
-context_dup(context_t context);\r
-\r
-\r
+ */ \r
+   context_t \r context_dup(context_t context);
+  \r \r \r
 /*! \brief context_reset - reset a context object.\r
  *\r
  * \param context      The context to reset.\r
@@ -75,23 +72,14 @@ context_dup(context_t context);
  * errors :\r
  *                                     [EINVAL] if the parameter is invalid.\r
  *                                     \r
- */\r
-int\r
-context_reset(context_t context);\r
-\r
-void\r
-context_clear(context_t context);\r
-\r
-void\r
-context_input_write(context_t context, const char* buffer);\r
-\r
-void\r
-context_ouput_read(context_t context, const char* buffer);\r
-\r
-\r
-\r
+ */ \r
+  int \r context_reset(context_t context);
+  \r \r void \r context_clear(context_t context);
+  \r \r void \r context_input_write(context_t context, const char *buffer);
+  \r\rvoid \r context_ouput_read(context_t context, const char *buffer);
+  \r\r\r\r
 #ifdef __cplusplus\r
-extern }\r
-#endif\r
+extern\r
+#endif  /* \r */
 \r
-#endif /* !_CONTEXT_H */\r
+#endif  /* !_CONTEXT_H */\r