Whitespace cleanups

This commit is contained in:
Tuncer Ayaz 2011-07-13 17:59:07 +02:00
parent d215cae496
commit c63002bef8
4 changed files with 24 additions and 21 deletions

View file

@ -12,42 +12,44 @@
%% gen_fsm Function Exports %% gen_fsm Function Exports
%% ------------------------------------------------------------------ %% ------------------------------------------------------------------
-export([init/1, state_name/2, state_name/3, handle_event/3, handle_sync_event/4, handle_info/3, terminate/3, code_change/4]). -export([init/1, state_name/2, state_name/3, handle_event/3,
handle_sync_event/4, handle_info/3, terminate/3,
code_change/4]).
%% ------------------------------------------------------------------ %% ------------------------------------------------------------------
%% API Function Definitions %% API Function Definitions
%% ------------------------------------------------------------------ %% ------------------------------------------------------------------
start_link() -> start_link() ->
gen_fsm:start_link({local, ?SERVER}, ?MODULE, [], []). gen_fsm:start_link({local, ?SERVER}, ?MODULE, [], []).
%% ------------------------------------------------------------------ %% ------------------------------------------------------------------
%% gen_fsm Function Definitions %% gen_fsm Function Definitions
%% ------------------------------------------------------------------ %% ------------------------------------------------------------------
init(_Args) -> init(_Args) ->
{ok, initial_state_name, initial_state}. {ok, initial_state_name, initial_state}.
state_name(_Event, State) -> state_name(_Event, State) ->
{next_state, state_name, State}. {next_state, state_name, State}.
state_name(_Event, _From, State) -> state_name(_Event, _From, State) ->
{reply, ok, state_name, State}. {reply, ok, state_name, State}.
handle_event(_Event, StateName, State) -> handle_event(_Event, StateName, State) ->
{next_state, StateName, State}. {next_state, StateName, State}.
handle_sync_event(_Event, _From, StateName, State) -> handle_sync_event(_Event, _From, StateName, State) ->
{reply, ok, StateName, State}. {reply, ok, StateName, State}.
handle_info(_Info, StateName, State) -> handle_info(_Info, StateName, State) ->
{next_state, StateName, State}. {next_state, StateName, State}.
terminate(_Reason, _StateName, _State) -> terminate(_Reason, _StateName, _State) ->
ok. ok.
code_change(_OldVsn, StateName, State, _Extra) -> code_change(_OldVsn, StateName, State, _Extra) ->
{ok, StateName, State}. {ok, StateName, State}.
%% ------------------------------------------------------------------ %% ------------------------------------------------------------------
%% Internal Function Definitions %% Internal Function Definitions

View file

@ -7,4 +7,4 @@
-endif. -endif.
my_func() -> my_func() ->
ok. ok.

View file

@ -12,36 +12,37 @@
%% gen_server Function Exports %% gen_server Function Exports
%% ------------------------------------------------------------------ %% ------------------------------------------------------------------
-export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2,
terminate/2, code_change/3]).
%% ------------------------------------------------------------------ %% ------------------------------------------------------------------
%% API Function Definitions %% API Function Definitions
%% ------------------------------------------------------------------ %% ------------------------------------------------------------------
start_link() -> start_link() ->
gen_server:start_link({local, ?SERVER}, ?MODULE, [], []). gen_server:start_link({local, ?SERVER}, ?MODULE, [], []).
%% ------------------------------------------------------------------ %% ------------------------------------------------------------------
%% gen_server Function Definitions %% gen_server Function Definitions
%% ------------------------------------------------------------------ %% ------------------------------------------------------------------
init(Args) -> init(Args) ->
{ok, Args}. {ok, Args}.
handle_call(_Request, _From, State) -> handle_call(_Request, _From, State) ->
{noreply, ok, State}. {noreply, ok, State}.
handle_cast(_Msg, State) -> handle_cast(_Msg, State) ->
{noreply, State}. {noreply, State}.
handle_info(_Info, State) -> handle_info(_Info, State) ->
{noreply, State}. {noreply, State}.
terminate(_Reason, _State) -> terminate(_Reason, _State) ->
ok. ok.
code_change(_OldVsn, State, _Extra) -> code_change(_OldVsn, State, _Extra) ->
{ok, State}. {ok, State}.
%% ------------------------------------------------------------------ %% ------------------------------------------------------------------
%% Internal Function Definitions %% Internal Function Definitions