Subversion Repositories tendra.SVN

Rev

Rev 2 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2 Rev 7
Line -... Line 1...
-
 
1
/*
-
 
2
 * Copyright (c) 2002-2005 The TenDRA Project <http://www.tendra.org/>.
-
 
3
 * All rights reserved.
-
 
4
 *
-
 
5
 * Redistribution and use in source and binary forms, with or without
-
 
6
 * modification, are permitted provided that the following conditions are met:
-
 
7
 *
-
 
8
 * 1. Redistributions of source code must retain the above copyright notice,
-
 
9
 *    this list of conditions and the following disclaimer.
-
 
10
 * 2. Redistributions in binary form must reproduce the above copyright notice,
-
 
11
 *    this list of conditions and the following disclaimer in the documentation
-
 
12
 *    and/or other materials provided with the distribution.
-
 
13
 * 3. Neither the name of The TenDRA Project nor the names of its contributors
-
 
14
 *    may be used to endorse or promote products derived from this software
-
 
15
 *    without specific, prior written permission.
-
 
16
 *
-
 
17
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS
-
 
18
 * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
-
 
19
 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-
 
20
 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR
-
 
21
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-
 
22
 * EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-
 
23
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
-
 
24
 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-
 
25
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-
 
26
 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-
 
27
 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
 
28
 *
-
 
29
 * $Id$
-
 
30
 */
1
/*
31
/*
2
    		 Crown Copyright (c) 1997
32
    		 Crown Copyright (c) 1997
3
    
33
 
4
    This TenDRA(r) Computer Program is subject to Copyright
34
    This TenDRA(r) Computer Program is subject to Copyright
5
    owned by the United Kingdom Secretary of State for Defence
35
    owned by the United Kingdom Secretary of State for Defence
6
    acting through the Defence Evaluation and Research Agency
36
    acting through the Defence Evaluation and Research Agency
7
    (DERA).  It is made available to Recipients with a
37
    (DERA).  It is made available to Recipients with a
8
    royalty-free licence for its use, reproduction, transfer
38
    royalty-free licence for its use, reproduction, transfer
9
    to other parties and amendment for any purpose not excluding
39
    to other parties and amendment for any purpose not excluding
10
    product development provided that any such use et cetera
40
    product development provided that any such use et cetera
11
    shall be deemed to be acceptance of the following conditions:-
41
    shall be deemed to be acceptance of the following conditions:-
12
    
42
 
13
        (1) Its Recipients shall ensure that this Notice is
43
        (1) Its Recipients shall ensure that this Notice is
14
        reproduced upon any copies or amended versions of it;
44
        reproduced upon any copies or amended versions of it;
15
    
45
 
16
        (2) Any amended version of it shall be clearly marked to
46
        (2) Any amended version of it shall be clearly marked to
17
        show both the nature of and the organisation responsible
47
        show both the nature of and the organisation responsible
18
        for the relevant amendment or amendments;
48
        for the relevant amendment or amendments;
19
    
49
 
20
        (3) Its onward transfer from a recipient to another
50
        (3) Its onward transfer from a recipient to another
21
        party shall be deemed to be that party's acceptance of
51
        party shall be deemed to be that party's acceptance of
22
        these conditions;
52
        these conditions;
23
    
53
 
24
        (4) DERA gives no warranty or assurance as to its
54
        (4) DERA gives no warranty or assurance as to its
25
        quality or suitability for any purpose and DERA accepts
55
        quality or suitability for any purpose and DERA accepts
26
        no liability whatsoever in relation to any use to which
56
        no liability whatsoever in relation to any use to which
27
        it may be put.
57
        it may be put.
28
*/
58
*/
Line 52... Line 82...
52
#ifndef readglob_key
82
#ifndef readglob_key
53
#define readglob_key 1
83
#define readglob_key 1
54
 
84
 
55
 
85
 
56
 
86
 
57
extern dec * capsule_tagtab;
87
extern dec *capsule_tagtab;
58
  /* the table of tags which are available at the capsule level */
88
/* the table of tags which are available at the capsule level */
59
 
89
 
60
extern tok_define * capsule_toktab;
90
extern tok_define *capsule_toktab;
61
  /* the table of tokens which are available at the capsule level */
91
/* the table of tokens which are available at the capsule level */
62
 
92
 
63
extern aldef * capsule_altab;
93
extern aldef *capsule_altab;
64
  /* the table of alignment tags which are available at the
94
/* the table of alignment tags which are available at the capsule level */
65
     capsule level */
-
 
66
 
95
 
67
extern diag_tagdef * capsule_diag_tagtab;	/* OLD DIAGS */
96
extern diag_tagdef *capsule_diag_tagtab;	/* OLD DIAGS */
68
  /* the table of diagnostic tags which are available at the
97
/* the table of diagnostic tags which are available at the capsule level */
69
     capsule level */
-
 
70
 
98
 
71
extern dgtag_struct * capsule_dgtab;		/* NEW DIAGS */
99
extern dgtag_struct *capsule_dgtab;		/* NEW DIAGS */
72
  /* the table of diagnostic name tags which are available at the
100
/* the table of diagnostic name tags which are available at the capsule level */
73
     capsule level */
-
 
74
 
101
 
75
extern int capsule_no_of_tokens;
102
extern int capsule_no_of_tokens;
76
  /* the number of tokens at the capsule level */
103
/* the number of tokens at the capsule level */
77
 
104
 
78
extern int capsule_no_of_tags;
105
extern int capsule_no_of_tags;
79
  /* the number of tags at the capsule level */
106
/* the number of tags at the capsule level */
80
 
107
 
81
extern int capsule_no_of_als;
108
extern int capsule_no_of_als;
82
  /* the number of alignment tags at the capsule level */
109
/* the number of alignment tags at the capsule level */
83
 
110
 
84
extern int capsule_no_of_diagtags;	/* OLD DIAGS */
111
extern int capsule_no_of_diagtags;	/* OLD DIAGS */
85
  /* the number of diagnostic tags at the capsule level */
112
/* the number of diagnostic tags at the capsule level */
86
 
113
 
87
extern int capsule_no_of_dgtags;	/* NEW DIAGS */
114
extern int capsule_no_of_dgtags;	/* NEW DIAGS */
88
  /* the number of diagnostic tags at the capsule level */
115
/* the number of diagnostic tags at the capsule level */
89
 
116
 
90
 
117
 
91
extern dec * unit_tagtab;
118
extern dec * unit_tagtab;
92
  /* the table of tags for the current unit */
119
/* the table of tags for the current unit */
93
 
120
 
94
extern tok_define * unit_toktab;
121
extern tok_define *unit_toktab;
95
  /* the table of tokens for the current unit */
122
/* the table of tokens for the current unit */
96
 
123
 
97
extern aldef * unit_altab;
124
extern aldef *unit_altab;
98
  /* the table of alignment tags for the current unit */
125
/* the table of alignment tags for the current unit */
99
 
126
 
100
extern int unit_no_of_tokens;
127
extern int unit_no_of_tokens;
101
  /* the number of tokens in the current unit */
128
/* the number of tokens in the current unit */
102
 
129
 
103
extern int unit_no_of_tags;
130
extern int unit_no_of_tags;
104
  /* the number of tags in the current unit */
131
/* the number of tags in the current unit */
105
 
132
 
106
extern int unit_no_of_als;
133
extern int unit_no_of_als;
107
  /* the number of alignment tags in the current unit */
134
/* the number of alignment tags in the current unit */
108
 
135
 
109
extern dec ** unit_ind_tags;
136
extern dec **unit_ind_tags;
110
  /* table of pointers to the tags used in the current unit */
137
/* table of pointers to the tags used in the current unit */
111
 
138
 
112
extern tok_define ** unit_ind_tokens;
139
extern tok_define **unit_ind_tokens;
113
  /* table of pointers to the tokens used in the current unit */
140
/* table of pointers to the tokens used in the current unit */
114
 
141
 
115
extern aldef ** unit_ind_als;
142
extern aldef **unit_ind_als;
116
  /* table of pointers to the alignment tags used in the current unit */
143
/* table of pointers to the alignment tags used in the current unit */
117
 
144
 
118
 
145
 
119
extern exp * unit_labtab;
146
extern exp *unit_labtab;
120
  /* table of labels used in the current unit */
147
/* table of labels used in the current unit */
121
 
148
 
122
extern int unit_no_of_labels;
149
extern int unit_no_of_labels;
123
  /* number of labels used in the current unit */
150
/* number of labels used in the current unit */
124
 
151
 
125
extern int crt_tagdef_unit_no;
152
extern int crt_tagdef_unit_no;
126
  /* number of current tagdef unit. -1 before tagdef units */
153
/* number of current tagdef unit. -1 before tagdef units */
127
 
154
 
128
extern int unit_index;
155
extern int unit_index;
129
 
156
 
130
extern char * make_local_name PROTO_S ((void));
157
extern char *make_local_name(void);
131
 
158
 
132
extern int rep_make_proc;
159
extern int rep_make_proc;
133
 
160
 
134
extern int replace_arith_type;
161
extern int replace_arith_type;
135
 
162
 
136
extern int good_trans;
163
extern int good_trans;
137
 
164
 
138
extern char *crt_filename;
165
extern char *crt_filename;
139
 
166
 
140
extern capsule_frees * capsule_freelist;
167
extern capsule_frees *capsule_freelist;
141
 
168
 
142
extern int newcode;
169
extern int newcode;
143
 
170
 
144
extern char * add_prefix PROTO_S ((char *));
171
extern char *add_prefix(char *);
145
 
172
 
146
extern char * external_to_string PROTO_S ((external));
173
extern char *external_to_string(external);
147
 
174
 
148
#ifdef NEWDIAGS
175
#ifdef NEWDIAGS
149
extern int within_diags;
176
extern int within_diags;
150
#endif
177
#endif
151
 
178