<feed xmlns='http://www.w3.org/2005/Atom'>
<title>otp.git/lib/diameter/src/compiler/diameter_codegen.erl, branch R16B02_yielding_binary_to_term</title>
<subtitle>Mirror of Erlang/OTP repository.
</subtitle>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/'/>
<entry>
<title>Remove redundant integer type specifiers from binaries</title>
<updated>2013-05-29T15:16:54+00:00</updated>
<author>
<name>Anders Svensson</name>
<email>anders@erlang.org</email>
</author>
<published>2013-05-16T16:40:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=0b5dbb28332012c22b915364b55ce31843a26bdf'/>
<id>0b5dbb28332012c22b915364b55ce31843a26bdf</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove dialyzer nowarn_unused_function workaround</title>
<updated>2013-02-18T12:01:08+00:00</updated>
<author>
<name>Anders Svensson</name>
<email>anders@erlang.org</email>
</author>
<published>2013-02-13T13:15:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=e9bdf8a759e6fe7b64923a3452812a5b25ec9798'/>
<id>e9bdf8a759e6fe7b64923a3452812a5b25ec9798</id>
<content type='text'>
The workaround (commit 57d5564f) was to dialyzer only understanding
nowarn_unused_function on individual functions. This is no longer the
case as of R15B01 (commit 477fd95a).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The workaround (commit 57d5564f) was to dialyzer only understanding
nowarn_unused_function on individual functions. This is no longer the
case as of R15B01 (commit 477fd95a).
</pre>
</div>
</content>
</entry>
<entry>
<title>Tell dialyzer not to warn about unused functions</title>
<updated>2011-12-07T23:53:05+00:00</updated>
<author>
<name>Anders Svensson</name>
<email>anders@erlang.org</email>
</author>
<published>2011-12-07T14:48:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=57d5564fca1f6d5e57199e1dcdca1d64284ecae8'/>
<id>57d5564fca1f6d5e57199e1dcdca1d64284ecae8</id>
<content type='text'>
Depending on the dictionary, generated dictionary modules may contain
unused functions included from diameter_gen.hrl. There may still be
warnings however since even used functions can contain code that
isn't reached for a given dictionary.

It would be useful for diameter to generate spec attributes for
a dictionary's generated records but the format of these is currently
undocumented.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Depending on the dictionary, generated dictionary modules may contain
unused functions included from diameter_gen.hrl. There may still be
warnings however since even used functions can contain code that
isn't reached for a given dictionary.

It would be useful for diameter to generate spec attributes for
a dictionary's generated records but the format of these is currently
undocumented.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix semantic checks on AVP qualifiers</title>
<updated>2011-12-07T23:45:19+00:00</updated>
<author>
<name>Anders Svensson</name>
<email>anders@erlang.org</email>
</author>
<published>2011-12-07T10:50:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=b4ecd2efd32df9d14d3314b705cd1114de7141ae'/>
<id>b4ecd2efd32df9d14d3314b705cd1114de7141ae</id>
<content type='text'>
Didn't quite interpret '*' as RFC 3588 dictates. In particular, the
interpretation depends on what's being qualified, a required, optional
or fixed AVP.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Didn't quite interpret '*' as RFC 3588 dictates. In particular, the
interpretation depends on what's being qualified, a required, optional
or fixed AVP.
</pre>
</div>
</content>
</entry>
<entry>
<title>Minor codegen/debug fix</title>
<updated>2011-12-07T23:42:18+00:00</updated>
<author>
<name>Anders Svensson</name>
<email>anders@erlang.org</email>
</author>
<published>2011-12-07T23:33:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=e2c8662b4fd5d6100ab301cd6c21f9a8d34b7f71'/>
<id>e2c8662b4fd5d6100ab301cd6c21f9a8d34b7f71</id>
<content type='text'>
Writing a dictionary to file failed.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Writing a dictionary to file failed.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix interpretation of vendor id in @grouped</title>
<updated>2011-12-05T10:10:59+00:00</updated>
<author>
<name>Anders Svensson</name>
<email>anders@erlang.org</email>
</author>
<published>2011-12-04T11:38:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=c11f047bc88406c25c52ff57d1062906a0aeff07'/>
<id>c11f047bc88406c25c52ff57d1062906a0aeff07</id>
<content type='text'>
A value is required to be the same as any specified with
@avp_vendor_id but otherwise the two locations are equivalent.
Both possibilities are allowed since @avp_vendor_id is required
for AVPs of types other than Grouped (modulo it not really needing
to exist at all: see commit 943266c9) and since the grammar parsed
in @grouped (from RFC 3588) allows it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A value is required to be the same as any specified with
@avp_vendor_id but otherwise the two locations are equivalent.
Both possibilities are allowed since @avp_vendor_id is required
for AVPs of types other than Grouped (modulo it not really needing
to exist at all: see commit 943266c9) and since the grammar parsed
in @grouped (from RFC 3588) allows it.
</pre>
</div>
</content>
</entry>
<entry>
<title>Minor codegen tweaks</title>
<updated>2011-12-04T16:47:38+00:00</updated>
<author>
<name>Anders Svensson</name>
<email>anders@erlang.org</email>
</author>
<published>2011-12-03T10:54:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=246470bd7492f97ca4b7528b3c1c4ed76b91d4e0'/>
<id>246470bd7492f97ca4b7528b3c1c4ed76b91d4e0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Vendor id fixes</title>
<updated>2011-12-02T15:10:29+00:00</updated>
<author>
<name>Anders Svensson</name>
<email>anders@erlang.org</email>
</author>
<published>2011-12-01T13:29:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=943266c923535a22050c18211d9f4ef95919aebc'/>
<id>943266c923535a22050c18211d9f4ef95919aebc</id>
<content type='text'>
@vendor is only required if the id is actually needed. That is, if
there is a locally defined AVP whose V flag is set and which does
not have a vendor id set by @avp_vendor_id.

Also, in the case of an inherited AVP, fix avp_name/2 in a generated
dictionary module defaulting vendor id from @vendor in the inheriting
dictionary but avp_header/1 defaulting it from the inherited dictionary.
In both cases the vendor id now defaults from @vendor in the inherited
dictionary.

Note that @avp_vendor_id from the inherited dictionary is
ignored: any changes from @vendor have to be explicit in the
inheriting dictionary. A better alternative to @avp_vendor_id
is to simply inherit from dictionaries setting the appropriate
@vendor but this was previously somewhat broken so @avp_vendor_id
was needed to set the id of an AVP whose definition was copied
from another source into a dictionary that only inherited from
the common dictionary (which doesn't set V on any AVPs).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
@vendor is only required if the id is actually needed. That is, if
there is a locally defined AVP whose V flag is set and which does
not have a vendor id set by @avp_vendor_id.

Also, in the case of an inherited AVP, fix avp_name/2 in a generated
dictionary module defaulting vendor id from @vendor in the inheriting
dictionary but avp_header/1 defaulting it from the inherited dictionary.
In both cases the vendor id now defaults from @vendor in the inherited
dictionary.

Note that @avp_vendor_id from the inherited dictionary is
ignored: any changes from @vendor have to be explicit in the
inheriting dictionary. A better alternative to @avp_vendor_id
is to simply inherit from dictionaries setting the appropriate
@vendor but this was previously somewhat broken so @avp_vendor_id
was needed to set the id of an AVP whose definition was copied
from another source into a dictionary that only inherited from
the common dictionary (which doesn't set V on any AVPs).
</pre>
</div>
</content>
</entry>
<entry>
<title>Adapt diameter_codegen</title>
<updated>2011-12-02T15:10:28+00:00</updated>
<author>
<name>Anders Svensson</name>
<email>anders@erlang.org</email>
</author>
<published>2011-12-01T14:17:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=44495f2bdfa6c1d68bb27ba3ab6c31d8dea81519'/>
<id>44495f2bdfa6c1d68bb27ba3ab6c31d8dea81519</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>@result_code -&gt; @define in dictionary files</title>
<updated>2011-10-17T10:26:46+00:00</updated>
<author>
<name>Anders Svensson</name>
<email>anders@erlang.org</email>
</author>
<published>2011-10-13T23:44:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=c03ac3db1d90e2b86ac4acfd6f0d09a324be4a42'/>
<id>c03ac3db1d90e2b86ac4acfd6f0d09a324be4a42</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
</feed>
