diff options
author | Björn Gustavsson <[email protected]> | 2011-11-09 17:27:52 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2011-11-14 14:46:58 +0100 |
commit | b67d3e5447f4b2bca3ed92f3db84adb3f79f9b16 (patch) | |
tree | 8d8697d0cde6adb6680b64d2d424b739f5df99b2 /erts/emulator/beam/global.h | |
parent | 757a4720645366af1aace7469a6f5e7b9be7ab45 (diff) | |
download | otp-b67d3e5447f4b2bca3ed92f3db84adb3f79f9b16.tar.gz otp-b67d3e5447f4b2bca3ed92f3db84adb3f79f9b16.tar.bz2 otp-b67d3e5447f4b2bca3ed92f3db84adb3f79f9b16.zip |
BEAM loader: Clean up handling of error reasons
There is no reason to have erts_load_module() return integer values,
only to have the caller convert the values to atoms. Return the
appropriate atom directly from the place where the error is generated
instead. Return NIL if the module was successfully loaded.
Diffstat (limited to 'erts/emulator/beam/global.h')
-rw-r--r-- | erts/emulator/beam/global.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/global.h b/erts/emulator/beam/global.h index e4e9386dd7..6c75c3876b 100644 --- a/erts/emulator/beam/global.h +++ b/erts/emulator/beam/global.h @@ -866,7 +866,7 @@ typedef struct { Eterm* fname_ptr; /* Pointer to fname table */ } FunctionInfo; -int erts_load_module(Process *c_p, ErtsProcLocks c_p_locks, +Eterm erts_load_module(Process *c_p, ErtsProcLocks c_p_locks, Eterm group_leader, Eterm* mod, byte* code, int size); void init_load(void); BeamInstr* find_function_from_pc(BeamInstr* pc); |