Mercurial > hg > GearsTemplate
comparison src/list/listContext.h @ 55:2ff693c5563c
Add stub to list
author | Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 16 Jun 2015 01:18:39 +0900 |
parents | 2bdd8e2118c7 |
children |
comparison
equal
deleted
inserted
replaced
54:0299b90256e5 | 55:2ff693c5563c |
---|---|
7 Code2, | 7 Code2, |
8 Code3, | 8 Code3, |
9 Code4, | 9 Code4, |
10 Code5, | 10 Code5, |
11 Code6, | 11 Code6, |
12 Code7, | |
12 Allocator, | 13 Allocator, |
13 Append, | 14 Append, |
14 Traverse, | 15 Traverse, |
15 Delete, | 16 Delete, |
16 Exit, | 17 Exit, |
33 }; | 34 }; |
34 | 35 |
35 union Data { | 36 union Data { |
36 long count; | 37 long count; |
37 struct List { | 38 struct List { |
38 union Data* head; | 39 struct Element* head; |
39 union Data* tail; | 40 struct Element* tail; |
40 union Data* current; | 41 struct Element* current; |
41 } list; | 42 } list; |
42 struct Element { | 43 struct Element { |
43 int value; | 44 int value; |
44 union Data* next; | 45 struct Element* next; |
45 } element; | 46 } element; |
46 struct Allocate { | 47 struct Allocate { |
47 long size; | 48 long size; |
48 enum Code next; | 49 enum Code next; |
49 enum Code after_append; | 50 enum Code after_append; |