* xmlWalkRemoveRef: * @data: Contents of current link * @user: Value supplied by the user * * Returns 0 to abort the walk or 1 to continue */
| 2656 | * Returns 0 to abort the walk or 1 to continue |
| 2657 | */ |
| 2658 | static int |
| 2659 | xmlWalkRemoveRef(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 |
nothing calls this directly
no test coverage detected