-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathcc_globals.h
62 lines (52 loc) · 1.96 KB
/
cc_globals.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/* Copyright (C) 2016 Jeremiah Orians
* Copyright (C) 2020 deesix <[email protected]>
* This file is part of M2-Planet.
*
* M2-Planet is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* M2-Planet is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with M2-Planet. If not, see <http://www.gnu.org/licenses/>.
*/
/* What types we have */
extern struct type* global_types;
extern struct type* prim_types;
/* What we are currently working on */
extern struct token_list* global_token;
/* Output reorder collections*/
extern struct token_list* output_list;
extern struct token_list* strings_list;
extern struct token_list* globals_list;
extern struct token_list* global_constant_list;
/* Make our string collection more efficient */
extern char* hold_string;
extern int string_index;
/* Our Target Architecture */
extern int Architecture;
extern int register_size;
/* Allow us to have a single settable max string */
extern int MAX_STRING;
/* Primitive types required for multi token types */
extern struct type* integer;
extern struct type* unsigned_integer;
extern struct type* signed_char;
extern struct type* unsigned_char;
extern struct type* signed_short;
extern struct type* unsigned_short;
extern struct type* signed_long;
extern struct type* unsigned_long;
extern struct type* signed_long_long;
extern struct type* unsigned_long_long;
/* enable bootstrap-mode */
extern int BOOTSTRAP_MODE;
/* enable preprocessor-only mode */
extern int PREPROCESSOR_MODE;
/* feature unsupported by cc_* */
extern void maybe_bootstrap_error(char* feature);