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