Mercurial > hg > GearsTemplate
comparison 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 |
comparison
equal
deleted
inserted
replaced
22:4c3c0ad4a75d | 23:868c2918b634 |
---|---|
5 __code allocate(struct Context* context) { | 5 __code allocate(struct Context* context) { |
6 goto meta_allocate(context); | 6 goto meta_allocate(context); |
7 } | 7 } |
8 | 8 |
9 __code meta_allocate(struct Context* context) { | 9 __code meta_allocate(struct Context* context) { |
10 context->data[++context->dataSize] = context->heap; | 10 context->data[++context->dataNum] = context->heap; |
11 context->heap += context->data[0]->allocate.size; | 11 context->heap += context->data[0]->allocate.size; |
12 goto (context->code[context->data[0]->allocate.next])(context); | 12 goto (context->code[context->data[0]->allocate.next])(context); |
13 } | 13 } |