cc_globals.c 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /* Copyright (C) 2016 Jeremiah Orians
  2. * Copyright (C) 2020 deesix <deesix@tuta.io>
  3. * This file is part of M2-Planet.
  4. *
  5. * M2-Planet is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation, either version 3 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * M2-Planet is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with M2-Planet. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. /* What types we have */
  19. struct type* global_types;
  20. struct type* prim_types;
  21. /* What we are currently working on */
  22. struct token_list* global_token;
  23. /* Output reorder collections*/
  24. struct token_list* output_list;
  25. struct token_list* strings_list;
  26. struct token_list* globals_list;
  27. /* Make our string collection more efficient */
  28. char* hold_string;
  29. int string_index;
  30. /* Our Target Architecture */
  31. int Architecture;
  32. int register_size;
  33. int MAX_STRING;
  34. struct type* integer;
  35. /* enable bootstrap-mode */
  36. int BOOTSTRAP_MODE;
  37. /* enable preprocessor-only mode */
  38. int PREPROCESSOR_MODE;