Ticket #36397: patch-prio_list.c.diff
File patch-prio_list.c.diff, 567 bytes (added by stevecheckoway (Stephen Checkoway), 12 years ago) |
---|
-
prio_list.c
old new typedef struct prio_list { 25 25 * checks for inserting into the head or tail, and then proceeds sequentially. 26 26 * Thus, it is worst case linear, but for most cases constant time (right). */ 27 27 28 prio_insert(node, list, desc) 29 Prio_list node; 30 Prio_list list; 31 Boolean desc; 28 void prio_insert(void *node_, void *list_, Boolean desc) 32 29 { 30 Prio_list node = node_; 31 Prio_list list = list_; 33 32 Prio_list p; 34 33 35 34 /* Check nil and head of list */