aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2014-05-14 16:11:38 +0200
committerBjörn Gustavsson <[email protected]>2014-09-01 14:37:13 +0200
commit00e8e69831d2dc487bf79f6aad031ebe5b590d4f (patch)
treeac5864f591ec9eae4f952960425f268eb48501c8
parent3869b539100d3f63eb0a350a374c599cbd7ed6ca (diff)
downloadotp-00e8e69831d2dc487bf79f6aad031ebe5b590d4f.tar.gz
otp-00e8e69831d2dc487bf79f6aad031ebe5b590d4f.tar.bz2
otp-00e8e69831d2dc487bf79f6aad031ebe5b590d4f.zip
Teach the ASN.1 compiler to understand "EXPORTS ALL"
EXPORTS ALL is the same as leaving out the EXPORTS statement.
-rw-r--r--lib/asn1/src/asn1ct_parser2.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/asn1/src/asn1ct_parser2.erl b/lib/asn1/src/asn1ct_parser2.erl
index 283616b157..444c8969f1 100644
--- a/lib/asn1/src/asn1ct_parser2.erl
+++ b/lib/asn1/src/asn1ct_parser2.erl
@@ -112,6 +112,9 @@ parse_ModuleDefinition(Tokens) ->
parse_Exports([{'EXPORTS',_L1},{';',_L2}|Rest]) ->
{{exports,[]},Rest};
+parse_Exports([{'EXPORTS',_},{'ALL',_},{';',_}|Rest]) ->
+ %% Same as no exports definition.
+ {{exports,all},Rest};
parse_Exports([{'EXPORTS',_L1}|Rest]) ->
{SymbolList,Rest2} = parse_SymbolList(Rest),
case Rest2 of