queue.h 350 B

12345678910111213141516
  1. /* $Id$ */
  2. /*
  3. * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
  4. * See the copyright notice in the ACK home directory, in the file "Copyright".
  5. */
  6. typedef struct queue_t *queue;
  7. struct queue_t {
  8. instr_p head;
  9. instr_p tail;
  10. int qlen;
  11. };
  12. #define qhead(q) (q)->head
  13. #define qlength(q) (q)->qlen
  14. #define next(x) (x)->fw