2 |
7u83 |
1 |
/*
|
|
|
2 |
Crown Copyright (c) 1997
|
|
|
3 |
|
|
|
4 |
This TenDRA(r) Computer Program is subject to Copyright
|
|
|
5 |
owned by the United Kingdom Secretary of State for Defence
|
|
|
6 |
acting through the Defence Evaluation and Research Agency
|
|
|
7 |
(DERA). It is made available to Recipients with a
|
|
|
8 |
royalty-free licence for its use, reproduction, transfer
|
|
|
9 |
to other parties and amendment for any purpose not excluding
|
|
|
10 |
product development provided that any such use et cetera
|
|
|
11 |
shall be deemed to be acceptance of the following conditions:-
|
|
|
12 |
|
|
|
13 |
(1) Its Recipients shall ensure that this Notice is
|
|
|
14 |
reproduced upon any copies or amended versions of it;
|
|
|
15 |
|
|
|
16 |
(2) Any amended version of it shall be clearly marked to
|
|
|
17 |
show both the nature of and the organisation responsible
|
|
|
18 |
for the relevant amendment or amendments;
|
|
|
19 |
|
|
|
20 |
(3) Its onward transfer from a recipient to another
|
|
|
21 |
party shall be deemed to be that party's acceptance of
|
|
|
22 |
these conditions;
|
|
|
23 |
|
|
|
24 |
(4) DERA gives no warranty or assurance as to its
|
|
|
25 |
quality or suitability for any purpose and DERA accepts
|
|
|
26 |
no liability whatsoever in relation to any use to which
|
|
|
27 |
it may be put.
|
|
|
28 |
*/
|
|
|
29 |
|
|
|
30 |
|
|
|
31 |
#ifndef TYPES_INCLUDED
|
|
|
32 |
#define TYPES_INCLUDED
|
|
|
33 |
|
|
|
34 |
|
|
|
35 |
/*
|
|
|
36 |
TYPE DECLARATIONS
|
|
|
37 |
|
|
|
38 |
These types need to be declared before they are used.
|
|
|
39 |
*/
|
|
|
40 |
|
|
|
41 |
struct pathname_tag ;
|
|
|
42 |
struct dependency_tag ;
|
|
|
43 |
struct option_tag ;
|
|
|
44 |
struct directory_tag ;
|
|
|
45 |
|
|
|
46 |
|
|
|
47 |
/*
|
|
|
48 |
TYPE REPRESENTING A FILE NAME
|
|
|
49 |
|
|
|
50 |
This structure is used to represent a file or directory name. Each
|
|
|
51 |
such name is broken into components represented by a structure. Files
|
|
|
52 |
within a directory are listed under the sub field, linked together
|
|
|
53 |
using the next field. Each file contains a pointer to its parent
|
|
|
54 |
directory in its up field.
|
|
|
55 |
*/
|
|
|
56 |
|
|
|
57 |
typedef struct pathname_tag {
|
|
|
58 |
char *name ;
|
|
|
59 |
char *suffix ;
|
|
|
60 |
char *full ;
|
|
|
61 |
char *quote ;
|
|
|
62 |
char *alias ;
|
|
|
63 |
int mark ;
|
|
|
64 |
int exists ;
|
|
|
65 |
struct dependency_tag *dep ;
|
|
|
66 |
struct pathname_tag *up ;
|
|
|
67 |
struct pathname_tag *sub ;
|
|
|
68 |
struct pathname_tag *next ;
|
|
|
69 |
} PATHNAME ;
|
|
|
70 |
|
|
|
71 |
|
|
|
72 |
/*
|
|
|
73 |
TYPE REPRESENTING A DEPENDENCY
|
|
|
74 |
|
|
|
75 |
This structure is used to represent a dependency. The file field gives
|
|
|
76 |
the file depended on and next gives the next dependency in a list.
|
|
|
77 |
*/
|
|
|
78 |
|
|
|
79 |
typedef struct dependency_tag {
|
|
|
80 |
PATHNAME *file ;
|
|
|
81 |
struct dependency_tag *next ;
|
|
|
82 |
} DEPENDENCY ;
|
|
|
83 |
|
|
|
84 |
|
|
|
85 |
/*
|
|
|
86 |
TYPE REPRESENTING A LIST OF OPTIONS
|
|
|
87 |
|
|
|
88 |
This structure is used to represent a list of command-line options or
|
|
|
89 |
other lists of strings.
|
|
|
90 |
*/
|
|
|
91 |
|
|
|
92 |
typedef struct option_tag {
|
|
|
93 |
char *opt ;
|
|
|
94 |
struct option_tag *next ;
|
|
|
95 |
} OPTION ;
|
|
|
96 |
|
|
|
97 |
|
|
|
98 |
/*
|
|
|
99 |
TYPE REPRESENTING A LIST OF DIRECTORIES
|
|
|
100 |
|
|
|
101 |
This structure is used to represent a list of directories, such as that
|
|
|
102 |
to be searched in '#include' directives.
|
|
|
103 |
*/
|
|
|
104 |
|
|
|
105 |
typedef struct directory_tag {
|
|
|
106 |
PATHNAME *dir ;
|
|
|
107 |
int builtin ;
|
|
|
108 |
struct directory_tag *next ;
|
|
|
109 |
} DIRECTORY ;
|
|
|
110 |
|
|
|
111 |
|
|
|
112 |
#endif
|