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-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
*/
29
 
59
 
30
 
60
 
31
#ifndef SUFFIX_INCLUDED
61
#ifndef SUFFIX_INCLUDED
32
#define SUFFIX_INCLUDED
62
#define SUFFIX_INCLUDED
33
 
63
 
34
 
64
 
35
/*
65
/*
36
    SINGLE CHARACTER KEYS FOR FILE TYPES
66
 * SINGLE CHARACTER KEYS FOR FILE TYPES - Table 2
37
 
67
 *
38
    Each file type has an associated identifying letter.  In most cases
68
 * Each file type has an associated identifying letter. In most cases this
39
    this corresponds to the file suffix.  This is Table 2, which needs
69
 * corresponds to the file suffix. This table needs to be kept in step with
40
    to be kept in step with Table 1.
70
 * Table 1.
41
*/
71
 */
42
 
72
 
43
#define C_SOURCE_KEY			'c'
73
#define C_SOURCE_KEY			'c'
44
#define PREPROC_C_KEY			'i'
74
#define PREPROC_C_KEY			'i'
45
#define CPP_SOURCE_KEY			'C'
75
#define CPP_SOURCE_KEY			'C'
46
#define PREPROC_CPP_KEY			'I'
76
#define PREPROC_CPP_KEY			'I'
Line 57... Line 87...
57
#define C_SPEC_KEY			'k'
87
#define C_SPEC_KEY			'k'
58
#define CPP_SPEC_KEY			'K'
88
#define CPP_SPEC_KEY			'K'
59
#define STARTUP_FILE_KEY		'h'
89
#define STARTUP_FILE_KEY		'h'
60
#define ALL_KEY				'a'
90
#define ALL_KEY				'a'
61
#define EXTRA_KEY			'+'
91
#define EXTRA_KEY			'+'
62
 
92
 
63
 
93
 
64
/*
94
/*
65
    OTHER FILE TYPE INFORMATION
95
 * OTHER FILE TYPE INFORMATION - Table 3
66
 
96
 *
67
    Most of the file suffixes can be deduced from the table above.  This
97
 * Most of the file suffixes can be deduced from the table above. This table
68
    table gives a few other suffixes plus the default names for various
98
 * gives a few other suffixes plus the default names for various output files.
69
    output files.  This is Table 3.
-
 
70
*/
99
 */
71
 
100
 
72
#define CPP_1_SUFFIX			"cc"
101
#define CPP_1_SUFFIX			"cc"
73
#define CPP_2_SUFFIX			"cpp"
102
#define CPP_2_SUFFIX			"cpp"
74
#define PREPROC_CPP_1_SUFFIX		"ii"
103
#define PREPROC_CPP_1_SUFFIX		"ii"
75
#define PREPROC_CPP_2_SUFFIX		"ipp"
104
#define PREPROC_CPP_2_SUFFIX		"ipp"
76
#define AS_2_SUFFIX			"asm"
105
#define AS_2_SUFFIX			"asm"
Line 89... Line 118...
89
#else
118
#else
90
#define EXECUTABLE_NAME			"a.out"
119
#define EXECUTABLE_NAME			"a.out"
91
#define CPP_SPEC_COMPLEX_NAME		"a.K"
120
#define CPP_SPEC_COMPLEX_NAME		"a.K"
92
#endif
121
#endif
93
 
122
 
94
#if OPEN_NT
-
 
95
#define STARTUP_NAME			"ol_startup.h"
-
 
96
#define ENDUP_NAME			"ol_endup.h"
-
 
97
#define TOKDEF_NAME			"ol_tokdef.p"
-
 
98
#define MADE_UP_NAME			"_ol%04d"
-
 
99
#define TEMP_NAME			"_ol"
-
 
100
#else
-
 
101
#define STARTUP_NAME			"tcc_startup.h"
123
#define STARTUP_NAME			"tcc_startup.h"
102
#define ENDUP_NAME			"tcc_endup.h"
124
#define ENDUP_NAME			"tcc_endup.h"
103
#define TOKDEF_NAME			"tcc_tokdef.p"
125
#define TOKDEF_NAME			"tcc_tokdef.p"
104
#define MADE_UP_NAME			"_tcc%04d"
126
#define MADE_UP_NAME			"_tcc%04d"
105
#define TEMP_NAME			"_tcc"
127
#define TEMP_NAME			"_tcc"
106
#endif
-
 
107
 
128
 
108
 
129
 
109
/*
130
/*
110
    SINGLE CHARACTER KEYS FOR EXECUTABLES
131
 * SINGLE CHARACTER KEYS FOR EXECUTABLES - Table 4
111
 
132
 *
112
    Each executable has an associated identifying letter.  This is Table 4.
133
 * Each executable has an associated identifying letter.
113
*/
134
 */
114
 
135
 
115
#define PRODUCE_ID			'c'
136
#define PRODUCE_ID			'c'
116
#define PREPROC_ID			'p'
137
#define PREPROC_ID			'p'
117
#define CPP_PRODUCE_ID			'x'
138
#define CPP_PRODUCE_ID			'x'
118
#define CPP_PREPROC_ID			'g'
139
#define CPP_PREPROC_ID			'g'
Line 133... Line 154...
133
#define DUMP_ANAL_ID			'e'
154
#define DUMP_ANAL_ID			'e'
134
#define DUMP_LINK_ID			'u'
155
#define DUMP_LINK_ID			'u'
135
 
156
 
136
 
157
 
137
/*
158
/*
138
    OTHER MISCELLANEOUS INFORMATION
159
 * OTHER MISCELLANEOUS INFORMATION
-
 
160
 *
-
 
161
 * This table contains miscellaneous configuration items.
-
 
162
 */
139
 
163
 
140
    This table contains miscellaneous configuration items.
-
 
141
*/
-
 
142
 
-
 
143
#if OPEN_NT
-
 
144
#define PROGNAME_TCC			"openlint"
-
 
145
#define PROGNAME_TCHK			"openlint"
-
 
146
#define TCCENV_VAR			"OPENLINTENV"
-
 
147
#define TCCOPT_VAR			"OPENLINTOPTS"
-
 
148
#else
-
 
149
#define PROGNAME_TCC			"tcc"
164
#define PROGNAME_TCC			"tcc"
150
#define PROGNAME_TCHK			"tchk"
165
#define PROGNAME_TCHK			"tchk"
151
#define TCCENV_VAR			"TCCENV"
166
#define TCCENV_VAR			"TCCENV"
152
#define TCCOPT_VAR			"TCCOPTS"
167
#define TCCOPT_VAR			"TCCOPTS"
153
#endif
-
 
154
 
-
 
155
#define DIAG_ENV			"tcc_diag"
168
#define DIAG_ENV			"tcc_diag"
156
#define PREPROC_ENV			"tcc_pp"
169
#define PREPROC_ENV			"tcc_pp"
157
#define PROF_ENV			"tcc_prof"
170
#define PROF_ENV			"tcc_prof"
158
#define TIME_ENV			"tcc_time"
171
#define TIME_ENV			"tcc_time"
159
#define TNC_ENV				"tnc"
172
#define TNC_ENV				"tnc"