cc_globals.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. extern struct type* global_types;
  20. extern struct type* prim_types;
  21. /* What we are currently working on */
  22. extern struct token_list* global_token;
  23. /* Output reorder collections*/
  24. extern struct token_list* output_list;
  25. extern struct token_list* strings_list;
  26. extern struct token_list* globals_list;
  27. /* Make our string collection more efficient */
  28. extern char* hold_string;
  29. extern int string_index;
  30. /* Our Target Architecture */
  31. extern int Architecture;
  32. extern int register_size;
  33. /* Allow us to have a single settable max string */
  34. extern int MAX_STRING;
  35. /* make default type integer */
  36. extern struct type* integer;
  37. /* enable bootstrap-mode */
  38. extern int BOOTSTRAP_MODE;
  39. /* enable preprocessor-only mode */
  40. extern int PREPROCESSOR_MODE;