annotate src/allocate/allocateContext.c @ 14:d98961bfd0f2

Code linkage information
author innparusu
date Fri, 10 Apr 2015 17:57:38 +0900
parents
children 907c69e21e56
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
14
d98961bfd0f2 Code linkage information
innparusu
parents:
diff changeset
1 #include "allocateContext.h"
d98961bfd0f2 Code linkage information
innparusu
parents:
diff changeset
2 extern __code code1(struct Context*);
d98961bfd0f2 Code linkage information
innparusu
parents:
diff changeset
3 extern __code code2(struct Context*);
d98961bfd0f2 Code linkage information
innparusu
parents:
diff changeset
4 extern __code code3(struct Context*);
d98961bfd0f2 Code linkage information
innparusu
parents:
diff changeset
5 extern __code allocate(struct Context*);
d98961bfd0f2 Code linkage information
innparusu
parents:
diff changeset
6 extern __code exit_code(struct Context*);
d98961bfd0f2 Code linkage information
innparusu
parents:
diff changeset
7
d98961bfd0f2 Code linkage information
innparusu
parents:
diff changeset
8 __code initAllocateContext(struct Context* context) {
d98961bfd0f2 Code linkage information
innparusu
parents:
diff changeset
9
d98961bfd0f2 Code linkage information
innparusu
parents:
diff changeset
10 context->codeSize = 3;
d98961bfd0f2 Code linkage information
innparusu
parents:
diff changeset
11 context->code[Code1] = code1;
d98961bfd0f2 Code linkage information
innparusu
parents:
diff changeset
12 context->code[Code2] = code2;
d98961bfd0f2 Code linkage information
innparusu
parents:
diff changeset
13 context->code[Code3] = code3;
d98961bfd0f2 Code linkage information
innparusu
parents:
diff changeset
14 context->code[Allocate] = allocate;
d98961bfd0f2 Code linkage information
innparusu
parents:
diff changeset
15 context->code[Exit] = exit_code;
d98961bfd0f2 Code linkage information
innparusu
parents:
diff changeset
16 }