librnr/dlistvoid.c
DListVoid_T *DListVoidNew(DListVoidFuncDataCmp_T fnDataCmp,
                          DListVoidFuncDataDelete_T fnDataDelete)
{
  DListVoid_T  *pHead;

  LOGDIAG4CALL(_TPTR(fnDataCmp), _TPTR(fnDataDelete));

  // allocate head
  pHead = NEW(DListVoid_T);

  // initialize data
  DLIST_NODE_INIT(pHead->m_dnodeHead);
  pHead->m_nNumNodes    = 0;
  pHead->m_fnDataCmp    = fnDataCmp;
  pHead->m_fnDataDelete = fnDataDelete;

  LOGDIAG4(_TPTR(pHead));

  return pHead;
}
/*!
 * \brief Allocate and initialize new empty dlist.
 *
 * \param fnDataCmp     User-supplied data comparator function.
 *                      NULL will disable some functions such as searches.
 * \param fnDataDelete  User-supplied data deallocator.
 *                      NULL will cause user data not to be deleted. 
 *
 * \return Returns pointer to new dlist (head) on success.
 */
\brief Allocate and initialize new empty dlist.
\param fnDataCmp     User-supplied data comparator function.
NULL will disable some functions such as searches.
\param fnDataDelete  User-supplied data deallocator.
NULL will cause user data not to be deleted.

\return Returns pointer to new dlist (head) on success.
\ brief Allocate and initialize new empty dlist . \ param fnDataCmp User - supplied data comparator function . NULL will disable some functions such as searches . \ param fnDataDelete User - supplied data deallocator . NULL will cause user data not to be deleted . \ return Returns pointer to new dlist ( head ) on success .
DListVoid_T *DListVoidNew(DListVoidFuncDataCmp_T fnDataCmp,
                          DListVoidFuncDataDelete_T fnDataDelete)
{
  DListVoid_T  *pHead;
  LOGDIAG4CALL(_TPTR(fnDataCmp), _TPTR(fnDataDelete));
  pHead = NEW(DListVoid_T);
  DLIST_NODE_INIT(pHead->m_dnodeHead);
  pHead->m_nNumNodes    = 0;
  pHead->m_fnDataCmp    = fnDataCmp;
  pHead->m_fnDataDelete = fnDataDelete;
  LOGDIAG4(_TPTR(pHead));
  return pHead;
}
DListVoid_T * DListVoidNew ( DListVoidFuncDataCmp_T fnDataCmp , DListVoidFuncDataDelete_T fnDataDelete ) { DListVoid_T * pHead ; LOGDIAG4CALL ( _TPTR ( fnDataCmp ) , _TPTR ( fnDataDelete ) ) ; pHead = NEW ( DListVoid_T ) ; DLIST_NODE_INIT ( pHead -> m_dnodeHead ) ; pHead -> m_nNumNodes = 0 ; pHead -> m_fnDataCmp = fnDataCmp ; pHead -> m_fnDataDelete = fnDataDelete ; LOGDIAG4 ( _TPTR ( pHead ) ) ; return pHead ; }
\brief Allocate and initialize new empty dlist.
\ brief Allocate and initialize new empty dlist .
// allocate head // initialize data