X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/15b72bab345d4946fc2ed6bad4c8b6e6a191c244..420538ebb2f0490d1d311aa3e538fadd68b6eaf6:/src/xbt/mmalloc/swag.c
diff --git a/src/xbt/mmalloc/swag.c b/src/xbt/mmalloc/swag.c
index 4d2e2122cc..e28a4283b1 100644
--- a/src/xbt/mmalloc/swag.c
+++ b/src/xbt/mmalloc/swag.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2004-2017. 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,14 +23,14 @@ 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;
}
/*
- * \brief Offset computation
- * \arg var a variable of type struct something
- * \arg field a field of struct something
- * \return the offset of \a field in struct something.
+ * @brief Offset computation
+ * @arg var a variable of type struct something
+ * @arg field a field of struct something
+ * @return the offset of @a field in struct something.
* @hideinitializer
*
* It is very similar to offsetof except that is done at runtime and that you have to declare a variable. Why defining
@@ -40,9 +40,9 @@ static inline void *xbt_swag_getFirst(const_xbt_swag_t swag)
/* @} */
/* Creates a new swag.
- * \param swag the swag to initialize
- * \param offset where the hookup is located in the structure
- * \see xbt_swag_offset
+ * @param swag the swag to initialize
+ * @param offset where the hookup is located in the structure
+ * @see xbt_swag_offset
*
* Usage : xbt_swag_init(swag,&obj.setA-&obj);
*/
@@ -55,11 +55,11 @@ static inline void xbt_swag_init(xbt_swag_t swag, size_t offset)
}
/*
- * \param obj the objet to insert in the swag
- * \param swag a 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
- * \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
+ * @a swag
*/
static inline void xbt_swag_insert(void *obj, xbt_swag_t swag)
{
@@ -80,11 +80,11 @@ static inline void xbt_swag_insert(void *obj, xbt_swag_t swag)
}
/*
- * \param obj the objet to remove from the swag
- * \param swag a swag
- * \return \a obj if it was in the \a swag and NULL otherwise
+ * @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
*
- * removes \a obj from \a swag
+ * removes @a obj from @a swag
*/
static inline void *xbt_swag_remove(void *obj, xbt_swag_t swag)
{
@@ -119,10 +119,10 @@ static inline void *xbt_swag_remove(void *obj, xbt_swag_t swag)
}
/*
- * \param swag a swag
- * \return the number of objects in \a swag
+ * @param swag a swag
+ * @return the number of objects in @a swag
*/
static inline int xbt_swag_size(const_xbt_swag_t swag)
{
- return (swag->count);
+ return swag->count;
}