Mercurial > hg > Members > innparusu > Gears
view 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 |
line wrap: on
line source
/* Context definition for allocate example */ enum Code { Code1, Code2, Code3, Allocate, Exit, }; struct Context { int codeSize; __code (**code) (struct Context *); void* heap; int dataSize; union Data **data; }; union Data { char data[8]; long count; struct Allocate { long size; enum Code next; } allocate; };