1999-06-14 13:29:14 +00:00
|
|
|
*** ../../wmmon.app/wmgeneral/list.c.orig Tue May 19 17:13:23 1998
|
|
|
|
--- ../../wmmon.app/wmgeneral/list.c Mon May 24 21:26:26 1999
|
1999-01-04 03:40:06 +00:00
|
|
|
***************
|
1999-06-14 13:29:14 +00:00
|
|
|
*** 44,51 ****
|
|
|
|
LinkedList* cell;
|
|
|
|
|
|
|
|
cell = (LinkedList*)malloc(sizeof(LinkedList));
|
|
|
|
! cell->head = head;
|
|
|
|
! cell->tail = tail;
|
|
|
|
return cell;
|
|
|
|
}
|
1999-01-04 03:40:06 +00:00
|
|
|
|
1999-06-14 13:29:14 +00:00
|
|
|
--- 44,54 ----
|
|
|
|
LinkedList* cell;
|
1999-01-04 03:40:06 +00:00
|
|
|
|
1999-06-14 13:29:14 +00:00
|
|
|
cell = (LinkedList*)malloc(sizeof(LinkedList));
|
|
|
|
! if (cell)
|
|
|
|
! {
|
|
|
|
! cell->head = head;
|
|
|
|
! cell->tail = tail;
|
|
|
|
! }
|
|
|
|
return cell;
|
|
|
|
}
|
|
|
|
|
|
|
|
***************
|
|
|
|
*** 84,89 ****
|
|
|
|
--- 87,93 ----
|
|
|
|
INLINE void
|
|
|
|
list_remove_head(LinkedList** list)
|
|
|
|
{
|
|
|
|
+ if (!list) return;
|
|
|
|
if (!*list) return;
|
|
|
|
if ((*list)->tail)
|
|
|
|
{
|