Pristine Ack-5.5
[Ack-5.5.git] / lang / m2 / m2mm / idf.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 /* U S E R   D E C L A R E D   P A R T   O F   I D F */
9
10 /* $Id: idf.h,v 1.2 1994/06/24 12:45:02 ceriel Exp $ */
11
12 #include "file_list.h"
13
14 struct lnk {
15         struct lnk *lnk_next;
16         struct idf *lnk_imp;
17 };
18
19 struct id_u {
20         int id_res;
21         int id_tp;              /* PROGRAM OR IMPLEMENTATION OR DEFINITION */
22         struct lnk *id_defimp;  /* imported by definition module */
23         struct lnk *id_modimp;  /* imported by implementation module */
24         char *id_d;             /* directory */
25         struct file_list *id_mdep;      /* module depends on: */
26         struct file_list *id_ddep;      /* definition module depends on: */
27         char *id_df;            /* name of definition module */
28 };
29
30 #define IDF_TYPE        struct id_u
31 #define id_reserved     id_user.id_res
32 #define id_type         id_user.id_tp
33 #define id_defimports   id_user.id_defimp
34 #define id_modimports   id_user.id_modimp
35 #define id_dir          id_user.id_d
36 #define id_mdependson   id_user.id_mdep
37 #define id_ddependson   id_user.id_ddep
38 #define id_def          id_user.id_df
39
40 #include        <idf_pkg.spec>