A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rename SD_READY in SD_SCHEDULABLE to prevent troubles for users that
[simgrid.git]
/
src
/
xbt
/
swag.c
diff --git
a/src/xbt/swag.c
b/src/xbt/swag.c
index 435e5effb447b41b3f278ead34ab3c8c54074c23..9d69e43ec5e9c421a5d983e003988b0c10553212 100644
(file)
--- 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. */
/* 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
*/
*
* 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))
{
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
*/
* 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))
{
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
*/
* 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))
{
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
*/
*
* 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;
{
size_t offset = swag->offset;