Home
last modified time | relevance | path

Searched refs:newElem (Results 1 – 2 of 2) sorted by relevance

/illumos-gate/usr/src/contrib/mDNSResponder/mDNSShared/
H A DGenLinkedList.c87 int ReplaceElem( GenLinkedList *pList, void *elemInList, void *newElem) in ReplaceElem() argument
92 if ( elemInList == NULL || newElem == NULL) in ReplaceElem()
99 ASSIGNLINK( newElem, GETLINK( elemInList, pList->LinkOffset), pList->LinkOffset); in ReplaceElem()
102 ASSIGNLINK( lastElem, newElem, pList->LinkOffset); in ReplaceElem()
106 pList->Head = newElem; in ReplaceElem()
109 pList->Tail = newElem; in ReplaceElem()
282 int OffsetReplaceElem( GenLinkedOffsetList *pList, void *elemInList, void *newElem) in OffsetReplaceElem() argument
287 if ( elemInList == NULL || newElem == NULL) in OffsetReplaceElem()
295 AssignOffsetLink( newElem, GetOffsetLink( pList, elemInList), pList->LinkOffset); in OffsetReplaceElem()
298 AssignOffsetLink( lastElem, newElem, pList->LinkOffset); in OffsetReplaceElem()
[all …]
H A DGenLinkedList.h41 int ReplaceElem( GenLinkedList *pList, void *elemInList, void *newElem);
87 int OffsetReplaceElem( GenLinkedOffsetList *pList, void *elemInList, void *newElem);