diff options
author | Anders Svensson <[email protected]> | 2013-09-20 16:20:08 +0200 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2013-11-28 17:27:26 +0100 |
commit | eadf8443197e59f98dd0aa3de8058df0a8fa3711 (patch) | |
tree | 732fc8d14591646df7cbb357a8518be629a3cc1b /lib/diameter/src/compiler/diameter_codegen.erl | |
parent | 8b82b718e7a02ef505d38f5b174b4213a0d5436a (diff) | |
download | otp-eadf8443197e59f98dd0aa3de8058df0a8fa3711.tar.gz otp-eadf8443197e59f98dd0aa3de8058df0a8fa3711.tar.bz2 otp-eadf8443197e59f98dd0aa3de8058df0a8fa3711.zip |
Change extensions for debug output: .spec/forms -> .D/F
"spec" is an old term the internal representation of a dictionary. The
new extensions are in the style or those that compile(3) can generate.
Diffstat (limited to 'lib/diameter/src/compiler/diameter_codegen.erl')
-rw-r--r-- | lib/diameter/src/compiler/diameter_codegen.erl | 4 |
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 e687145263..b99adb7b52 100644 --- a/lib/diameter/src/compiler/diameter_codegen.erl +++ b/lib/diameter/src/compiler/diameter_codegen.erl @@ -121,7 +121,7 @@ mod(_, {ok, Mod}) -> Mod. gen(spec, Spec, _Mod, Path) -> - write_term(Path ++ ".spec", [?VERSION | Spec]); + write_term(Path ++ ".D", [?VERSION | Spec]); gen(hrl, Spec, Mod, Path) -> gen_hrl(Path ++ ".hrl", Mod, Spec); @@ -173,7 +173,7 @@ gen(erl, Spec, Mod, Path) -> gen_erl(Path, insert_hrl_forms(Spec, Forms)). gen_erl(Path, Forms) -> - getr(debug) andalso write_term(Path ++ ".forms", Forms), + getr(debug) andalso write_term(Path ++ ".F", Forms), write(Path ++ ".erl", header() ++ erl_prettypr:format(erl_syntax:form_list(Forms))). |