aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src/code_server.erl
diff options
context:
space:
mode:
authorKostis Sagonas <[email protected]>2010-03-05 09:05:52 +0100
committerBjörn Gustavsson <[email protected]>2010-03-07 13:26:34 +0100
commitda70b2b0eca09f572e3275240ba60f1da6b679c4 (patch)
tree234ff94e9f9e0bd6c85c4e6f51cf2acd644903bd /lib/kernel/src/code_server.erl
parent02112d8dba5b40cd0adb7ecb2b2ed4340594369f (diff)
downloadotp-da70b2b0eca09f572e3275240ba60f1da6b679c4.tar.gz
otp-da70b2b0eca09f572e3275240ba60f1da6b679c4.tar.bz2
otp-da70b2b0eca09f572e3275240ba60f1da6b679c4.zip
kernel: Add types and specs
Diffstat (limited to 'lib/kernel/src/code_server.erl')
-rw-r--r--lib/kernel/src/code_server.erl18
1 files changed, 10 insertions, 8 deletions
diff --git a/lib/kernel/src/code_server.erl b/lib/kernel/src/code_server.erl
index 7aeddb73d1..2bc93b8238 100644
--- a/lib/kernel/src/code_server.erl
+++ b/lib/kernel/src/code_server.erl
@@ -32,14 +32,15 @@
-import(lists, [foreach/2]).
--record(state,{supervisor,
- root,
- path,
- moddb,
- namedb,
- cache = no_cache,
- mode=interactive,
- on_load = []}).
+-record(state, {supervisor,
+ root,
+ path,
+ moddb,
+ namedb,
+ cache = no_cache,
+ mode = interactive,
+ on_load = []}).
+-type state() :: #state{}.
start_link(Args) ->
Ref = make_ref(),
@@ -221,6 +222,7 @@ system_terminate(_Reason, _Parent, _Debug, _State) ->
% error_msg("~p terminating: ~p~n ",[?MODULE,Reason]),
exit(shutdown).
+-spec system_code_change(state(), module(), term(), term()) -> {'ok', state()}.
system_code_change(State, _Module, _OldVsn, _Extra) ->
{ok, State}.