X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/404a5c6adee41f1161eee8e71278e2230abdd459..53df2f10610a1118332e6fe650a10dc32bc5a37d:/src/xbt/swag.c diff --git a/src/xbt/swag.c b/src/xbt/swag.c index dd837835c8..ec8e4c7f93 100644 --- a/src/xbt/swag.c +++ b/src/xbt/swag.c @@ -15,25 +15,11 @@ #include "xbt/error.h" #include "xbt/swag.h" -/** \defgroup XBT_swag A O(1) set datatype - * \brief a O(1) set based on linked lists - * - * Warning, this module is done to be efficient and performs tons of - * cast and dirty things. So avoid using it unless you really know - * what you are doing. It is basically a fifo but with restrictions so that - * it can be used as a set. Any operation (add, remove, belongs) is O(1) and - * no call to malloc/free is done. - */ - XBT_LOG_NEW_DEFAULT_SUBCATEGORY(swag,xbt,"Swag : O(1) set library"); #define PREV(obj,offset) xbt_swag_getPrev(obj,offset) #define NEXT(obj,offset) xbt_swag_getNext(obj,offset) -/** \name Functions - * \ingroup XBT_swag - */ -/* @{ */ /** Creates a new swag. * \param offset where the hookup is located in the structure @@ -239,4 +225,3 @@ int xbt_swag_belongs(void *obj, xbt_swag_t swag) return ((NEXT(obj, swag->offset)) || (PREV(obj, swag->offset)) || (swag->head == obj)); } -/* @} */