aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/src/asn1ct_gen.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2012-12-17 16:25:59 +0100
committerBjörn Gustavsson <[email protected]>2013-01-22 19:20:10 +0100
commit953b858de46f46f42e2ba45ba30a9b0b278a526d (patch)
treeb6e9cf137619a7f223c6934f36a08a10abfc865a /lib/asn1/src/asn1ct_gen.erl
parent6524db299d01e4041f02de15c1bb8eb2922408b0 (diff)
downloadotp-953b858de46f46f42e2ba45ba30a9b0b278a526d.tar.gz
otp-953b858de46f46f42e2ba45ba30a9b0b278a526d.tar.bz2
otp-953b858de46f46f42e2ba45ba30a9b0b278a526d.zip
Remove the 'inline' and '{inline,OutputFile}' options
Diffstat (limited to 'lib/asn1/src/asn1ct_gen.erl')
-rw-r--r--lib/asn1/src/asn1ct_gen.erl8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/asn1/src/asn1ct_gen.erl b/lib/asn1/src/asn1ct_gen.erl
index ce15e01d32..5181ed1fce 100644
--- a/lib/asn1/src/asn1ct_gen.erl
+++ b/lib/asn1/src/asn1ct_gen.erl
@@ -1410,11 +1410,9 @@ gen_head(Erules,Mod,Hrl) ->
emit({"-module('",Mod,"').",nl}),
put(currmod,Mod),
emit({"-compile(nowarn_unused_vars).",nl}),
- case {Hrl,lists:member(inline,get(encoding_options))} of
- {0,_} -> true;
- {_,true} -> true;
- _ ->
- emit({"-include(\"",Mod,".hrl\").",nl})
+ case Hrl of
+ 0 -> ok;
+ _ -> emit({"-include(\"",Mod,".hrl\").",nl})
end,
emit(["-asn1_info([{vsn,'",asn1ct:vsn(),"'},",nl,
" {module,'",Mod,"'},",nl,