Mercurial > hg > Members > Moririn
view src/include/allocate.h @ 23:868c2918b634
Non Destructive llrb
author | Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 30 Apr 2015 19:07:23 +0900 |
parents | ec4e7a81bddf |
children | c469c5ed5b4d |
line wrap: on
line source
__code allocate(); __code meta_allocate(); extern __code meta(); __code allocate(struct Context* context) { goto meta_allocate(context); } __code meta_allocate(struct Context* context) { context->data[++context->dataNum] = context->heap; context->heap += context->data[0]->allocate.size; goto (context->code[context->data[0]->allocate.next])(context); }