projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Filter always the menu warning, for nightly test.
[bertos.git]
/
bertos
/
struct
/
pool.h
diff --git
a/bertos/struct/pool.h
b/bertos/struct/pool.h
index 37938c26ea337518fd439e5075483b7689353887..40ac79c7c3813fee32a255bfa850c899c4a54143 100644
(file)
--- a/
bertos/struct/pool.h
+++ b/
bertos/struct/pool.h
@@
-31,7
+31,6
@@
*
* \brief Pool macros.
*
*
* \brief Pool macros.
*
- * \version $Id$
* \author Giovanni Bajo <rasky@develer.com>
*/
* \author Giovanni Bajo <rasky@develer.com>
*/
@@
-49,7
+48,7
@@
storage name; \
INLINE void name##_init(void (*init_func)(type*)) \
{ \
storage name; \
INLINE void name##_init(void (*init_func)(type*)) \
{ \
-
in
t i; \
+
size_
t i; \
LIST_INIT(&name); \
for (i=0;i<countof(name##_items);++i) \
{ \
LIST_INIT(&name); \
for (i=0;i<countof(name##_items);++i) \
{ \
@@
-67,8
+66,8
@@
DECLARE_POOL_WITH_STORAGE(name, type, num, static List)
#define pool_init(name, init_func) (*(name##_init))(init_func)
DECLARE_POOL_WITH_STORAGE(name, type, num, static List)
#define pool_init(name, init_func) (*(name##_init))(init_func)
-#define pool_alloc(name)
REMHEAD
(name)
+#define pool_alloc(name)
list_remHead
(name)
#define pool_free(name, elem) ADDHEAD(name, (Node*)elem)
#define pool_free(name, elem) ADDHEAD(name, (Node*)elem)
-#define pool_empty(name)
ISLIST
EMPTY(name)
+#define pool_empty(name)
LIST_
EMPTY(name)
#endif /* STRUCT_POOL_H */
#endif /* STRUCT_POOL_H */