-/* Copyright (c) 2004-2018. The SimGrid Team.
+/* Copyright (c) 2004-2022. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
static inline void *xbt_swag_getFirst(const_xbt_swag_t swag)
{
- return (swag->head);
+ return swag->head;
}
/*
}
/*
- * @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
}
/*
- * @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
*
*/
static inline int xbt_swag_size(const_xbt_swag_t swag)
{
- return (swag->count);
+ return swag->count;
}