diff options
author | Anders Svensson <[email protected]> | 2013-12-01 14:19:27 +0100 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2013-12-01 19:34:22 +0100 |
commit | 2eb76ba556b8775cffc94eac26b448eac70af267 (patch) | |
tree | ca08b7baf11525683b9f7b642aae572174f6d723 /lib/diameter/doc/src | |
parent | 743773a87e24db2ba0f0222bcf4dcaba7ae7adcf (diff) | |
download | otp-2eb76ba556b8775cffc94eac26b448eac70af267.tar.gz otp-2eb76ba556b8775cffc94eac26b448eac70af267.tar.bz2 otp-2eb76ba556b8775cffc94eac26b448eac70af267.zip |
Return compilable forms instead of beam
That is, preprocessed forms that can be passed to compile:forms/1,2.
Diffstat (limited to 'lib/diameter/doc/src')
-rw-r--r-- | lib/diameter/doc/src/diameter_make.xml | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/lib/diameter/doc/src/diameter_make.xml b/lib/diameter/doc/src/diameter_make.xml index c8c0f2fbc7..68780b1e05 100644 --- a/lib/diameter/doc/src/diameter_make.xml +++ b/lib/diameter/doc/src/diameter_make.xml @@ -1,5 +1,7 @@ <?xml version="1.0" encoding="latin1" ?> <!DOCTYPE erlref SYSTEM "erlref.dtd" [ + <!ENTITY compile_forms2 + '<seealso marker="compiler:compile#forms-2">compile:forms/2</seealso>'> <!ENTITY filename '<seealso marker="kernel:file#type-name">file:name()</seealso>'> <!ENTITY dictionary @@ -80,28 +82,27 @@ written to file or returned, and can have the following types.</p> <taglist> -<tag><c>parse | forms | erl | hrl | beam</c></tag> +<tag><c>parse | forms | erl | hrl</c></tag> <item> <p> Specifies an output format. Whether the output is returned or written to file depends on whether or not option <c>return</c> is specified. When written to file, the resulting file(s) will have extensions -<c>.D</c>, <c>.F</c>, <c>.erl</c>, <c>.hrl</c> and <c>.beam</c> +<c>.D</c>, <c>.F</c>, <c>.erl</c>, and <c>.hrl</c> respectively, basenames defaulting to <c>dictionary</c> if the input dictionary is literal and does not specify <c>&dict_name;</c>. -When returned, results are returned in the <c>Out</c> list in the -order specified. +When returned, results are in the order of the corresponding format +options. Format options default to <c>erl</c> and <c>hrl</c> (in this order) if unspecified.</p> <p> -The <c>parsed</c> format is an internal representation that can be -passed to &format; and &flatten;, while the <c>forms</c> format is -only intended for debugging purposes. -Output for the <c>erl</c> and <c>hrl</c> formats are returned as -iolists, while the <c>beam</c> format returns a <c>{module(), -binary()}</c> tuple.</p> +The <c>parse</c> format is an internal representation that can be +passed to &flatten; and &format;, while the <c>forms</c> format can be +passed to &compile_forms2;. +The <c>erl</c> and <c>hrl</c> formats are returned as +iolists.</p> <!-- That codec/2 can take the parsed format is undocumented, and options name and inherits have no effect in this case. --> </item> |