Lines Matching refs:lastElem
74 void *iElem, *lastElem; in RemoveFromList() local
76 for ( iElem = pList->Head, lastElem = NULL; iElem; iElem = GETLINK( iElem, pList->LinkOffset)) { in RemoveFromList()
78 if ( lastElem) { // somewhere past the head in RemoveFromList()
79 ASSIGNLINK( lastElem, GETLINK( elem, pList->LinkOffset), pList->LinkOffset); in RemoveFromList()
84 pList->Tail = lastElem ? lastElem : NULL; in RemoveFromList()
88 lastElem = iElem; in RemoveFromList()
98 void *iElem, *lastElem; in ReplaceElem() local
103 for ( iElem = pList->Head, lastElem = NULL; iElem; iElem = GETLINK( iElem, pList->LinkOffset)) in ReplaceElem()
108 if ( lastElem) // somewhere past the head in ReplaceElem()
110 ASSIGNLINK( lastElem, newElem, pList->LinkOffset); in ReplaceElem()
120 lastElem = iElem; in ReplaceElem()
263 void *iElem, *lastElem; in OffsetRemoveFromList() local
265 for ( iElem = GetHeadPtr( pList), lastElem = NULL; iElem; in OffsetRemoveFromList()
269 if ( lastElem) { // somewhere past the head in OffsetRemoveFromList()
270 AssignOffsetLink( lastElem, GetOffsetLink( pList, elem), pList->LinkOffset); in OffsetRemoveFromList()
276 pList->Tail = lastElem ? (size_t) lastElem - (size_t) pList : 0; in OffsetRemoveFromList()
280 lastElem = iElem; in OffsetRemoveFromList()
290 void *iElem, *lastElem; in OffsetReplaceElem() local
295 for ( iElem = GetHeadPtr( pList), lastElem = NULL; iElem; in OffsetReplaceElem()
301 if ( lastElem) // somewhere past the head in OffsetReplaceElem()
303 AssignOffsetLink( lastElem, newElem, pList->LinkOffset); in OffsetReplaceElem()
313 lastElem = iElem; in OffsetReplaceElem()