PRIVATE: class re-organization
This commit is contained in:
parent
fb798eaa0b
commit
c46c9dedd6
8 changed files with 151 additions and 138 deletions
|
@ -56,12 +56,15 @@ namespace Private {
|
|||
using namespace Gen;
|
||||
|
||||
VM *Gen::g_vm = new VM();
|
||||
SettingMaps *g_setts = new SettingMaps();
|
||||
|
||||
void Gen::VM::run() {
|
||||
void VM::run() {
|
||||
execute(g_vm->_prog);
|
||||
}
|
||||
|
||||
namespace Settings {
|
||||
|
||||
SettingMaps *g_setts = new SettingMaps();
|
||||
|
||||
/* initialize setting for code generation */
|
||||
void SettingMaps::init() {
|
||||
_setting = (Setting *)malloc(sizeof(Setting));
|
||||
|
@ -91,6 +94,8 @@ void SettingMaps::load(Common::String &name) {
|
|||
Gen::g_vm->_progp = Gen::g_vm->_prog;
|
||||
}
|
||||
|
||||
} // end of namespace Settings
|
||||
|
||||
namespace Gen {
|
||||
|
||||
/* pop and return top elem from stack */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue