93 pElement->
pPrev = pElement-1;
94 pElement->
pNext = pElement+1;
102 (pElement-1)->
pNext = NULL;
130 if( pNewNode->
pNext )
137 pNewNode->
pPrev = NULL;
141 pNewNode->
pNext = NULL;
152 return reinterpret_cast<USER_TYPE*
>(pNewNode);
160 void free( USER_TYPE *user_data )
201 printf(
"free list " );
211 printf(
"used list " );
231 return reinterpret_cast<USER_TYPE *
> 250 #endif // defined FSA_H USER_TYPE * GetNext(USER_TYPE *node)
FSA_ELEMENT * m_pFirstFree
FixedSizeAllocator(unsigned int MaxElements=FSA_DEFAULT_SIZE)
FSA_ELEMENT * m_pFirstUsed
unsigned int m_MaxElements
void free(USER_TYPE *user_data)