file_list.h 713 B

123456789101112131415161718192021222324
  1. /*
  2. * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
  3. * See the copyright notice in the ACK home directory, in the file "Copyright".
  4. *
  5. * Author: Ceriel J.H. Jacobs
  6. */
  7. /* F I L E L I S T S T R U C T U R E */
  8. struct file_list {
  9. char *a_filename; /* name of file */
  10. char *a_dir; /* directory in which it resides */
  11. struct idf *a_idf; /* its idf-structure */
  12. struct file_list *a_next; /* next in list */
  13. char a_notfound; /* could not open ... */
  14. };
  15. #define f_walk(list, ctrl) \
  16. for (ctrl = (list); ctrl; ctrl = ctrl->a_next)
  17. #define f_filename(a) ((a)->a_filename)
  18. #define f_idf(a) ((a)->a_idf)
  19. #define f_dir(a) ((a)->a_dir)
  20. #define f_notfound(a) ((a)->a_notfound)