# HG changeset patch # User Tatsuki IHA # Date 1485281279 -32400 # Node ID 421ea91dd76cccd93fcce166327be89f4b7332cb # Parent 308368406fe79aaa48308befdaaa365a38fcd4ee Change initContext type from __code to void diff -r 308368406fe7 -r 421ea91dd76c src/parallel_execution/generate_context.pl --- 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*); diff -r 308368406fe7 -r 421ea91dd76c src/parallel_execution/main.c --- 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); diff -r 308368406fe7 -r 421ea91dd76c src/parallel_execution/origin_cs.h --- 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); diff -r 308368406fe7 -r 421ea91dd76c src/parallel_execution/test/queue_test.c --- 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 -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; diff -r 308368406fe7 -r 421ea91dd76c src/parallel_execution/test/stack_test.c --- 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 -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;