8 remove prev
This commit is contained in:
parent
f4b4efbfae
commit
a57e112b89
|
@ -9,7 +9,6 @@ typedef struct node
|
||||||
{
|
{
|
||||||
int value;
|
int value;
|
||||||
struct node *next;
|
struct node *next;
|
||||||
struct node *prev;
|
|
||||||
} Node;
|
} Node;
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
|
@ -31,7 +30,6 @@ BOOL enqueue(int value)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
new_head->value = value;
|
new_head->value = value;
|
||||||
new_head->prev = HEAD;
|
|
||||||
|
|
||||||
if (HEAD != NULL)
|
if (HEAD != NULL)
|
||||||
HEAD->next = new_head;
|
HEAD->next = new_head;
|
||||||
|
|
Loading…
Reference in New Issue