X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8c354c48ec90c997cc7213ce96ca97d882934166..7b138f8b1ed3e8816eda5cb26deb71fe81b4087a:/src/xbt/fifo_private.h diff --git a/src/xbt/fifo_private.h b/src/xbt/fifo_private.h index 02470db548..6d7c3c2bec 100644 --- a/src/xbt/fifo_private.h +++ b/src/xbt/fifo_private.h @@ -1,6 +1,5 @@ -/* $Id$ */ - -/* Copyright (c) 2004 Arnaud Legrand. All rights reserved. */ +/* Copyright (c) 2004, 2009-2010, 2013-2014. 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. */ @@ -23,28 +22,10 @@ typedef struct xbt_fifo { xbt_fifo_item_t tail; } s_xbt_fifo_t; - #define xbt_fifo_getFirstitem(l) ((l)?(l)->head:NULL) #define xbt_fifo_getNextitem(i) ((i)?(i)->next:NULL) #define xbt_fifo_getPrevitem(i) ((i)?(i)->prev:NULL) #define xbt_fifo_getItemcontent(i) ((i)?(i)->content:NULL) #define xbt_fifo_Itemcontent(i) ((i)->content) #define xbt_fifo_setItemcontent(i,v) (i->content=v) - - -/* static __inline__ xbt_fifo_item_t xbt_fifo_getFirstitem(xbt_fifo_t l) */ -/* { */ -/* return l->head; */ -/* } */ -/* static __inline__ xbt_fifo_item_t xbt_fifo_getNextitem(xbt_fifo_item_t i) */ -/* { */ -/* if(i) return i->next; */ -/* return NULL; */ -/* } */ -/* static __inline__ xbt_fifo_item_t xbt_fifo_getPrevitem(xbt_fifo_item_t i) */ -/* { */ -/* if(i) return i->prev; */ -/* return NULL; */ -/* } */ - -#endif /* _XBT_FIFO_PRIVATE_H */ +#endif /* _XBT_FIFO_PRIVATE_H */