view paper/src/singleLinkedQueueTest_script.cbc @ 19:046b2b20d6c7 default tip

fix
author ryokka
date Mon, 09 Mar 2020 11:25:49 +0900
parents c7acb9211784
children
line wrap: on
line source

__code code1(struct Context *context) {
    Queue* queue = createSingleLinkedQueue(context);
    Node* node = &ALLOCATE(context, Node)->Node;
    node->color = Red;
	Gearef(context, Queue)->queue = (union Data*) queue;
	Gearef(context, Queue)->data = (union Data*) node;
	Gearef(context, Queue)->next = C_queueTest2;
    goto meta(context, queue->put);
}