Mercurial > hg > GearsTemplate
changeset 246:421ea91dd76c
Change initContext type from __code to void
author | Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 25 Jan 2017 03:07:59 +0900 |
parents | 308368406fe7 |
children | ce262b2c1daf |
files | src/parallel_execution/generate_context.pl src/parallel_execution/main.c src/parallel_execution/origin_cs.h src/parallel_execution/test/queue_test.c src/parallel_execution/test/stack_test.c |
diffstat | 5 files changed, 2 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/parallel_execution/generate_context.pl Wed Jan 25 03:04:39 2017 +0900 +++ b/src/parallel_execution/generate_context.pl Wed Jan 25 03:07:59 2017 +0900 @@ -105,7 +105,7 @@ #include "../context.h" #include "extern.h" -__code initContext(struct Context* context) { +void initContext(struct Context* context) { context->heapLimit = sizeof(union Data)*ALLOCATE_SIZE; context->code = (__code(**) (struct Context*)) NEWN(ALLOCATE_SIZE, void*); context->data = NEWN(ALLOCATE_SIZE, union Data*);
--- a/src/parallel_execution/main.c Wed Jan 25 03:04:39 2017 +0900 +++ b/src/parallel_execution/main.c Wed Jan 25 03:07:59 2017 +0900 @@ -5,7 +5,6 @@ #include "context.h" #include "origin_cs.h" -extern __code initContext(struct Context* context); extern union Data* createRedBlackTree(struct Context* context); extern union Data* createTaskManager(struct Context* context); extern void allocator(struct Context* context);
--- a/src/parallel_execution/origin_cs.h Wed Jan 25 03:04:39 2017 +0900 +++ b/src/parallel_execution/origin_cs.h Wed Jan 25 03:07:59 2017 +0900 @@ -1,4 +1,4 @@ extern __code start_code(struct Context* context); extern __code exit_code(struct Context* context); extern __code meta(struct Context* context, enum Code next); -extern __code initContext(struct Context* context); +extern void initContext(struct Context* context);
--- a/src/parallel_execution/test/queue_test.c Wed Jan 25 03:04:39 2017 +0900 +++ b/src/parallel_execution/test/queue_test.c Wed Jan 25 03:07:59 2017 +0900 @@ -3,8 +3,6 @@ #include "../origin_cs.h" #include <assert.h> -extern __code initContext(struct Context* context); - __code queueTest1(struct Context* context, struct Task* task, struct Queue* queue) { task->code = C_queueTest1; queue->next = C_queueTest2;
--- a/src/parallel_execution/test/stack_test.c Wed Jan 25 03:04:39 2017 +0900 +++ b/src/parallel_execution/test/stack_test.c Wed Jan 25 03:07:59 2017 +0900 @@ -3,8 +3,6 @@ #include "../origin_cs.h" #include <assert.h> -extern __code initContext(struct Context* context); - __code stack_test1(struct Context* context, struct Task* task, struct Stack* stack) { task->code = C_stack_test1; stack->next = C_stack_test2;