Mercurial > hg > GearsTemplate
comparison src/parallel_execution/allocate.c @ 131:a4507906938c
Fix compile error but not work
author | Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 25 Oct 2016 00:49:28 +0900 |
parents | 2bb5e4f0fd35 |
children | a747dc9d4da6 |
comparison
equal
deleted
inserted
replaced
130:2bb5e4f0fd35 | 131:a4507906938c |
---|---|
4 context->data[++context->dataNum] = context->heap; | 4 context->data[++context->dataNum] = context->heap; |
5 context->heap += context->data[Allocate]->allocate.size; | 5 context->heap += context->data[Allocate]->allocate.size; |
6 return context->data[context->dataNum]; | 6 return context->data[context->dataNum]; |
7 } | 7 } |
8 | 8 |
9 __code allocator(struct Context* context, struct Allocate* allocate) { | 9 __code allocatorCS(struct Context* context, struct Allocate* allocate) { |
10 context->data[++context->dataNum] = context->heap; | 10 context->data[++context->dataNum] = context->heap; |
11 context->heap += allocate->size; | 11 context->heap += allocate->size; |
12 goto meta(context, allocate->next); | 12 goto meta(context, allocate->next); |
13 } | 13 } |
14 | 14 |
15 __code allocator_stub(struct Context* context) { | 15 __code allocator_stub(struct Context* context) { |
16 goto allocator(context, &context->[Allocate]->allocate); | 16 goto allocatorCS(context, &context->data[Allocate]->allocate); |
17 } | 17 } |