annotate paper/src/singleLinkedQueueTest_script.cbc @ 3:959f4b34d6f4

add final thesis
author soto
date Tue, 09 Feb 2021 18:44:53 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
959f4b34d6f4 add final thesis
soto
parents:
diff changeset
1 __code code1(struct Context *context) {
959f4b34d6f4 add final thesis
soto
parents:
diff changeset
2 Queue* queue = createSingleLinkedQueue(context);
959f4b34d6f4 add final thesis
soto
parents:
diff changeset
3 Node* node = &ALLOCATE(context, Node)->Node;
959f4b34d6f4 add final thesis
soto
parents:
diff changeset
4 node->color = Red;
959f4b34d6f4 add final thesis
soto
parents:
diff changeset
5 Gearef(context, Queue)->queue = (union Data*) queue;
959f4b34d6f4 add final thesis
soto
parents:
diff changeset
6 Gearef(context, Queue)->data = (union Data*) node;
959f4b34d6f4 add final thesis
soto
parents:
diff changeset
7 Gearef(context, Queue)->next = C_queueTest2;
959f4b34d6f4 add final thesis
soto
parents:
diff changeset
8 goto meta(context, queue->put);
959f4b34d6f4 add final thesis
soto
parents:
diff changeset
9 }