<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/unix, branch v1.4.6</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.4.6</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.4.6'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2015-09-23T14:11:56+00:00</updated>
<entry>
<title>unix/modjni: Factor out is_object_type().</title>
<updated>2015-09-23T14:11:56+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2015-09-23T14:10:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=e632b1fda71fd6c306b47b32c385dfdb1037e77c'/>
<id>urn:sha1:e632b1fda71fd6c306b47b32c385dfdb1037e77c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>unix/modffi.c: cast first to intptr_t when casting from/to pointer</title>
<updated>2015-09-23T01:54:31+00:00</updated>
<author>
<name>Vicente Olivert Riera</name>
<email>Vincent.Riera@imgtec.com</email>
</author>
<published>2015-09-20T08:00:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=587914169cc6ff7f0513bd14c42dcbb275bf77bd'/>
<id>urn:sha1:587914169cc6ff7f0513bd14c42dcbb275bf77bd</id>
<content type='text'>
This fixes errors like these ones:

modffi.c: In function 'return_ffi_value':
modffi.c:143:29: error: cast to pointer from integer of different size
[-Werror=int-to-pointer-cast]
             const char *s = (const char *)val;
                             ^
modffi.c:162:20: error: cast to pointer from integer of different size
[-Werror=int-to-pointer-cast]
             return (mp_obj_t)val;
                    ^
modffi.c: In function 'ffifunc_call':
modffi.c:358:25: error: cast from pointer to integer of different size
[-Werror=pointer-to-int-cast]
             values[i] = (ffi_arg)a;
                         ^
modffi.c:373:25: error: cast from pointer to integer of different size
[-Werror=pointer-to-int-cast]
             values[i] = (ffi_arg)s;
                         ^
modffi.c:381:25: error: cast from pointer to integer of different size
[-Werror=pointer-to-int-cast]
             values[i] = (ffi_arg)bufinfo.buf;
                         ^
modffi.c:384:25: error: cast from pointer to integer of different size
[-Werror=pointer-to-int-cast]
             values[i] = (ffi_arg)p-&gt;func;
                         ^

These errors can be highlighted when building micropython from MIPS64
n32 because ffi_arg is 64-bit wide and the pointers on MIPS64 n32 are
32-bit wide, so it's trying to case an integer to a pointer (or
vice-versa) of a different size. We should cast first the pointer (or the
integer) to a pointer sized integer (intptr_t) to fix that problem.

Signed-off-by: Vicente Olivert Riera &lt;Vincent.Riera@imgtec.com&gt;
</content>
</entry>
<entry>
<title>unix/modjni: Move type analysis logic to new_jobject(), for reuse.</title>
<updated>2015-09-23T00:02:17+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2015-09-23T00:01:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=ed22e9ba3ec6a2787cfd86f747a283cc55021a0b'/>
<id>urn:sha1:ed22e9ba3ec6a2787cfd86f747a283cc55021a0b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>unix/modjni: Support for subscripting of Java lists (r/o so far).</title>
<updated>2015-09-21T19:02:54+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2015-09-21T19:02:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=b2d880d749e4ac03b4764522d8e19a42618e3091'/>
<id>urn:sha1:b2d880d749e4ac03b4764522d8e19a42618e3091</id>
<content type='text'>
</content>
</entry>
<entry>
<title>unix/modjni: jvalue2py: Handle boolean.</title>
<updated>2015-09-19T21:36:51+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2015-09-19T21:36:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=6196aa45edcf74b596f1f6963e6af5ac33c18c5c'/>
<id>urn:sha1:6196aa45edcf74b596f1f6963e6af5ac33c18c5c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>unix: Use MICROPY_HAL_H macro for header inclusion.</title>
<updated>2015-09-19T13:03:57+00:00</updated>
<author>
<name>Alex March</name>
<email>alex.march.dev@gmail.com</email>
</author>
<published>2015-09-18T20:18:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=c0035d16941adf867b7bdb2c8e6cf2248a732be7'/>
<id>urn:sha1:c0035d16941adf867b7bdb2c8e6cf2248a732be7</id>
<content type='text'>
Follow the same format as other ports using the macro to include
the HAL header.
</content>
</entry>
<entry>
<title>unix/modjni: py2jvalue: Pass jobject's down to Java.</title>
<updated>2015-09-18T22:05:25+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2015-09-18T22:04:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=1e9d8e110b56b0771eddffb636f99f76407782aa'/>
<id>urn:sha1:1e9d8e110b56b0771eddffb636f99f76407782aa</id>
<content type='text'>
So far, no signature check is done (TODO).
</content>
</entry>
<entry>
<title>unix/modjni: py2jvalue: Handle both int and long java types (with TODO for long).</title>
<updated>2015-09-18T10:21:21+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2015-09-18T10:19:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=011c7f5718473f7a2aa855d4d8b432f6c2baeb72'/>
<id>urn:sha1:011c7f5718473f7a2aa855d4d8b432f6c2baeb72</id>
<content type='text'>
</content>
</entry>
<entry>
<title>unix/modjni: jvalue2py: Handle class-containing jvalues.</title>
<updated>2015-09-17T10:31:40+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2015-09-17T10:31:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=1cb5de2cd5d563b6757ea8a683103daa3155083f'/>
<id>urn:sha1:1cb5de2cd5d563b6757ea8a683103daa3155083f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>unix/modjni: Add env() module function.</title>
<updated>2015-09-15T22:10:09+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2015-09-15T22:09:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=cb6cf5e257c25d6d80a30ad8cb34181738524cc8'/>
<id>urn:sha1:cb6cf5e257c25d6d80a30ad8cb34181738524cc8</id>
<content type='text'>
Useful to load native method libraries not loaded by VM (as happens on
Android).
</content>
</entry>
</feed>
