MCPcopy Create free account
hub / github.com/cgsecurity/testdisk / __td_list_del

Function __td_list_del

src/list.h:220–226  ·  view source on GitHub ↗

* Delete a list entry by making the prev/next entries * point to each other. * * This is only for internal list manipulation where we know * the prev/next entries already! */ @ @ requires \valid(prev); @ requires \valid(next); @ requires prev == next || \separated(prev,next); @ terminates \true; @ ensures next->prev == prev; @ ensures prev->next == next; @ assigns next->prev,pre

Source from the content-addressed store, hash-verified

218 @ assigns next->prev,prev->next;
219 @*/
220static inline void __td_list_del(struct td_list_head * prev, struct td_list_head * next)
221{
222 next->prev = prev;
223 prev->next = next;
224 /*@ assert next->prev == prev; */
225 /*@ assert prev->next == next; */
226}
227
228/**
229 * td_list_del - deletes entry from list.

Callers 4

td_list_delFunction · 0.85
td_list_del_initFunction · 0.85
td_list_moveFunction · 0.85
td_list_move_tailFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected