aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/doc/src
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2013-09-30 10:09:16 +0200
committerBjörn Gustavsson <[email protected]>2013-09-30 10:09:16 +0200
commitb4f5a3a238cc726b215c6c34484d4cb5299aff33 (patch)
tree78ce067f01ae9a2e4ecdfa25f5bcd49f9738bbd4 /lib/asn1/doc/src
parent8f8c00f77779f5d47642e6decddf298d2f8e2254 (diff)
parent0f430abcb189988a7faf55386557b2b74afa6f56 (diff)
downloadotp-b4f5a3a238cc726b215c6c34484d4cb5299aff33.tar.gz
otp-b4f5a3a238cc726b215c6c34484d4cb5299aff33.tar.bz2
otp-b4f5a3a238cc726b215c6c34484d4cb5299aff33.zip
Merge branch 'maint'
* maint: Teach the ASN.1 compiler the no_ok_wrapper option Optimize the generated decode/2 function
Diffstat (limited to 'lib/asn1/doc/src')
-rw-r--r--lib/asn1/doc/src/asn1ct.xml9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/asn1/doc/src/asn1ct.xml b/lib/asn1/doc/src/asn1ct.xml
index 6b6f46d39f..ada2aace87 100644
--- a/lib/asn1/doc/src/asn1ct.xml
+++ b/lib/asn1/doc/src/asn1ct.xml
@@ -66,7 +66,7 @@
<v>Option = ber | per | uper | der | compact_bit_string |
legacy_bit_string |
noobj | {n2n, EnumTypeName} |{outdir, Dir} | {i, IncludeDir} |
- asn1config | undec_rest |
+ asn1config | undec_rest | no_ok_wrapper |
{macro_name_prefix, Prefix} | {record_name_prefix, Prefix} | verbose | warnings_as_errors</v>
<v>OldOption = ber | per</v>
<v>Reason = term()</v>
@@ -238,6 +238,13 @@ File3.asn </pre>
list or a binary. Earlier versions of the compiler ignored
those following bytes.</p>
</item>
+ <tag><c>no_ok_wrapper</c></tag>
+ <item>
+ <p>If this option is given, the generated <c>encode/2</c>
+ and <c>decode/2</c> functions will not wrap a successful
+ return value in an <c>{ok,...}</c> tuple. If any error
+ occurs, there will be an exception.</p>
+ </item>
<tag><c>{macro_name_prefix, Prefix}</c></tag>
<item>
<p>All macro names generated by the compiler are prefixed with