Please sign in to comment.
Compiler Cleanup: Remove more global state, fix alarms
Some global state wasn't being updated because I cut a bunch of it out, deleted a redundant copy of some code, and lost a little information in the process. The alarms fix was really just updating the `namespace_enigma` global. Instead of doing that, I've removed the `namespace_enigma` global. Good fucking riddance. There's still some more global state lying around, and ENIGMA is passing around JDI definition pointers willy-nilly, which it should NOT be doing. That's entirely my fault, but it still hurts the same. In the future, we'll want to pull out the JDI definitions from the compiler. But the only occurrences of JDI-isms, now, are within `lang_CPP`, the syntax checker, and the code translation / "linking" module. The syntax checker and code translation unit are going to be replaced by a tree builder and pretty printer, respectively. When this occurs, I intend to abstract away the process of symbol definition (checking if a function exists, checking if it's variadic, etc). The linking module will only need minor tweaks. It's actually pretty brilliant for young me; I'm impressed.
- Loading branch information...
Showing with 160 additions and 213 deletions.
- +6 −4 CompilerSource/backend/GameData.cpp
- +8 −2 CompilerSource/backend/GameData.h
- +30 −35 CompilerSource/compiler/compile.cpp
- +0 −4 CompilerSource/compiler/compile_includes.h
- +0 −1 CompilerSource/compiler/components/module_write_backgrounds.cpp
- +1 −1 CompilerSource/compiler/components/module_write_fonts.cpp
- +1 −1 CompilerSource/compiler/components/module_write_paths.cpp
- +1 −1 CompilerSource/compiler/components/module_write_sounds.cpp
- +1 −1 CompilerSource/compiler/components/write_defragged_events.cpp
- +0 −1 CompilerSource/compiler/components/write_font_info.cpp
- +26 −27 CompilerSource/compiler/jdi_utility.cpp
- +0 −43 CompilerSource/compiler/jdi_utility.h
- +0 −36 CompilerSource/compiler/reshandlers/refont.cpp
- +0 −36 CompilerSource/compiler/reshandlers/refont.h
- +4 −5 CompilerSource/frontend.cpp
- +2 −5 CompilerSource/languages/lang_CPP.cpp
- +32 −0 CompilerSource/languages/lang_CPP.h
- +33 −0 CompilerSource/languages/language_adapter.h
- +1 −2 CompilerSource/main.cpp
- +2 −4 CompilerSource/parser/parser_components.cpp
- +9 −0 CompilerSource/settings-parse/parse_ide_settings.cpp
- +1 −1 CompilerSource/standalone_main.cpp
- +2 −3 CompilerSource/syntax/syntax.cpp
Oops, something went wrong.