Mercurial > hg > Gears > GearsAgda
view src/allocate/allocateContext.c @ 15:907c69e21e56
modify allocate
author | Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 14 Apr 2015 03:37:22 +0900 |
parents | d98961bfd0f2 |
children | 481760d44d87 |
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*); extern __code initAllocateContext(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; }