MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlWalkRemoveRef

Function xmlWalkRemoveRef

ThirdParty/libxml2/vtklibxml2/valid.c:2658–2670  ·  view source on GitHub ↗

* xmlWalkRemoveRef: * @data: Contents of current link * @user: Value supplied by the user * * Returns 0 to abort the walk or 1 to continue */

Source from the content-addressed store, hash-verified

2656 * Returns 0 to abort the walk or 1 to continue
2657 */
2658static int
2659xmlWalkRemoveRef(const void *data, void *user)
2660{
2661 xmlAttrPtr attr0 = ((xmlRefPtr)data)->attr;
2662 xmlAttrPtr attr1 = ((xmlRemoveMemoPtr)user)->ap;
2663 xmlListPtr ref_list = ((xmlRemoveMemoPtr)user)->l;
2664
2665 if (attr0 == attr1) { /* Matched: remove and terminate walk */
2666 xmlListRemoveFirst(ref_list, (void *)data);
2667 return 0;
2668 }
2669 return 1;
2670}
2671
2672/**
2673 * xmlDummyCompare

Callers

nothing calls this directly

Calls 1

xmlListRemoveFirstFunction · 0.85

Tested by

no test coverage detected