Pristine Ack-5.5
[Ack-5.5.git] / lang / m2 / m2mm / file_list.h
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
8 /*  F I L E   L I S T   S T R U C T U R E   */
9
10 struct file_list {
11         char            *a_filename;    /* name of file */
12         char            *a_dir;         /* directory in which it resides */
13         struct idf      *a_idf;         /* its idf-structure */
14         struct file_list *a_next;       /* next in list */
15         char            a_notfound;     /* could not open ... */
16 };
17
18 #define f_walk(list, ctrl) \
19         for (ctrl = (list); ctrl; ctrl = ctrl->a_next)
20
21 #define f_filename(a)   ((a)->a_filename)
22 #define f_idf(a)        ((a)->a_idf)
23 #define f_dir(a)        ((a)->a_dir)
24 #define f_notfound(a)   ((a)->a_notfound)