aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/src/asn1ct_gen.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2013-07-10 07:52:37 +0200
committerBjörn Gustavsson <[email protected]>2013-08-30 10:13:18 +0200
commita9a6646832b6ea67ecc8350f1e1df995a5b9ae74 (patch)
tree250e5a48f7176e9c209a419c4bf757d0a2ca8be3 /lib/asn1/src/asn1ct_gen.erl
parent4c10999bf32603e81b597cbc3e43e7dbe4d94a04 (diff)
downloadotp-a9a6646832b6ea67ecc8350f1e1df995a5b9ae74.tar.gz
otp-a9a6646832b6ea67ecc8350f1e1df995a5b9ae74.tar.bz2
otp-a9a6646832b6ea67ecc8350f1e1df995a5b9ae74.zip
PER,UPER: Get rid of unused 'telltype' argument in decoding functions
Diffstat (limited to 'lib/asn1/src/asn1ct_gen.erl')
-rw-r--r--lib/asn1/src/asn1ct_gen.erl9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/asn1/src/asn1ct_gen.erl b/lib/asn1/src/asn1ct_gen.erl
index 68da80c585..fa05aacb95 100644
--- a/lib/asn1/src/asn1ct_gen.erl
+++ b/lib/asn1/src/asn1ct_gen.erl
@@ -798,7 +798,12 @@ pgen_exports(Erules,_Module,{Types,Values,_,_,Objects,ObjectSets}) ->
gen_exports1(Types,"enc_",1)
end,
emit({"-export([",nl}),
- gen_exports1(Types,"dec_",2)
+ case Erules of
+ ber ->
+ gen_exports1(Types, "dec_", 2);
+ _ ->
+ gen_exports1(Types, "dec_", 1)
+ end
end,
case [X || {n2n,X} <- get(encoding_options)] of
[] -> ok;
@@ -1007,7 +1012,7 @@ pgen_dispatcher(Erules,_Module,{Types,_Values,_,_,_Objects,_ObjectSets}) ->
gen_partial_inc_dispatcher();
_PerOrPer_bin ->
gen_dispatcher(Types,"encode_disp","enc_",""),
- gen_dispatcher(Types,"decode_disp","dec_",",mandatory")
+ gen_dispatcher(Types,"decode_disp","dec_","")
end,
emit([nl]),
emit({nl,nl}).