view 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 source

#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;
}