X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fmware%2Fpool.h;h=98d627a8b2eaa0d6ece19aedaba9bde80f113b9c;hb=e5174304054e26cd8f3cd1f9980871c20c07fc46;hp=6100abba47f15eb9d1cedeee5d54a21d0edecd48;hpb=83923f0f147cd8afb5adb138c517d02928e754de;p=bertos.git diff --git a/bertos/mware/pool.h b/bertos/mware/pool.h index 6100abba..98d627a8 100644 --- a/bertos/mware/pool.h +++ b/bertos/mware/pool.h @@ -1,75 +1 @@ -/** - * \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