X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fmware%2Fpool.h;h=db4e1443f09a6504d078bd8624568de46cab48a5;hb=111a5049211f2adee08a0e483bfd560f3ee88e14;hp=6100abba47f15eb9d1cedeee5d54a21d0edecd48;hpb=83923f0f147cd8afb5adb138c517d02928e754de;p=bertos.git diff --git a/bertos/mware/pool.h b/bertos/mware/pool.h index 6100abba..db4e1443 100644 --- a/bertos/mware/pool.h +++ b/bertos/mware/pool.h @@ -1,75 +1,2 @@ -/** - * \file - * - * - * \brief Pool macros. - * - * \version $Id$ - * \author Giovanni Bajo - */ - -#ifndef MWARE_POOL_H -#define MWARE_POOL_H - -#include -#include - -#define EXTERN_POOL(name) \ - extern List name - -#define DECLARE_POOL_WITH_STORAGE(name, type, num, storage) \ - static type name##_items[num]; \ - storage name; \ - INLINE void name##_init(void (*init_func)(type*)) \ - { \ - int i; \ - LIST_INIT(&name); \ - for (i=0;i