comparison src/list/listContext.h @ 35:2bdd8e2118c7

Add tail pointer to List data segment
author Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
date Tue, 05 May 2015 21:16:04 +0900
parents c3314208d7b9
children 2ff693c5563c
comparison
equal deleted inserted replaced
34:c3314208d7b9 35:2bdd8e2118c7
34 34
35 union Data { 35 union Data {
36 long count; 36 long count;
37 struct List { 37 struct List {
38 union Data* head; 38 union Data* head;
39 union Data* tail;
39 union Data* current; 40 union Data* current;
40 } list; 41 } list;
41 struct Element { 42 struct Element {
42 int value; 43 int value;
43 union Data* next; 44 union Data* next;