Subversion Repositories tendra.SVN

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
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 COMMON_INCLUDED
32
#define COMMON_INCLUDED
33
 
34
 
35
/*
36
    DECLARATIONS FOR TYPE MANIPULATION ROUTINES
37
*/
38
 
39
extern ALGEBRA_DEFN *algebra ;
40
extern void new_algebra PROTO_S ( ( void ) ) ;
41
extern ALGEBRA_DEFN *find_algebra PROTO_S ( ( char * ) ) ;
42
extern TYPE_P find_type PROTO_S ( ( ALGEBRA_DEFN *, char * ) ) ;
43
extern TYPE_P register_type PROTO_S ( ( TYPE_P ) ) ;
44
extern int is_identity_type PROTO_S ( ( TYPE_P ) ) ;
45
extern TYPE_P compound_type PROTO_S ( ( unsigned, TYPE_P, int ) ) ;
46
extern void check_types PROTO_S ( ( void ) ) ;
47
extern void import_type PROTO_S ( ( char *, char * ) ) ;
48
extern void import_algebra PROTO_S ( ( char * ) ) ;
49
extern int size_type PROTO_S ( ( TYPE_P, int ) ) ;
50
extern char *name_type PROTO_S ( ( TYPE_P ) ) ;
51
extern char *name_aux_type PROTO_S ( ( TYPE_P ) ) ;
52
extern int is_complex_type PROTO_S ( ( TYPE_P ) ) ;
53
 
54
 
55
/*
56
    MACROS FOR BASIC CLASS SIZES
57
 
58
    These macros give the sizes of the basic types.
59
*/
60
 
61
#define SIZE_PRIM	1
62
#define SIZE_ENUM	1
63
#define SIZE_UNION	1
64
#define SIZE_PTR	1
65
#define SIZE_LIST	1
66
#define SIZE_STACK	1
67
#define SIZE_VEC	3
68
#define SIZE_VEC_PTR	2
69
 
70
 
71
/*
72
    MAXIMUM DEPTH OF TYPE CONSTRUCTORS
73
 
74
    This macro is used to limit the level of type constructors which can
75
    be used.  In particular, it is used in the detection of cyclic types.
76
*/
77
 
78
#define MAX_TYPE_DEPTH	1000
79
 
80
 
81
#endif