<feed xmlns='http://www.w3.org/2005/Atom'>
<title>otp.git/lib/erl_interface/src, branch OTP_R16B03</title>
<subtitle>Mirror of Erlang/OTP repository.
</subtitle>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/'/>
<entry>
<title>Silence two warnings about tests being always true</title>
<updated>2013-12-02T14:20:50+00:00</updated>
<author>
<name>Anthony Ramine</name>
<email>n.oxyde@gmail.com</email>
</author>
<published>2013-10-15T08:49:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=09152f810b04715785cb0437f9bc0ce42bb0f85f'/>
<id>09152f810b04715785cb0437f9bc0ce42bb0f85f</id>
<content type='text'>
encode/encode_ulonglong.c:55:25: warning: comparison of unsigned expression &gt;= 0 is always true [-Wtautological-compare]
    if ((p &lt; 256) &amp;&amp; (p &gt;= 0)) {
                      ~ ^  ~

legacy/erl_marshal.c:293:24: warning: comparison of unsigned expression &gt;= 0 is always true [-Wtautological-compare]
        if ((ul &lt; 256) &amp;&amp; (ul &gt;= 0)) {
                           ~~ ^  ~
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
encode/encode_ulonglong.c:55:25: warning: comparison of unsigned expression &gt;= 0 is always true [-Wtautological-compare]
    if ((p &lt; 256) &amp;&amp; (p &gt;= 0)) {
                      ~ ^  ~

legacy/erl_marshal.c:293:24: warning: comparison of unsigned expression &gt;= 0 is always true [-Wtautological-compare]
        if ((ul &lt; 256) &amp;&amp; (ul &gt;= 0)) {
                           ~~ ^  ~
</pre>
</div>
</content>
</entry>
<entry>
<title>Conditionally compile my_gethostbyname_r and my_gethostbyaddr_r</title>
<updated>2013-12-02T14:20:50+00:00</updated>
<author>
<name>Anthony Ramine</name>
<email>n.oxyde@gmail.com</email>
</author>
<published>2013-10-15T08:44:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=8e970802761c593e2ed556722276ea036c4ad031'/>
<id>8e970802761c593e2ed556722276ea036c4ad031</id>
<content type='text'>
These are not needed when not on VXWORKS or without _REENTRANT.

connect/ei_resolve.c:302:24: warning: unused function 'my_gethostbyname_r' [-Wunused-function]
static struct hostent *my_gethostbyname_r(const char *name,
                       ^
connect/ei_resolve.c:360:24: warning: unused function 'my_gethostbyaddr_r' [-Wunused-function]
static struct hostent *my_gethostbyaddr_r(const char *addr,
                       ^
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These are not needed when not on VXWORKS or without _REENTRANT.

connect/ei_resolve.c:302:24: warning: unused function 'my_gethostbyname_r' [-Wunused-function]
static struct hostent *my_gethostbyname_r(const char *name,
                       ^
connect/ei_resolve.c:360:24: warning: unused function 'my_gethostbyaddr_r' [-Wunused-function]
static struct hostent *my_gethostbyaddr_r(const char *addr,
                       ^
</pre>
</div>
</content>
</entry>
<entry>
<title>Silence a mismatching type pointer warning in ei_resolve</title>
<updated>2013-12-02T14:20:50+00:00</updated>
<author>
<name>Anthony Ramine</name>
<email>n.oxyde@gmail.com</email>
</author>
<published>2013-10-15T08:36:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=012e6ee060c5b2c3933fb3ca8058ab63bac30962'/>
<id>012e6ee060c5b2c3933fb3ca8058ab63bac30962</id>
<content type='text'>
Why we are assigning a pointer to pointer to char to a pointer to char
baffles me. The warning is:

connect/ei_resolve.c:229:11: warning: incompatible pointer types assigning to 'char *' from 'char **'; dereference
      with * [-Wincompatible-pointer-types]
    *pptr = src_aliases;
          ^ ~~~~~~~~~~~
            *
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Why we are assigning a pointer to pointer to char to a pointer to char
baffles me. The warning is:

connect/ei_resolve.c:229:11: warning: incompatible pointer types assigning to 'char *' from 'char **'; dereference
      with * [-Wincompatible-pointer-types]
    *pptr = src_aliases;
          ^ ~~~~~~~~~~~
            *
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove ^L characters hidden randomly in the code. Not those used in text files as delimiters.</title>
<updated>2013-09-12T13:09:35+00:00</updated>
<author>
<name>Pierre Fenoll</name>
<email>pierrefenoll@gmail.com</email>
</author>
<published>2013-09-10T14:48:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=21095e6830f37676dd29c33a590851ba2c76499b'/>
<id>21095e6830f37676dd29c33a590851ba2c76499b</id>
<content type='text'>
While working on a tool that processes Erlang code and testing it against this repo,
I found out about those little sneaky 0xff. I thought it may be of help to other
people build such tools to remove non-conforming-to-standard characters.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
While working on a tool that processes Erlang code and testing it against this repo,
I found out about those little sneaky 0xff. I thought it may be of help to other
people build such tools to remove non-conforming-to-standard characters.
</pre>
</div>
</content>
</entry>
<entry>
<title>ei ic: install headers and libs into usr</title>
<updated>2013-08-29T09:46:07+00:00</updated>
<author>
<name>Lukas Larsson</name>
<email>lukas@erlang-solutions.com</email>
</author>
<published>2013-08-29T09:46:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=19a955f41f1ef06c0b863372e79e292b26c3dba5'/>
<id>19a955f41f1ef06c0b863372e79e292b26c3dba5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>erl_interface: check if file descriptor is valid before closing</title>
<updated>2013-05-08T13:50:15+00:00</updated>
<author>
<name>Fredrik Gustafsson</name>
<email>fredrik@erlang.org</email>
</author>
<published>2013-05-08T13:50:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=f1e3a92a13c1e58c3cb83c995af2bc5f09b512cb'/>
<id>f1e3a92a13c1e58c3cb83c995af2bc5f09b512cb</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Update copyright years</title>
<updated>2013-02-22T16:54:39+00:00</updated>
<author>
<name>Björn-Egil Dahlberg</name>
<email>egil@erlang.org</email>
</author>
<published>2013-02-22T16:54:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=acc8e607aaeedcfb4cf9b6d2e0953a6a12b5b94a'/>
<id>acc8e607aaeedcfb4cf9b6d2e0953a6a12b5b94a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'sverk/erlang_pid-revert'</title>
<updated>2013-02-22T14:15:01+00:00</updated>
<author>
<name>Sverker Eriksson</name>
<email>sverker@erlang.org</email>
</author>
<published>2013-02-22T14:15:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=13b1dcfc31b3c42affafc42c30105abfbebbfbf3'/>
<id>13b1dcfc31b3c42affafc42c30105abfbebbfbf3</id>
<content type='text'>
* sverk/erlang_pid-revert:
  erl_interface: Fix some warnings in test code
  erl_interface,ic: Remove node_org_enc from erlang_{pid,port,ref}
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* sverk/erlang_pid-revert:
  erl_interface: Fix some warnings in test code
  erl_interface,ic: Remove node_org_enc from erlang_{pid,port,ref}
</pre>
</div>
</content>
</entry>
<entry>
<title>erl_interface,ic: Remove node_org_enc from erlang_{pid,port,ref}</title>
<updated>2013-02-18T14:20:47+00:00</updated>
<author>
<name>Sverker Eriksson</name>
<email>sverker@erlang.org</email>
</author>
<published>2013-02-18T14:09:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=9a35c01873fb56316136e1314ad6adffe97b9fa5'/>
<id>9a35c01873fb56316136e1314ad6adffe97b9fa5</id>
<content type='text'>
in order to be backward compatible with user code that
accesses the members of erlang_pid and friend.

The documentation does not mention the content of these structs,
but we have example code that does. So the safe way it the revert
the node_org_enc field (added in R16A) and instead determine in
runtime which atom encoding to use depending on if the node atom
contains unicode (&gt;255) characters or not.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
in order to be backward compatible with user code that
accesses the members of erlang_pid and friend.

The documentation does not mention the content of these structs,
but we have example code that does. So the safe way it the revert
the node_org_enc field (added in R16A) and instead determine in
runtime which atom encoding to use depending on if the node atom
contains unicode (&gt;255) characters or not.
</pre>
</div>
</content>
</entry>
<entry>
<title>Update config.guess and config.sub to latest versions</title>
<updated>2013-02-14T14:30:05+00:00</updated>
<author>
<name>Lukas Larsson</name>
<email>lukas@erlang-solutions.com</email>
</author>
<published>2013-02-13T09:43:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=a8d76b5988d6862e144850b4e9b011c77d99154f'/>
<id>a8d76b5988d6862e144850b4e9b011c77d99154f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
