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-2006 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 37... Line 67...
37
 
67
 
38
    The routines in this module are used in the construction of the
68
    The routines in this module are used in the construction of the
39
    basic language statements.
69
    basic language statements.
40
*/
70
*/
41
 
71
 
42
extern EXP begin_case_stmt PROTO_S ( ( EXP, int ) ) ;
72
extern EXP begin_case_stmt(EXP, int);
43
extern EXP begin_compound_stmt PROTO_S ( ( int ) ) ;
73
extern EXP begin_compound_stmt(int);
44
extern EXP begin_default_stmt PROTO_S ( ( int ) ) ;
74
extern EXP begin_default_stmt(int);
45
extern EXP begin_do_stmt PROTO_S ( ( void ) ) ;
75
extern EXP begin_do_stmt(void);
46
extern EXP begin_for_stmt PROTO_S ( ( void ) ) ;
76
extern EXP begin_for_stmt(void);
47
extern EXP begin_hash_if_stmt PROTO_S ( ( EXP, EXP ) ) ;
77
extern EXP begin_hash_if_stmt(EXP, EXP);
48
extern EXP begin_if_stmt PROTO_S ( ( EXP ) ) ;
78
extern EXP begin_if_stmt(EXP);
49
extern EXP begin_switch_stmt PROTO_S ( ( EXP ) ) ;
79
extern EXP begin_switch_stmt(EXP);
50
extern EXP begin_while_stmt PROTO_S ( ( EXP ) ) ;
80
extern EXP begin_while_stmt(EXP);
51
 
81
 
52
extern void mark_compound_stmt PROTO_S ( ( EXP ) ) ;
82
extern void mark_compound_stmt(EXP);
53
extern EXP add_compound_stmt PROTO_S ( ( EXP, EXP ) ) ;
83
extern EXP add_compound_stmt(EXP, EXP);
54
extern EXP cont_hash_if_stmt PROTO_S ( ( EXP, EXP, EXP ) ) ;
84
extern EXP cont_hash_if_stmt(EXP, EXP, EXP);
55
extern EXP cont_if_stmt PROTO_S ( ( EXP, EXP ) ) ;
85
extern EXP cont_if_stmt(EXP, EXP);
56
extern EXP init_for_stmt PROTO_S ( ( EXP, EXP * ) ) ;
86
extern EXP init_for_stmt(EXP, EXP *);
57
extern EXP cond_for_stmt PROTO_S ( ( EXP, EXP, EXP ) ) ;
87
extern EXP cond_for_stmt(EXP, EXP, EXP);
58
 
88
 
59
extern EXP end_case_stmt PROTO_S ( ( EXP, EXP ) ) ;
89
extern EXP end_case_stmt(EXP, EXP);
60
extern EXP end_compound_stmt PROTO_S ( ( EXP ) ) ;
90
extern EXP end_compound_stmt(EXP);
61
extern EXP end_default_stmt PROTO_S ( ( EXP, EXP ) ) ;
91
extern EXP end_default_stmt(EXP, EXP);
62
extern EXP end_do_stmt PROTO_S ( ( EXP, EXP, EXP ) ) ;
92
extern EXP end_do_stmt(EXP, EXP, EXP);
63
extern EXP end_for_stmt PROTO_S ( ( EXP, EXP ) ) ;
93
extern EXP end_for_stmt(EXP, EXP);
64
extern EXP end_hash_if_stmt PROTO_S ( ( EXP, EXP ) ) ;
94
extern EXP end_hash_if_stmt(EXP, EXP);
65
extern EXP end_if_stmt PROTO_S ( ( EXP, EXP ) ) ;
95
extern EXP end_if_stmt(EXP, EXP);
66
extern EXP end_switch_stmt PROTO_S ( ( EXP, EXP, int ) ) ;
96
extern EXP end_switch_stmt(EXP, EXP, int);
67
extern EXP end_while_stmt PROTO_S ( ( EXP, EXP ) ) ;
97
extern EXP end_while_stmt(EXP, EXP);
68
 
98
 
69
extern EXP make_break_stmt PROTO_S ( ( void ) ) ;
99
extern EXP make_break_stmt(void);
70
extern EXP make_continue_stmt PROTO_S ( ( void ) ) ;
100
extern EXP make_continue_stmt(void);
71
extern EXP make_decl_stmt PROTO_S ( ( MEMBER, MEMBER, int * ) ) ;
101
extern EXP make_decl_stmt(MEMBER, MEMBER, int *);
72
extern EXP make_temp_decl PROTO_S ( ( MEMBER, MEMBER, EXP ) ) ;
102
extern EXP make_temp_decl(MEMBER, MEMBER, EXP);
73
extern EXP make_exp_stmt PROTO_S ( ( EXP ) ) ;
103
extern EXP make_exp_stmt(EXP);
74
extern EXP make_return_stmt PROTO_S ( ( EXP, int ) ) ;
104
extern EXP make_return_stmt(EXP, int);
75
extern EXP make_discard_exp PROTO_S ( ( EXP ) ) ;
105
extern EXP make_discard_exp(EXP);
76
extern EXP make_reach_stmt PROTO_S ( ( EXP, int ) ) ;
106
extern EXP make_reach_stmt(EXP, int);
77
extern EXP fall_return_stmt PROTO_S ( ( void ) ) ;
107
extern EXP fall_return_stmt(void);
78
extern EXP find_return_exp PROTO_S ( ( EXP, IDENTIFIER *, int ) ) ;
108
extern EXP find_return_exp(EXP, IDENTIFIER *, int);
79
extern EXP check_return_exp PROTO_S ( ( EXP, int ) ) ;
109
extern EXP check_return_exp(EXP, int);
80
 
110
 
81
extern EXP bind_temporary PROTO_S ( ( EXP ) ) ;
111
extern EXP bind_temporary(EXP);
82
extern void begin_cond PROTO_S ( ( void ) ) ;
112
extern void begin_cond(void);
83
extern EXP end_cond PROTO_S ( ( void ) ) ;
113
extern EXP end_cond(void);
84
extern EXP inject_cond PROTO_S ( ( EXP, EXP ) ) ;
114
extern EXP inject_cond(EXP, EXP);
85
extern TYPE make_cond_type PROTO_S ( ( TYPE ) ) ;
115
extern TYPE make_cond_type(TYPE);
86
extern EXP check_cond PROTO_S ( ( EXP, EXP *, int ) ) ;
116
extern EXP check_cond(EXP, EXP *, int);
87
extern EXP check_control PROTO_S ( ( EXP, EXP *, EXP * ) ) ;
117
extern EXP check_control(EXP, EXP *, EXP *);
88
extern void check_empty_stmt PROTO_S ( ( int ) ) ;
118
extern void check_empty_stmt(int);
89
extern EXP make_if_cond PROTO_S ( ( EXP, EXP ) ) ;
119
extern EXP make_if_cond(EXP, EXP);
90
extern EXP make_else_cond PROTO_S ( ( EXP ) ) ;
120
extern EXP make_else_cond(EXP);
91
extern IDENTIFIER find_case PROTO_S ( ( LIST ( NAT ), LIST ( IDENTIFIER ), NAT ) ) ;
121
extern IDENTIFIER find_case(LIST(NAT), LIST(IDENTIFIER), NAT);
92
extern EXP make_asm PROTO_S ( ( EXP, LIST ( EXP ) ) ) ;
122
extern EXP make_asm(EXP, LIST(EXP));
93
 
123
 
94
extern void set_parent_stmt PROTO_S ( ( EXP, EXP ) ) ;
124
extern void set_parent_stmt(EXP, EXP);
95
extern EXP get_parent_stmt PROTO_S ( ( EXP ) ) ;
125
extern EXP get_parent_stmt(EXP);
96
extern STACK ( EXP ) crt_loop_stack ;
126
extern STACK(EXP) crt_loop_stack;
97
extern NAMESPACE block_namespace ;
127
extern NAMESPACE block_namespace;
98
extern unsigned crt_condition ;
128
extern unsigned crt_condition;
99
extern int record_location ;
129
extern int record_location;
100
extern int unreached_code ;
130
extern int unreached_code;
101
extern int unreached_last ;
131
extern int unreached_last;
102
extern int unreached_prev ;
132
extern int unreached_prev;
103
extern int unreached_fall ;
133
extern int unreached_fall;
104
extern int suppress_fall ;
134
extern int suppress_fall;
105
extern EXP crt_hash_cond ;
135
extern EXP crt_hash_cond;
106
extern LOCATION stmt_loc ;
136
extern LOCATION stmt_loc;
107
 
137
 
108
 
138
 
109
#endif
139
#endif