MCPcopy Create free account
hub / github.com/git/git / list_add

Function list_add

list.h:55–61  ·  view source on GitHub ↗

Add new element at the head of the list. */

Source from the content-addressed store, hash-verified

53
54/* Add new element at the head of the list. */
55static inline void list_add(struct list_head *newp, struct list_head *head)
56{
57 head->next->prev = newp;
58 newp->next = head->next;
59 newp->prev = head;
60 head->next = newp;
61}
62
63/* Add new element at the tail of the list. */
64static inline void list_add_tail(struct list_head *newp, struct list_head *head)

Callers 4

add_arg_to_input_listFunction · 0.85
apply_arg_if_missingFunction · 0.85
list_moveFunction · 0.85
threaded_second_passFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected