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

Code linkage information
author innparusu
date Fri, 10 Apr 2015 17:57:38 +0900
parents
children 907c69e21e56
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/allocate/allocateContext.c	Fri Apr 10 17:57:38 2015 +0900
@@ -0,0 +1,16 @@
+#include "allocateContext.h"
+extern __code code1(struct Context*);
+extern __code code2(struct Context*);
+extern __code code3(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;
+}