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
/**********************************************************************
32
$Author: release $
33
$Date: 1998/01/17 15:55:45 $
34
$Revision: 1.1.1.1 $
35
$Log: readglob.c,v $
36
 * Revision 1.1.1.1  1998/01/17  15:55:45  release
37
 * First version to be checked into rolling release.
38
 *
39
 * Revision 1.3  1997/08/23  13:30:56  pwe
40
 * no invert order, and initial ANDF-DE
41
 *
42
 * Revision 1.2  1997/02/18  12:56:06  currie
43
 * NEW DIAG STRUCTURE
44
 *
45
 * Revision 1.1  1995/04/06  10:43:34  currie
46
 * Initial revision
47
 *
48
***********************************************************************/
49
#include "config.h"
50
#include "common_types.h"
51
 
52
 
53
 
54
#include "readglob.h"
55
 
56
/* VARIABLES */
57
/* All variables except good_trans are initialised. This assumes
58
that translation stops after the first error */
59
 
60
dec * capsule_tagtab;
61
  /* the table of tags which are available at the capsule level */
62
 
63
tok_define * capsule_toktab;
64
  /* the table of tokens which are available at the capsule level */
65
 
66
aldef * capsule_altab;
67
  /* the table of alignment tags which are available at the
68
     capsule level */
69
 
70
diag_tagdef * capsule_diag_tagtab;	/* OLD DIAGS */
71
  /* the table of diagnostic tags which are available at the
72
     capsule level */
73
 
74
dgtag_struct * capsule_dgtab;		/* NEW DIAGS */
75
  /* the table of diagnostic tags which are available at the
76
     capsule level */
77
 
78
int capsule_no_of_tokens;
79
  /* the number of tokens at the capsule level */
80
 
81
int capsule_no_of_tags;
82
  /* the number of tags at the capsule level */
83
 
84
int capsule_no_of_als;
85
  /* the number of alignment tags at the capsule level */
86
 
87
int capsule_no_of_diagtags;	/* OLD DIAGS */
88
  /* the number of diagnostic tags at the capsule level */
89
 
90
int capsule_no_of_dgtags;	/* NEW DIAGS */
91
  /* the number of diagnostic tags at the capsule level */
92
 
93
 
94
dec * unit_tagtab;
95
  /* the table of tags for the current unit */
96
 
97
tok_define * unit_toktab;
98
  /* the table of tokens for the current unit */
99
 
100
aldef * unit_altab;
101
  /* the table of alignment tags for the current unit */
102
 
103
int unit_no_of_tokens;
104
  /* the number of tokens in the current unit */
105
 
106
int unit_no_of_tags;
107
  /* the number of tags in the current unit */
108
 
109
int unit_no_of_als;
110
  /* the number of alignment tags in the current unit */
111
 
112
dec ** unit_ind_tags;
113
  /* table of pointers to the tags used in the current unit */
114
 
115
tok_define ** unit_ind_tokens;
116
  /* table of pointers to the tokens used in the current unit */
117
 
118
aldef ** unit_ind_als;
119
  /* table of pointers to the alignment tags used in the current unit */
120
 
121
 
122
exp * unit_labtab;
123
  /* table of labels used in the current unit */
124
 
125
int unit_no_of_labels;
126
  /* number of labels used in the current unit */
127
 
128
int crt_tagdef_unit_no;
129
  /* number of current tagdef unit. -1 before tagdef units */
130
 
131
int unit_index;
132
  /* number of current unit */
133
 
134
int rep_make_proc = 1;  /* identify any make_procs not in make_id_tagdef*/
135
 
136
int replace_arith_type = 0;	/* do not use C definitions of promote
137
				   etc. */
138
 
139
int good_trans = 0;		/* 0 if translation is good, 1 for error
140
				*/
141
 
142
char *crt_filename;
143
 
144
capsule_frees * capsule_freelist = (capsule_frees*)0;
145
 
146
int newcode = 1;
147
 
148
#ifdef NEWDIAGS
149
int within_diags = 0;	/* mark name_tag if it's not used for producing code */
150
#endif