aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/src/compiler/diameter_codegen.erl
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2011-10-14 01:44:58 +0200
committerAnders Svensson <[email protected]>2011-10-17 12:26:46 +0200
commitc03ac3db1d90e2b86ac4acfd6f0d09a324be4a42 (patch)
tree16b5eeef77edb78c01cb88d937b8257f7ecd7396 /lib/diameter/src/compiler/diameter_codegen.erl
parent7f6d6349514a62fa7a66dae9b01a8e5f364826fb (diff)
downloadotp-c03ac3db1d90e2b86ac4acfd6f0d09a324be4a42.tar.gz
otp-c03ac3db1d90e2b86ac4acfd6f0d09a324be4a42.tar.bz2
otp-c03ac3db1d90e2b86ac4acfd6f0d09a324be4a42.zip
@result_code -> @define in dictionary files
The section simply results in generated macros and has nothing specifically to do with result codes. It's still not documented, and neither are the macros generated from @enum, since the generated names are typically so long as to be impractical/unreadable in source. Better to use numeric values with a comment or define your own shorter macros as the need arises.
Diffstat (limited to 'lib/diameter/src/compiler/diameter_codegen.erl')
-rw-r--r--lib/diameter/src/compiler/diameter_codegen.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/diameter/src/compiler/diameter_codegen.erl b/lib/diameter/src/compiler/diameter_codegen.erl
index a33b07a3d3..0fd4a0b301 100644
--- a/lib/diameter/src/compiler/diameter_codegen.erl
+++ b/lib/diameter/src/compiler/diameter_codegen.erl
@@ -707,9 +707,9 @@ gen_hrl(Path, Mod, Spec) ->
write("ENUM Macros",
Fd,
m_enums(PREFIX, false, get_value(enums, Spec))),
- write("RESULT CODE Macros",
+ write("DEFINE Macros",
Fd,
- m_enums(PREFIX, false, get_value(result_codes, Spec))),
+ m_enums(PREFIX, false, get_value(defines, Spec))),
lists:foreach(fun({M,Es}) ->
write("ENUM Macros from " ++ atom_to_list(M),