2021-01-10 14:32:42 +00:00
|
|
|
/* Copyright (C) 2016 Jeremiah Orians
|
|
|
|
* Copyright (C) 2020 deesix <deesix@tuta.io>
|
|
|
|
* 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 */
|
|
|
|
struct type* global_types;
|
|
|
|
struct type* prim_types;
|
|
|
|
|
|
|
|
/* What we are currently working on */
|
|
|
|
struct token_list* global_token;
|
|
|
|
|
|
|
|
/* Output reorder collections*/
|
|
|
|
struct token_list* output_list;
|
|
|
|
struct token_list* strings_list;
|
|
|
|
struct token_list* globals_list;
|
|
|
|
|
|
|
|
/* Make our string collection more efficient */
|
|
|
|
char* hold_string;
|
|
|
|
int string_index;
|
|
|
|
|
|
|
|
int MAX_STRING;
|
|
|
|
|
|
|
|
/* enable preprocessor-only mode */
|
|
|
|
int PREPROCESSOR_MODE;
|
2021-11-21 23:30:20 +00:00
|
|
|
|
|
|
|
/* enable spawn behavior to be effective */
|
|
|
|
char* M2LIBC_PATH;
|
2021-11-23 10:58:45 +00:00
|
|
|
char* Architecture;
|
|
|
|
int WORDSIZE;
|
|
|
|
int ENDIAN;
|
|
|
|
char* BASEADDRESS;
|
|
|
|
int STDIO_USED;
|
2021-11-23 00:53:12 +00:00
|
|
|
|
|
|
|
/* So we don't shoot ourself in the face */
|
|
|
|
int FUZZING;
|
2022-01-21 02:35:14 +00:00
|
|
|
int DIRTY_MODE;
|
|
|
|
int DEBUG_LEVEL;
|