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 57... |
Line 87... |
57 |
***********************************************************************/
|
87 |
***********************************************************************/
|
58 |
|
88 |
|
59 |
#ifndef dg_aux_key
|
89 |
#ifndef dg_aux_key
|
60 |
#define dg_aux_key
|
90 |
#define dg_aux_key
|
61 |
|
91 |
|
62 |
extern dg_name new_dg_name PROTO_S ((dg_name_key k));
|
92 |
extern dg_name new_dg_name(dg_name_key k);
|
63 |
extern dg_type new_dg_type PROTO_S ((dg_type_key k));
|
93 |
extern dg_type new_dg_type(dg_type_key k);
|
64 |
extern dg_info new_dg_info PROTO_S ((dg_info_key k));
|
94 |
extern dg_info new_dg_info(dg_info_key k);
|
65 |
extern void extend_dg_name PROTO_S ((dg_name nm));
|
95 |
extern void extend_dg_name(dg_name nm);
|
66 |
extern void extend_dg_type PROTO_S ((dg_type nm));
|
96 |
extern void extend_dg_type(dg_type nm);
|
67 |
extern void init_dgtag PROTO_S ((dg_tag tg));
|
97 |
extern void init_dgtag(dg_tag tg);
|
68 |
extern dg_tag gen_tg_tag PROTO_S ((void));
|
98 |
extern dg_tag gen_tg_tag(void);
|
69 |
extern dg_type get_qual_dg_type PROTO_S ((dg_qual_type_key qual, dg_type typ));
|
99 |
extern dg_type get_qual_dg_type(dg_qual_type_key qual, dg_type typ);
|
70 |
extern dg_type get_dg_bitfield_type PROTO_S ((dg_type typ, shape sha, bitfield_variety bv));
|
100 |
extern dg_type get_dg_bitfield_type(dg_type typ, shape sha,
|
- |
|
101 |
bitfield_variety bv);
|
71 |
extern char * idname_chars PROTO_S ((dg_idname nam));
|
102 |
extern char *idname_chars(dg_idname nam);
|
72 |
extern dg_filename get_filename PROTO_S ((long dat, char * host, char * path, char * name));
|
103 |
extern dg_filename get_filename(long dat, char *host, char *path, char *name);
|
73 |
extern short_sourcepos shorten_sourcepos PROTO_S ((dg_sourcepos pos));
|
104 |
extern short_sourcepos shorten_sourcepos(dg_sourcepos pos);
|
74 |
extern short_sourcepos end_sourcepos PROTO_S ((dg_sourcepos pos));
|
105 |
extern short_sourcepos end_sourcepos(dg_sourcepos pos);
|
75 |
extern dg_type find_proc_type PROTO_S ((dg_type t));
|
106 |
extern dg_type find_proc_type(dg_type t);
|
76 |
|
107 |
|
77 |
extern exp diaginfo_exp PROTO_S ((exp e));
|
108 |
extern exp diaginfo_exp(exp e);
|
78 |
|
109 |
|
79 |
#ifdef NEWDIAGS
|
110 |
#ifdef NEWDIAGS
|
80 |
|
111 |
|
81 |
extern void diag_kill_id PROTO_S ((exp id));
|
112 |
extern void diag_kill_id(exp id);
|
82 |
extern void set_obj_ref PROTO_S ((dg_name nm));
|
113 |
extern void set_obj_ref(dg_name nm);
|
83 |
extern exp copy_res_diag PROTO_S ((exp e, dg_info d, exp var, exp lab));
|
114 |
extern exp copy_res_diag(exp e, dg_info d, exp var, exp lab);
|
84 |
extern exp diag_hold_check PROTO_S ((exp e));
|
115 |
extern exp diag_hold_check(exp e);
|
85 |
extern void start_diag_inlining PROTO_S ((exp e, dg_name dn));
|
116 |
extern void start_diag_inlining(exp e, dg_name dn);
|
86 |
extern void end_diag_inlining PROTO_S ((exp e, dg_name dn));
|
117 |
extern void end_diag_inlining(exp e, dg_name dn);
|
87 |
extern dg_info combine_diaginfo PROTO_S ((dg_info d1, dg_info d2));
|
118 |
extern dg_info combine_diaginfo(dg_info d1, dg_info d2);
|
88 |
extern void diag_inline_result PROTO_S ((exp e));
|
119 |
extern void diag_inline_result(exp e);
|
89 |
extern void dg_whole_comp PROTO_S ((exp whole, exp comp));
|
120 |
extern void dg_whole_comp(exp whole, exp comp);
|
90 |
extern void dg_complete_inline PROTO_S ((exp whole, exp comp));
|
121 |
extern void dg_complete_inline(exp whole, exp comp);
|
91 |
extern void dg_dead_code PROTO_S ((exp dead, exp prev));
|
122 |
extern void dg_dead_code(exp dead, exp prev);
|
92 |
extern void dg_rdnd_code PROTO_S ((exp rdnd, exp next));
|
123 |
extern void dg_rdnd_code(exp rdnd, exp next);
|
93 |
extern void dg_detach_const PROTO_S ((exp part, exp whole));
|
124 |
extern void dg_detach_const(exp part, exp whole);
|
94 |
extern void dg_rem_ass PROTO_S ((exp ass));
|
125 |
extern void dg_rem_ass(exp ass);
|
95 |
extern void dg_restruct_code PROTO_S ((exp outer, exp inner, int posn));
|
126 |
extern void dg_restruct_code(exp outer, exp inner, int posn);
|
96 |
extern void dg_extracted PROTO_S ((exp nm, exp old));
|
127 |
extern void dg_extracted(exp nm, exp old);
|
97 |
extern void strip_dg_context PROTO_S ((exp e));
|
128 |
extern void strip_dg_context(exp e);
|
98 |
extern void make_optim_dg PROTO_S ((int reason, exp e));
|
129 |
extern void make_optim_dg(int reason, exp e);
|
99 |
extern exp copy_dg_separate PROTO_S ((exp e));
|
130 |
extern exp copy_dg_separate(exp e);
|
100 |
|
131 |
|
101 |
#endif
|
132 |
#endif
|
102 |
|
133 |
|
103 |
extern exp relative_exp PROTO_S ((shape s, token t));
|
134 |
extern exp relative_exp(shape s, token t);
|
104 |
|
135 |
|
105 |
#endif
|
136 |
#endif
|