0576641cae
Also add `static` and remove `register` in mach/proto/top/top.c. A static function is only in one file, so its function declaration may go in that file, instead of a header file.
24 lines
506 B
C
24 lines
506 B
C
/* $Id$ */
|
|
/*
|
|
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
|
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
|
*/
|
|
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
|
|
|
|
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);
|