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
Line 18... Line 48...
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 47... Line 77...
47
 *
77
 *
48
 * Revision 1.1  1995/04/06  10:44:05  currie
78
 * Revision 1.1  1995/04/06  10:44:05  currie
49
 * Initial revision
79
 * Initial revision
50
 *
80
 *
51
***********************************************************************/
81
***********************************************************************/
52
 
-
 
53
 
-
 
54
 
82
 
55
#include "config.h"
83
#include "config.h"
56
#include "common_types.h"
84
#include "common_types.h"
57
 
85
 
58
#include "installglob.h"
86
#include "installglob.h"
Line 60... Line 88...
60
/* All variables initialised */
88
/* All variables initialised */
61
 
89
 
62
exp crt_repeat;
90
exp crt_repeat;
63
exp repeat_list;
91
exp repeat_list;
64
exp global_case;
92
exp global_case;
65
dec * top_def;
93
dec *top_def;
66
dec ** deflist_end = &top_def;
94
dec **deflist_end = &top_def;
67
aldef * top_aldef;	/* init in start_make_capsule */
95
aldef *top_aldef;	/* init in start_make_capsule */
68
 
96
 
69
int has_alloca;
97
int has_alloca;
70
int has_lv;
98
int has_lv;
71
int proc_is_recursive;
99
int proc_is_recursive;
72
int uses_crt_env;
100
int uses_crt_env;
Line 84... Line 112...
84
int indirect_jumps = 1;
112
int indirect_jumps = 1;
85
 
113
 
86
exp proc_struct_result;
114
exp proc_struct_result;
87
 
115
 
88
version global_version;
116
version global_version;
89
 
117
 
90
char * dynamic_init_proc = (char*)0;
118
char *dynamic_init_proc = (char *)0;
91
 
119
 
92
proc_props * old_proc_props = (proc_props *)0;
120
proc_props *old_proc_props = (proc_props *)0;	/* initial value for pushing */
93
		/* initial value for pushing */
-
 
94
int in_proc_def = 0;
-
 
95
		/* initial value for pushing */
121
int in_proc_def = 0;				/* initial value for pushing */
96
 
122
 
97
int flpt_const_overflow_fail = 1;
123
int flpt_const_overflow_fail = 1;		/* flag can be cleared */
98
		/* flag can be cleared */
-
 
99
 
124
 
100
aldef const_aldefs[6];
125
aldef const_aldefs[6];
101
int doing_aldefs; /* cleared in start_make_capsule */
126
int doing_aldefs;	/* cleared in start_make_capsule */
102
 
127
 
103
alignment const_al1 = &const_aldefs[0];
128
alignment const_al1 = &const_aldefs[0];
104
alignment const_al8 = &const_aldefs[1];
129
alignment const_al8 = &const_aldefs[1];
105
alignment const_al16 = &const_aldefs[2];
130
alignment const_al16 = &const_aldefs[2];
106
alignment const_al32 = &const_aldefs[3];
131
alignment const_al32 = &const_aldefs[3];
Line 108... Line 133...
108
alignment const_al512 = &const_aldefs[5];
133
alignment const_al512 = &const_aldefs[5];
109
 
134
 
110
int ptr_null = 0;
135
int ptr_null = 0;
111
int proc_null = 0;
136
int proc_null = 0;
112
int lv_null = 0;
137
int lv_null = 0;
113
 
138
 
114
int no_bss = 0;
139
int no_bss = 0;
115
 
-
 
116
 
-
 
117
 
-