Mercurial > hg > Papers > 2015 > kkb-sigos
view paper/source/allocate.h @ 8:bb5fab31cf41
add source file
author | Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 05 May 2015 17:49:31 +0900 |
parents | |
children | 92f7c78d8d6c |
line wrap: on
line source
__code code1(struct Context* context) { context->data[Allocate]->allocate.size = sizeof(struct Node); context->data[Allocate]->allocate.next = Code2; goto Allocate(context); } __code allocate(struct Context* context) { context->data[++context->dataNum] = context->heap; context->heap += context->data[Allocate]->allocate.size; goto (context->code[context->data[Allocate]->allocate.next])(context); } __code code2(struct Context* context) { // processing content }