[PATCH] add freelist data structure to score

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Jul 22 15:08:25 UTC 2013


Hello Ashi,

after the weekend I think we can further simplify the Freechain interface.  The 
node_size and bump_count are not necessary for the Freechain core routines 
(_Freechain_Get() and _Freechain_Put()).  Thus we should also remove them.  In 
case the extend handler needs more information you can use something like that:

typedef struct {
   Freechain_Control super;
   size_t bump_count;
} MyFreechain;

bool MyFreechainExtend(Freechain_Control *super)
{
   MyFreechain *self = (MyFreechain *) super;

   ...
}

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the devel mailing list