Mercurial > hg > Members > innparusu > Gears
annotate src/allocate/allocateContext.h @ 113:d05b9937aa95
Change element data from Task to Data
author | Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 07 Jun 2016 18:43:21 +0900 |
parents | 1eb599acffe4 |
children |
rev | line source |
---|---|
14 | 1 /* Context definition for allocate example */ |
2 | |
3 enum Code { | |
15 | 4 Code1, |
5 Code2, | |
6 Code3, | |
7 Allocate, | |
8 Exit, | |
9 }; | |
14 | 10 |
11 struct Context { | |
12 int codeSize; | |
15 | 13 __code (**code) (struct Context *); |
17 | 14 void* heap; |
14 | 15 int dataSize; |
15 | 16 union Data **data; |
17 }; | |
14 | 18 |
19 union Data { | |
15 | 20 char data[8]; |
14 | 21 long count; |
22 struct Allocate { | |
23 long size; | |
24 enum Code next; | |
25 } allocate; | |
15 | 26 }; |