diff options
author | Björn Gustavsson <[email protected]> | 2016-01-13 07:54:33 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2016-01-22 16:44:08 +0100 |
commit | c623e64625cc4154d9d314f46446c681e2e4e697 (patch) | |
tree | e85d240d1a2c77c4c5fdeec735a1afd3280e036c /lib/ic/examples/erl-genserv | |
parent | 0b9852d9a774be8c6f1d91065b60329bac779e2f (diff) | |
download | otp-c623e64625cc4154d9d314f46446c681e2e4e697.tar.gz otp-c623e64625cc4154d9d314f46446c681e2e4e697.tar.bz2 otp-c623e64625cc4154d9d314f46446c681e2e4e697.zip |
code_server: Tighten type of modules parameters
The following functions in the 'code' module only allow the
module argument to an atom:
load_file/1
load_binary/3
ensure_loaded/1
delete/1
purge/1
soft_purge/1
get_object_code/1
Therefore, there is no reason that the corresponding implementation in
code_server should allow the module to be either an atom or a
string. Only accept an atom and remove the helper functions to_atom/1
and do_mod_call/4.
Diffstat (limited to 'lib/ic/examples/erl-genserv')
0 files changed, 0 insertions, 0 deletions