1994-06-24 14:02:31 +00:00
|
|
|
/* $Id$ */
|
1987-03-09 19:15:41 +00:00
|
|
|
/*
|
|
|
|
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
|
|
|
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
|
|
|
*/
|
1986-11-24 20:58:35 +00:00
|
|
|
typedef struct queue_t *queue;
|
|
|
|
|
|
|
|
struct queue_t {
|
|
|
|
instr_p head;
|
|
|
|
instr_p tail;
|
|
|
|
int qlen;
|
|
|
|
};
|
|
|
|
|
|
|
|
#define qhead(q) (q)->head
|
|
|
|
#define qlength(q) (q)->qlen
|
|
|
|
#define next(x) (x)->fw
|
2019-10-25 19:52:09 +00:00
|
|
|
|
|
|
|
void empty_queue(queue);
|
|
|
|
int empty(queue);
|
|
|
|
void remove_head(queue);
|
|
|
|
void add(queue, instr_p);
|
|
|
|
void insert(queue, instr_p);
|
|
|
|
void join_queues(queue, queue);
|