Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove useless double parentheses in function calls.
[simgrid.git] / win32_test_app / include / TBuffer.h
index a7262c4..ceb4661 100644 (file)
@@ -6,15 +6,14 @@
 #include <stdlib.h>
 
 /* struct s_Buffer declaration. */
 #include <stdlib.h>
 
 /* struct s_Buffer declaration. */
-typedef struct s_Buffer
-{
-       char* data;             /* the buffer data.                                     */
-       size_t size;            /* the buffer size (in bytes).          */
-       size_t capacity;        /* the buffer capacity (in bytes).      */
-}s_Buffer_t,* Buffer_t;
+typedef struct s_Buffer {
+  char *data;                   /* the buffer data.                                     */
+  size_t size;                  /* the buffer size (in bytes).          */
+  size_t capacity;              /* the buffer capacity (in bytes).      */
+} s_Buffer_t, *Buffer_t;
 
 /* Asserts that a s_Buffer is valid. */
 
 /* Asserts that a s_Buffer is valid. */
-#define ASSERT_VALID_Buffer(p) ( ASSERT_NOT_NULL((p)) /*&& ASSERT_NOT_NULL((p)->data)*/ )
+#define ASSERT_VALID_Buffer(p) ( ASSERT_NOT_NULL(p) /*&& ASSERT_NOT_NULL((p)->data)*/ )
 
 /* The default buffer capacity (512 bytes). */
 #define DEFAULT_Buffer_CAPACITY        ((size_t)512)
 
 /* The default buffer capacity (512 bytes). */
 #define DEFAULT_Buffer_CAPACITY        ((size_t)512)
@@ -30,14 +29,14 @@ Buffer_t Buffer_new(void);
 
 /* Clears the buffer (this function don't destroy it,
  * see Buffer_free function). 
 
 /* Clears the buffer (this function don't destroy it,
  * see Buffer_free function). 
- */ 
+ */
 void Buffer_clear(Buffer_t buffer);
 
 /* Appends a string in the buffer. If successful, 
  * the function returns true. Otherwise the function
  * returns false.
  */
 void Buffer_clear(Buffer_t buffer);
 
 /* Appends a string in the buffer. If successful, 
  * the function returns true. Otherwise the function
  * returns false.
  */
-bool Buffer_append(Buffer_t buffer,char* str);
+bool Buffer_append(Buffer_t buffer, char *str);
 
 /* 
  * Removes all the linefeed from the buffer. 
 
 /* 
  * Removes all the linefeed from the buffer. 
@@ -58,4 +57,4 @@ bool Buffer_empty(Buffer_t buffer);
 
 
 
 
 
 
-#endif /* #ifndef __BUFFER_H__ */
\ No newline at end of file
+#endif                          /* #ifndef __BUFFER_H__ */