aboutsummaryrefslogtreecommitdiffstats
path: root/lib/megaco/src/flex/megaco_flex_scanner.erl
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2011-02-25 17:56:59 +0100
committerMicael Karlberg <[email protected]>2011-02-25 17:56:59 +0100
commitfeb08b2bc629530ab593c6497d2476e37d8a9251 (patch)
tree08f617711c896707f593956627109a0ebc506d4a /lib/megaco/src/flex/megaco_flex_scanner.erl
parent25bff78c1650c156b31772bf8072441f4edf3759 (diff)
downloadotp-feb08b2bc629530ab593c6497d2476e37d8a9251.tar.gz
otp-feb08b2bc629530ab593c6497d2476e37d8a9251.tar.bz2
otp-feb08b2bc629530ab593c6497d2476e37d8a9251.zip
First batch of attempts to deal with dialyzer issues...
Diffstat (limited to 'lib/megaco/src/flex/megaco_flex_scanner.erl')
-rw-r--r--lib/megaco/src/flex/megaco_flex_scanner.erl18
1 files changed, 4 insertions, 14 deletions
diff --git a/lib/megaco/src/flex/megaco_flex_scanner.erl b/lib/megaco/src/flex/megaco_flex_scanner.erl
index e471412c13..508f8905e7 100644
--- a/lib/megaco/src/flex/megaco_flex_scanner.erl
+++ b/lib/megaco/src/flex/megaco_flex_scanner.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2001-2009. All Rights Reserved.
+%% Copyright Ericsson AB 2001-2011. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
@@ -30,21 +30,11 @@
-define(SCHED_ID(), erlang:system_info(scheduler_id)).
-define(SMP_SUPPORT_DEFAULT(), erlang:system_info(smp_support)).
-is_enabled() ->
- case ?ENABLE_MEGACO_FLEX_SCANNER of
- true ->
- true;
- _ ->
- false
- end.
+is_enabled() ->
+ (true =:= ?ENABLE_MEGACO_FLEX_SCANNER).
is_reentrant_enabled() ->
- case ?MEGACO_REENTRANT_FLEX_SCANNER of
- true ->
- true;
- _ ->
- false
- end.
+ (true =:= ?MEGACO_REENTRANT_FLEX_SCANNER).
is_scanner_port(Port, Port) when is_port(Port) ->
true;