Subversion Repositories tendra.SVN

Rev

Rev 2 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 7u83 1
/*
2
    		 Crown Copyright (c) 1997
3
 
4
    This TenDRA(r) Computer Program is subject to Copyright
5
    owned by the United Kingdom Secretary of State for Defence
6
    acting through the Defence Evaluation and Research Agency
7
    (DERA).  It is made available to Recipients with a
8
    royalty-free licence for its use, reproduction, transfer
9
    to other parties and amendment for any purpose not excluding
10
    product development provided that any such use et cetera
11
    shall be deemed to be acceptance of the following conditions:-
12
 
13
        (1) Its Recipients shall ensure that this Notice is
14
        reproduced upon any copies or amended versions of it;
15
 
16
        (2) Any amended version of it shall be clearly marked to
17
        show both the nature of and the organisation responsible
18
        for the relevant amendment or amendments;
19
 
20
        (3) Its onward transfer from a recipient to another
21
        party shall be deemed to be that party's acceptance of
22
        these conditions;
23
 
24
        (4) DERA gives no warranty or assurance as to its
25
        quality or suitability for any purpose and DERA accepts
26
        no liability whatsoever in relation to any use to which
27
        it may be put.
28
*/
29
 
30
 
31
#ifndef SUFFIX_INCLUDED
32
#define SUFFIX_INCLUDED
33
 
34
 
35
/*
36
    SINGLE CHARACTER KEYS FOR FILE TYPES
37
 
38
    Each file type has an associated identifying letter.  In most cases
39
    this corresponds to the file suffix.  This is Table 2, which needs
40
    to be kept in step with Table 1.
41
*/
42
 
43
#define C_SOURCE_KEY			'c'
44
#define PREPROC_C_KEY			'i'
45
#define CPP_SOURCE_KEY			'C'
46
#define PREPROC_CPP_KEY			'I'
47
#define INDEP_TDF_KEY			'j'
48
#define DEP_TDF_KEY			't'
49
#define AS_SOURCE_KEY			's'
50
#define BINARY_OBJ_KEY			'o'
51
#define BINARY_OBJ_AUX_KEY		'b'
52
#define PRETTY_TDF_KEY			'p'
53
#define PL_TDF_KEY			'P'
54
#define TDF_ARCHIVE_KEY			'A'
55
#define MIPS_G_FILE_KEY			'G'
56
#define MIPS_T_FILE_KEY			'T'
57
#define C_SPEC_KEY			'k'
58
#define CPP_SPEC_KEY			'K'
59
#define STARTUP_FILE_KEY		'h'
60
#define ALL_KEY				'a'
61
#define EXTRA_KEY			'+'
62
 
63
 
64
/*
65
    OTHER FILE TYPE INFORMATION
66
 
67
    Most of the file suffixes can be deduced from the table above.  This
68
    table gives a few other suffixes plus the default names for various
69
    output files.  This is Table 3.
70
*/
71
 
72
#define CPP_1_SUFFIX			"cc"
73
#define CPP_2_SUFFIX			"cpp"
74
#define PREPROC_CPP_1_SUFFIX		"ii"
75
#define PREPROC_CPP_2_SUFFIX		"ipp"
76
#define AS_2_SUFFIX			"asm"
77
#define CPP_SPEC_1_SUFFIX		"kk"
78
#define PL_TDF_SUFFIX			"pl"
79
#define TDF_ARCHIVE_SUFFIX		"ta"
80
#define TDF_COMPLEX_NAME		"a.j"
81
#define TDF_ARCHIVE_NAME		"a.ta"
82
#define C_SPEC_COMPLEX_NAME		"a.k"
83
#define API_ANAL_NAME			"a.api"
84
 
85
#if FS_DOS
86
#define EXECUTABLE_NAME			"a.exe"
87
#define EXECUTABLE_SUFFIX		".exe"
88
#define CPP_SPEC_COMPLEX_NAME		"a.kk"
89
#else
90
#define EXECUTABLE_NAME			"a.out"
91
#define CPP_SPEC_COMPLEX_NAME		"a.K"
92
#endif
93
 
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"
102
#define ENDUP_NAME			"tcc_endup.h"
103
#define TOKDEF_NAME			"tcc_tokdef.p"
104
#define MADE_UP_NAME			"_tcc%04d"
105
#define TEMP_NAME			"_tcc"
106
#endif
107
 
108
 
109
/*
110
    SINGLE CHARACTER KEYS FOR EXECUTABLES
111
 
112
    Each executable has an associated identifying letter.  This is Table 4.
113
*/
114
 
115
#define PRODUCE_ID			'c'
116
#define PREPROC_ID			'p'
117
#define CPP_PRODUCE_ID			'x'
118
#define CPP_PREPROC_ID			'g'
119
#define TDF_LINK_ID			'L'
120
#define TRANSLATE_ID			't'
121
#define ASSEMBLE_ID			'a'
122
#define LINK_ID				'l'
123
#define ARCHIVER_ID			'J'
124
#define SPEC_LINK_ID			's'
125
#define CPP_SPEC_LINK_ID		'S'
126
#define PRETTY_ID			'd'
127
#define NOTATION_ID			'n'
128
#define PL_TDF_ID			'P'
129
#define ASSEMBLE_MIPS_ID		'A'
130
#define INSTALL_ID			'I'
131
#define CC_ID				'C'
132
#define DYNLINK_ID			'D'
133
#define DUMP_ANAL_ID			'e'
134
#define DUMP_LINK_ID			'u'
135
 
136
 
137
/*
138
    OTHER MISCELLANEOUS INFORMATION
139
 
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"
150
#define PROGNAME_TCHK			"tchk"
151
#define TCCENV_VAR			"TCCENV"
152
#define TCCOPT_VAR			"TCCOPTS"
153
#endif
154
 
155
#define DIAG_ENV			"tcc_diag"
156
#define PREPROC_ENV			"tcc_pp"
157
#define PROF_ENV			"tcc_prof"
158
#define TIME_ENV			"tcc_time"
159
#define TNC_ENV				"tnc"
160
 
161
 
162
#endif