aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/beam_load.h
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2011-11-09 17:27:52 +0100
committerBjörn Gustavsson <[email protected]>2011-11-14 14:46:58 +0100
commitb67d3e5447f4b2bca3ed92f3db84adb3f79f9b16 (patch)
tree8d8697d0cde6adb6680b64d2d424b739f5df99b2 /erts/emulator/beam/beam_load.h
parent757a4720645366af1aace7469a6f5e7b9be7ab45 (diff)
downloadotp-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/beam_load.h')
-rw-r--r--erts/emulator/beam/beam_load.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/erts/emulator/beam/beam_load.h b/erts/emulator/beam/beam_load.h
index 9d4a60fed1..2956bd0add 100644
--- a/erts/emulator/beam/beam_load.h
+++ b/erts/emulator/beam/beam_load.h
@@ -23,7 +23,8 @@
#include "beam_opcodes.h"
#include "erl_process.h"
-int beam_make_current_old(Process *c_p, ErtsProcLocks c_p_locks, Eterm module);
+Eterm beam_make_current_old(Process *c_p, ErtsProcLocks c_p_locks,
+ Eterm module);
typedef struct gen_op_entry {
char* name;