diff options
author | Sverker Eriksson <[email protected]> | 2012-01-11 21:01:49 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2012-02-21 12:22:57 +0100 |
commit | 166032bddf9a14f3ea6252724532039a1113612d (patch) | |
tree | cbcbe2c80735a0aedcc4a97cdebce07b6e301a4c /erts/emulator/beam/module.c | |
parent | 3735ecf0815925950db313e56e8d2371afe2207a (diff) | |
download | otp-166032bddf9a14f3ea6252724532039a1113612d.tar.gz otp-166032bddf9a14f3ea6252724532039a1113612d.tar.bz2 otp-166032bddf9a14f3ea6252724532039a1113612d.zip |
erts: Refactor Module struct
Diffstat (limited to 'erts/emulator/beam/module.c')
-rw-r--r-- | erts/emulator/beam/module.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/erts/emulator/beam/module.c b/erts/emulator/beam/module.c index b93b1ad09a..39baabdf54 100644 --- a/erts/emulator/beam/module.c +++ b/erts/emulator/beam/module.c @@ -61,13 +61,13 @@ static Module* module_alloc(Module* tmpl) Module* obj = (Module*) erts_alloc(ERTS_ALC_T_MODULE, sizeof(Module)); obj->module = tmpl->module; - obj->code = 0; - obj->old_code = 0; - obj->code_length = 0; - obj->old_code_length = 0; + obj->curr.code = 0; + obj->old.code = 0; + obj->curr.code_length = 0; + obj->old.code_length = 0; obj->slot.index = -1; - obj->nif = NULL; - obj->old_nif = NULL; + obj->curr.nif = NULL; + obj->old.nif = NULL; return obj; } |