changeset 204:57a88b2ae3b3

Rename queue_test Code Gear
author Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
date Tue, 20 Dec 2016 03:18:29 +0900
parents 25db17f32ac2
children 1b15f02ec713
files src/parallel_execution/test/queue_test.c
diffstat 1 files changed, 21 insertions(+), 21 deletions(-) [+]
line wrap: on
line diff
--- a/src/parallel_execution/test/queue_test.c	Mon Dec 19 22:23:37 2016 +0900
+++ b/src/parallel_execution/test/queue_test.c	Tue Dec 20 03:18:29 2016 +0900
@@ -4,62 +4,62 @@
 #include <assert.h>
 
 
-__code queueTest1(struct Context* context, struct Task* task, struct Queue* queue) {
-    task->code = C_queueTest1;
-    queue->next = C_queueTest2;
+__code queue_test1(struct Context* context, struct Task* task, struct Queue* queue) {
+    task->code = C_queue_test1;
+    queue->next = C_queue_test2;
     queue->data = (union Data*)task;
     goto meta(context, queue->queue->Queue.put);
 }
 
-__code queueTest1_stub(struct Context* context) {
+__code queue_test1_stub(struct Context* context) {
     Task* task = &ALLOCATE(context, Task)->Task;
     struct Queue* queue = &(createSingleLinkedQueue(context)->Queue);
     assert(queue->queue->SingleLinkedQueue.top == NULL);
     assert(queue->queue->SingleLinkedQueue.last == NULL);
     context->data[D_Queue]->Queue.queue = (union Data*)queue;
-    goto queueTest1(context,
+    goto queue_test1(context,
             task,
             &context->data[D_Queue]->Queue);
 }
 
-__code queueTest2(struct Context* context, struct Task* task, struct Queue* queue) {
-    task->code = C_queueTest2;
-    queue->next = C_queueTest3;
+__code queue_test2(struct Context* context, struct Task* task, struct Queue* queue) {
+    task->code = C_queue_test2;
+    queue->next = C_queue_test3;
     queue->data = (union Data*)task;
     goto meta(context, queue->queue->Queue.put);
 }
 
-__code queueTest2_stub(struct Context* context) {
+__code queue_test2_stub(struct Context* context) {
     Task* task = &ALLOCATE(context, Task)->Task;
-    goto queueTest2(context,
+    goto queue_test2(context,
             task,
             &context->data[D_Queue]->Queue.queue);
 }
 
-__code queueTest3(struct Context* context, struct Queue* queue) {
-    queue->next = C_queueTest4;
+__code queue_test3(struct Context* context, struct Queue* queue) {
+    queue->next = C_queue_test4;
     goto meta(context, queue->queue->Queue.take);
 }
 
-__code queueTest3_stub(struct Context* context) {
-    goto queueTest3(context,
+__code queue_test3_stub(struct Context* context) {
+    goto queue_test3(context,
             &context->data[D_Queue]->Queue);
 }
 
-__code queueTest4(struct Context* context, struct Queue* queue) {
-    goto meta(context, C_queueTest4 /*Exit*/ );
+__code queue_test4(struct Context* context, struct Queue* queue) {
+    goto meta(context, C_queue_test4 /*Exit*/ );
 }
 
-__code queueTest4_stub(struct Context* context) {
-//    assert(((struct Task)context->data[D_Queue]->queue.queue.data)->code == C_queueTest1)
-//    assert(((struct Task)context->data[D_Queue]->queue.queue.last->data)->code == C_queueTest2)
-    goto queueTest4(context,
+__code queue_test4_stub(struct Context* context) {
+//    assert(((struct Task)context->data[D_Queue]->queue.queue.data)->code == C_queue_test1)
+//    assert(((struct Task)context->data[D_Queue]->queue.queue.last->data)->code == C_queue_test2)
+    goto queue_test4(context,
             &context->data[D_Queue]->Queue.queue);
 }
 
 int main(int argc, char const* argv[]) {
     struct Context* main_context = NEW(struct Context);
     initContext(main_context);
-    main_context->next = C_queueTest1;
+    main_context->next = C_queue_test1;
     goto start_code(main_context);
 }