aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2016-01-27 12:12:18 +0100
committerBjörn Gustavsson <[email protected]>2016-01-28 13:24:21 +0100
commit98b1292ee49c5940318962f393f125850d870d96 (patch)
tree9dada604be5a32a6f0b1e43052a548226147e062 /lib/kernel
parentc14d4186d7fa6565d187da15bf39b6d71cb717bf (diff)
downloadotp-98b1292ee49c5940318962f393f125850d870d96.tar.gz
otp-98b1292ee49c5940318962f393f125850d870d96.tar.bz2
otp-98b1292ee49c5940318962f393f125850d870d96.zip
code_server: Add specs for all exported functions
Diffstat (limited to 'lib/kernel')
-rw-r--r--lib/kernel/src/code_server.erl6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/kernel/src/code_server.erl b/lib/kernel/src/code_server.erl
index 2743214bef..5e026bb5b3 100644
--- a/lib/kernel/src/code_server.erl
+++ b/lib/kernel/src/code_server.erl
@@ -44,6 +44,7 @@
on_load = [] :: [on_load_item()]}).
-type state() :: #state{}.
+-spec start_link([term()]) -> {'ok', pid()}.
start_link(Args) ->
Ref = make_ref(),
Parent = self(),
@@ -128,6 +129,7 @@ split_paths([C|T], S, Path, Paths) ->
split_paths([], _S, Path, Paths) ->
lists:reverse(Paths, [lists:reverse(Path)]).
+-spec call(term()) -> term().
call(Req) ->
?MODULE ! {code_call, self(), Req},
receive
@@ -1333,13 +1335,13 @@ strip_mod_info([{{sticky,_},_}|T], Acc) -> strip_mod_info(T, Acc);
strip_mod_info([H|T], Acc) -> strip_mod_info(T, [H|Acc]);
strip_mod_info([], Acc) -> Acc.
-% error_msg(Format) ->
-% error_msg(Format,[]).
+-spec error_msg(io:format(), [term()]) -> 'ok'.
error_msg(Format, Args) ->
Msg = {notify,{error, group_leader(), {self(), Format, Args}}},
error_logger ! Msg,
ok.
+-spec info_msg(io:format(), [term()]) -> 'ok'.
info_msg(Format, Args) ->
Msg = {notify,{info_msg, group_leader(), {self(), Format, Args}}},
error_logger ! Msg,