Mercurial > hg > Members > Moririn
view src/allocate/allocateContext.c @ 16:481760d44d87
modify
author | Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 14 Apr 2015 03:47:15 +0900 |
parents | 907c69e21e56 |
children | 1eb599acffe4 |
line wrap: on
line source
#include "allocateContext.h" extern __code code1(struct Context*); extern __code code2(struct Context*); extern __code code3(struct Context*); extern __code meta(struct Context*); extern __code allocate(struct Context*); extern __code exit_code(struct Context*); __code initAllocateContext(struct Context* context) { context->codeSize = 3; context->code[Code1] = code1; context->code[Code2] = code2; context->code[Code3] = code3; context->code[Allocate] = allocate; context->code[Exit] = exit_code; context->dataSize = 0; }