rclist.h 311 B

123456789101112131415161718192021
  1. /* row/col list */
  2. struct rc
  3. {
  4. struct rc *next;
  5. int row;
  6. int col;
  7. };
  8. struct rclist
  9. {
  10. struct rc *tail, *head;
  11. };
  12. /* rclist.c */
  13. void rclist_init(struct rclist *);
  14. void rclist_add(struct rclist *, int, int);
  15. int rclist_drop(struct rclist *, struct rc *);
  16. void rclist_destroy(struct rclist *);