Lines Matching refs:newElem
95 int ReplaceElem( GenLinkedList *pList, void *elemInList, void *newElem) in ReplaceElem() argument
100 if ( elemInList == NULL || newElem == NULL) in ReplaceElem()
107 ASSIGNLINK( newElem, GETLINK( elemInList, pList->LinkOffset), pList->LinkOffset); in ReplaceElem()
110 ASSIGNLINK( lastElem, newElem, pList->LinkOffset); in ReplaceElem()
114 pList->Head = newElem; in ReplaceElem()
117 pList->Tail = newElem; in ReplaceElem()
287 int OffsetReplaceElem( GenLinkedOffsetList *pList, void *elemInList, void *newElem) in OffsetReplaceElem() argument
292 if ( elemInList == NULL || newElem == NULL) in OffsetReplaceElem()
300 AssignOffsetLink( newElem, GetOffsetLink( pList, elemInList), pList->LinkOffset); in OffsetReplaceElem()
303 AssignOffsetLink( lastElem, newElem, pList->LinkOffset); in OffsetReplaceElem()
307 pList->Head = (size_t) newElem - (size_t) pList; in OffsetReplaceElem()
310 pList->Tail = (size_t) newElem - (size_t) pList; in OffsetReplaceElem()