diff options
author | Anders Svensson <[email protected]> | 2013-12-02 09:45:10 +0100 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2013-12-02 09:45:10 +0100 |
commit | 98a4eb6dd4dae98121da294a87bb5cf077b9efa7 (patch) | |
tree | 8a74d88e99c9543eb06a70606e680ee425f6f795 /lib/diameter/src/compiler/diameter_dict_util.erl | |
parent | 324b1bd052d82d5579a780bcd7bf8c843720cb86 (diff) | |
parent | 22ae0b2bd6fbe973915b19551c7d6a397a8c8a60 (diff) | |
download | otp-98a4eb6dd4dae98121da294a87bb5cf077b9efa7.tar.gz otp-98a4eb6dd4dae98121da294a87bb5cf077b9efa7.tar.bz2 otp-98a4eb6dd4dae98121da294a87bb5cf077b9efa7.zip |
Merge branch 'maint'
Diffstat (limited to 'lib/diameter/src/compiler/diameter_dict_util.erl')
-rw-r--r-- | lib/diameter/src/compiler/diameter_dict_util.erl | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/diameter/src/compiler/diameter_dict_util.erl b/lib/diameter/src/compiler/diameter_dict_util.erl index 36a6efa294..3941f30e03 100644 --- a/lib/diameter/src/compiler/diameter_dict_util.erl +++ b/lib/diameter/src/compiler/diameter_dict_util.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 2010-2011. All Rights Reserved. +%% Copyright Ericsson AB 2010-2013. 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 @@ -46,7 +46,7 @@ -spec parse(File, Opts) -> {ok, orddict:orddict()} | {error, term()} - when File :: {path, string()} + when File :: {path, file:name_all()} | iolist() | binary(), Opts :: list(). @@ -265,6 +265,9 @@ io(K, Id) io(vendor = K, {Id, Name}) -> [?NL, section(K) | [[?SP, tok(X)] || X <- [Id, Name]]]; +io(_, []) -> + []; + io(avp_types = K, Body) -> [?NL, ?NL, section(K), ?NL, [body(K,A) || A <- Body]]; |