Subversion Repositories tendra.SVN

Rev

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

Rev 5 Rev 6
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 62... Line 92...
62
#define diag_fns_key 1
92
#define diag_fns_key 1
63
 
93
 
64
 
94
 
65
 
95
 
66
 
96
 
67
extern void out_diagnose_prelude PROTO_S ((void));
97
extern void out_diagnose_prelude(void);
68
extern void out_diagnose_postlude PROTO_S ((void));
98
extern void out_diagnose_postlude(void);
69
 
99
 
70
extern void start_make_diagdef_unit PROTO_S ((int toks, int tags, int als, int ndiags));
100
extern void start_make_diagdef_unit(int toks, int tags, int als, int ndiags);
71
extern void f_make_diagdef_unit PROTO_S ((void));
101
extern void f_make_diagdef_unit(void);
72
 
102
 
73
 
103
 
74
extern void init_capsule_diagtags PROTO_S ((void));
104
extern void init_capsule_diagtags(void);
75
extern void start_make_diagtype_unit PROTO_S ((int toks, int tags, int als, int ndiagtype));
105
extern void start_make_diagtype_unit(int toks, int tags, int als,
-
 
106
				     int ndiagtype);
76
extern linkextern f_make_diagtagextern PROTO_S ((tdfint i, external e));
107
extern linkextern f_make_diagtagextern(tdfint i, external e);
77
extern void init_unit_diagtags PROTO_S ((int n));
108
extern void init_unit_diagtags(int n);
78
 
109
 
79
 
110
 
80
#ifdef NEWDIAGS
111
#ifdef NEWDIAGS
81
 
112
 
82
extern exp read_exp_to_source PROTO_S ((exp body));
113
extern exp read_exp_to_source(exp body);
83
extern exp read_diag_id_scope PROTO_S ((exp body));
114
extern exp read_diag_id_scope(exp body);
84
extern exp read_diag_type_scope PROTO_S ((exp body));
115
extern exp read_diag_type_scope(exp body);
85
extern exp read_diag_tag_scope PROTO_S ((exp body));
116
extern exp read_diag_tag_scope(exp body);
86
 
117
 
87
#else
118
#else
88
 
119
 
89
extern diag_info * read_exp_to_source PROTO_S ((void));
120
extern diag_info *read_exp_to_source(void);
90
extern diag_info * read_diag_id_scope PROTO_S ((void));
121
extern diag_info *read_diag_id_scope(void);
91
extern diag_info * read_diag_type_scope PROTO_S ((void));
122
extern diag_info *read_diag_type_scope(void);
92
extern diag_info * read_diag_tag_scope PROTO_S ((void));
123
extern diag_info *read_diag_tag_scope(void);
93
 
124
 
94
#endif
125
#endif
95
 
126
 
96
 
127
 
97
#ifndef NEWDIAGS
128
#ifndef NEWDIAGS
98
 
129
 
99
extern void output_diag PROTO_S ((diag_info * d, int proc_no, exp e));
130
extern void output_diag(diag_info *d, int proc_no, exp e);
100
extern void output_end_scope PROTO_S ((diag_info * d, exp e));
131
extern void output_end_scope(diag_info *d, exp e);
101
 
132
 
102
extern void diag_proc_begin PROTO_S ((diag_global * d, int global, int cname, char * pname));
133
extern void diag_proc_begin(diag_global *d, int global, int cname, char *pname);
103
extern void diag_proc_end PROTO_S ((diag_global * d));
134
extern void diag_proc_end(diag_global *d);
104
 
135
 
105
extern void diag_val_begin PROTO_S ((diag_global * d, int global, int cname, char * pname));
136
extern void diag_val_begin(diag_global *d, int global, int cname, char *pname);
106
extern void diag_val_end PROTO_S ((diag_global * d));
137
extern void diag_val_end(diag_global *d);
107
 
138
 
108
#endif
139
#endif
109
 
140
 
110
 
141
 
111
extern int unit_no_of_diagtags;
142
extern int unit_no_of_diagtags;
112
extern diag_tagdef ** unit_ind_diagtags;
143
extern diag_tagdef **unit_ind_diagtags;
113
 
144
 
114
extern void f_make_diagtaglink PROTO_S ((tdfint i, tdfint ext));
145
extern void f_make_diagtaglink(tdfint i, tdfint ext);
115
 
146
 
116
#ifdef NEWDIAGS
147
#ifdef NEWDIAGS
117
extern exp diag_locate PROTO_S ((exp e));
148
extern exp diag_locate(exp e);
118
#endif
149
#endif
119
 
150
 
120
#endif
151
#endif