X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9b757886241c3fc8c055842b3cf7fef7494031d7..f2e6d1720c871dfec7d3ba04e8e0189337f8dd3d:/src/xbt/swag.c diff --git a/src/xbt/swag.c b/src/xbt/swag.c index 435e5effb4..9d69e43ec5 100644 --- a/src/xbt/swag.c +++ b/src/xbt/swag.c @@ -1,6 +1,5 @@ -/* $Id$ */ - -/* Copyright (c) 2004 Arnaud Legrand. All rights reserved. */ +/* Copyright (c) 2004, 2005, 2006, 2007, 2008, 2009, 2010. The SimGrid Team. + * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -64,7 +63,7 @@ XBT_INLINE void xbt_swag_init(xbt_swag_t swag, size_t offset) * * insert \a obj in \a swag */ -void xbt_swag_insert(void *obj, xbt_swag_t swag) +XBT_INLINE void xbt_swag_insert(void *obj, xbt_swag_t swag) { if (xbt_swag_belongs(obj, swag)) @@ -91,7 +90,7 @@ void xbt_swag_insert(void *obj, xbt_swag_t swag) * insert (at the head... you probably had a very good reason to do * that, I hope you know what you're doing) \a obj in \a swag */ -void xbt_swag_insert_at_head(void *obj, xbt_swag_t swag) +XBT_INLINE void xbt_swag_insert_at_head(void *obj, xbt_swag_t swag) { if (xbt_swag_belongs(obj, swag)) @@ -118,7 +117,7 @@ void xbt_swag_insert_at_head(void *obj, xbt_swag_t 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 */ -void xbt_swag_insert_at_tail(void *obj, xbt_swag_t swag) +XBT_INLINE void xbt_swag_insert_at_tail(void *obj, xbt_swag_t swag) { if (xbt_swag_belongs(obj, swag)) @@ -145,7 +144,7 @@ void xbt_swag_insert_at_tail(void *obj, xbt_swag_t swag) * * removes \a obj from \a swag */ -void *xbt_swag_remove(void *obj, xbt_swag_t swag) +XBT_INLINE void *xbt_swag_remove(void *obj, xbt_swag_t swag) { size_t offset = swag->offset;