queue.h 383 B

1234567891011121314151617
  1. /* $Header$ */
  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 item *item_p;
  7. typedef struct queue_t *queue;
  8. struct queue_t {
  9. instr_p head;
  10. instr_p tail;
  11. int qlen;
  12. };
  13. #define qhead(q) (q)->head
  14. #define qlength(q) (q)->qlen
  15. #define next(x) (x)->fw