annotate paper/src/singleLinkedQueueTest_script.cbc @ 14:a63df15c9afc default tip

DONE
author soto <soto@cr.ie.u-ryukyu.ac.jp>
date Mon, 15 Feb 2021 23:36:39 +0900
parents 959f4b34d6f4
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 }