]> AND Public Git Repository - simgrid.git/blobdiff - src/xbt/mmalloc/swag.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
new attempt.. this bit of code was not useful, it looks like.
[simgrid.git] / src / xbt / mmalloc / swag.c
index 1df21d0375c5175d6e9011432765bbaeb5413f3b..e28a4283b13f1975dcf4d8881b78d1294abfa1f1 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2004-2018. The SimGrid Team.
+/* Copyright (c) 2004-2021. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -23,7 +23,7 @@ typedef const struct xbt_swag* const_xbt_swag_t;
 
 static inline void *xbt_swag_getFirst(const_xbt_swag_t swag)
 {
-  return (swag->head);
+  return swag->head;
 }
 
 /*
@@ -55,7 +55,7 @@ static inline void xbt_swag_init(xbt_swag_t swag, size_t offset)
 }
 
 /*
- * @param obj the objet to insert in the swag
+ * @param obj the object to insert in the swag
  * @param swag a swag
  *
  * insert (at the tail... you probably had a very good reason to do that, I hope you know what you're doing) @a obj in
@@ -80,7 +80,7 @@ static inline void xbt_swag_insert(void *obj, xbt_swag_t swag)
 }
 
 /*
- * @param obj the objet to remove from the swag
+ * @param obj the object to remove from the swag
  * @param swag a swag
  * @return @a obj if it was in the @a swag and NULL otherwise
  *
@@ -124,5 +124,5 @@ static inline void *xbt_swag_remove(void *obj, xbt_swag_t swag)
  */
 static inline int xbt_swag_size(const_xbt_swag_t swag)
 {
-  return (swag->count);
+  return swag->count;
 }