| 95 |
|
void |
| 96 |
|
dlinkAddBefore(dlink_node *b, void *data, dlink_node *m, dlink_list *list) |
| 97 |
|
{ |
| 98 |
< |
/* Shortcut - if its the first one, call dlinkAdd only */ |
| 98 |
> |
/* Shortcut - if it's the first one, call dlinkAdd only */ |
| 99 |
|
if (b == list->head) |
| 100 |
|
dlinkAdd(data, m, list); |
| 101 |
|
else |
| 184 |
|
return; |
| 185 |
|
|
| 186 |
|
/* case two, nothing in to list */ |
| 187 |
< |
/* actually if to->head is NULL and to->tail isn't, thats a bug */ |
| 187 |
> |
/* actually if to->head is NULL and to->tail isn't, that's a bug */ |
| 188 |
|
if (to->head == NULL) |
| 189 |
|
{ |
| 190 |
|
to->head = from->head; |