diff options
author | Sverker Eriksson <[email protected]> | 2016-10-10 17:36:42 +0200 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2016-10-12 15:40:19 +0200 |
commit | ab3ea86a2ad0015eb8a5a46e01a1ad4ad51da4e1 (patch) | |
tree | d0d51d5fb264cceec288152769040e488603f4c1 /erts/emulator/beam/export.h | |
parent | 2d32c9a84458818d438cf849b86be364affabf31 (diff) | |
download | otp-ab3ea86a2ad0015eb8a5a46e01a1ad4ad51da4e1.tar.gz otp-ab3ea86a2ad0015eb8a5a46e01a1ad4ad51da4e1.tar.bz2 otp-ab3ea86a2ad0015eb8a5a46e01a1ad4ad51da4e1.zip |
erts: Refactor rename Export.code[] to Export.beam[]
to avoid scary merge errors.
Diffstat (limited to 'erts/emulator/beam/export.h')
-rw-r--r-- | erts/emulator/beam/export.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/erts/emulator/beam/export.h b/erts/emulator/beam/export.h index a807efef94..198b90c839 100644 --- a/erts/emulator/beam/export.h +++ b/erts/emulator/beam/export.h @@ -33,20 +33,20 @@ typedef struct export { void* addressv[ERTS_NUM_CODE_IX]; /* Pointer to code for function. */ - ErtsCodeInfo info; /* MUST be just before code[] */ + ErtsCodeInfo info; /* MUST be just before beam[] */ /* - * code[0]: This entry is 0 unless the 'address' field points to it. + * beam[0]: This entry is 0 unless the 'addressv' field points to it. * Threaded code instruction to load function * (em_call_error_handler), execute BIF (em_apply_bif), * or a breakpoint instruction (op_i_generic_breakpoint). - * code[1]: Function pointer to BIF function (for BIFs only), + * beam[1]: Function pointer to BIF function (for BIFs only), * or pointer to threaded code if the module has an * on_load function that has not been run yet, or pointer - * to code if function code[0] is a breakpoint instruction. + * to code if function beam[0] is a breakpoint instruction. * Otherwise: 0. */ - BeamInstr code[2]; + BeamInstr beam[2]; } Export; @@ -72,8 +72,8 @@ extern erts_smp_mtx_t export_staging_lock; #include "beam_load.h" /* For em_* extern declarations */ #define ExportIsBuiltIn(EntryPtr) \ -(((EntryPtr)->addressv[erts_active_code_ix()] == (EntryPtr)->code) && \ - ((EntryPtr)->code[0] == (BeamInstr) em_apply_bif)) +(((EntryPtr)->addressv[erts_active_code_ix()] == (EntryPtr)->beam) && \ + ((EntryPtr)->beam[0] == (BeamInstr) em_apply_bif)) #if ERTS_GLB_INLINE_INCL_FUNC_DEF |