<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/py/mpprint.c, branch 0.9.4</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=0.9.4</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=0.9.4'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2016-12-28T01:45:33+00:00</updated>
<entry>
<title>py/mpprint: Add assertion for, and comment about, valid base values.</title>
<updated>2016-12-28T01:45:33+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-12-28T01:45:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=44bf8e1f2b3a66e8da09331ac016fa7922d8453c'/>
<id>urn:sha1:44bf8e1f2b3a66e8da09331ac016fa7922d8453c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py/objint: Use size_t for arguments that measure bytes/sizes.</title>
<updated>2016-10-11T02:20:11+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-10-11T02:20:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=6dff3df501242d106590a48b5ed382b01a97baea'/>
<id>urn:sha1:6dff3df501242d106590a48b5ed382b01a97baea</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py/mpprint: Fail an assertion with unsupported format specifiers.</title>
<updated>2016-09-01T08:09:44+00:00</updated>
<author>
<name>Delio Brignoli</name>
<email>brignoli.delio@gmail.com</email>
</author>
<published>2016-08-20T08:51:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=f98bb2ddcbfed7033ae93ae8fe98b0540a9fb42f'/>
<id>urn:sha1:f98bb2ddcbfed7033ae93ae8fe98b0540a9fb42f</id>
<content type='text'>
Arguments of an unknown type cannot be skipped and continuing to parse a
format string after encountering an unknown format specifier leads to
undefined behaviour.  This patch helps to find use of unsupported formats.
</content>
</entry>
<entry>
<title>py/mpprint: Fix sign extension when printf'ing %u, %x and %X.</title>
<updated>2016-02-01T15:08:42+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-02-01T15:08:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=9e677114e4aba8fdb417350a87ce1af33cef127f'/>
<id>urn:sha1:9e677114e4aba8fdb417350a87ce1af33cef127f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Change mp_obj_int_is_positive to more general mp_obj_int_sign.</title>
<updated>2016-01-07T14:29:12+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-01-07T14:29:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=d6b31e4578a9f7ed4f970774fe91eeb811b1d475'/>
<id>urn:sha1:d6b31e4578a9f7ed4f970774fe91eeb811b1d475</id>
<content type='text'>
This function returns the sign (-1, 0 or 1) of the integer object.
</content>
</entry>
<entry>
<title>py/mpprint: Fix printing of 64bit integers for 64bit windows builds</title>
<updated>2015-12-19T01:15:58+00:00</updated>
<author>
<name>stijn</name>
<email>stinos@zoho.com</email>
</author>
<published>2015-12-18T09:20:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=0a4eb4dbf2df34b9a2efcf55855b9db7c7132bf7'/>
<id>urn:sha1:0a4eb4dbf2df34b9a2efcf55855b9db7c7132bf7</id>
<content type='text'>
This makes all tests pass again for 64bit windows builds which would
previously fail for anything printing ranges (builtin_range/unpack1)
because they were printed as range( ld, ld ).

This is done by reusing the mp_vprintf implementation for MICROPY_OBJ_REPR_D
for 64bit windows builds (both msvc and mingw-w64) since the format specifier
used for 64bit integers is also %lld, or %llu for the unsigned version.

Note these specifiers used to be fetched from inttypes.h, which is the
C99 way of working with printf/scanf in a portable way, but mingw-w64
wants to be backwards compatible with older MS C runtimes and uses
the non-portable %I64i instead of %lld in inttypes.h, so remove the use
of said header again in mpconfig.h and define the specifiers manually.
</content>
</entry>
<entry>
<title>py/mpprint: Implement %llu and %lld format specifiers for mp_printf.</title>
<updated>2015-12-17T11:41:10+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-12-17T11:41:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=ab1e36dcf9b7182d18704f627aff461ce87d7d09'/>
<id>urn:sha1:ab1e36dcf9b7182d18704f627aff461ce87d7d09</id>
<content type='text'>
Only enabled for MICROPY_OBJ_REPR_D.
</content>
</entry>
<entry>
<title>py/mpprint: Printing of doubles is now supported (by uPy own routine).</title>
<updated>2015-12-02T12:21:36+00:00</updated>
<author>
<name>fabien.lementec</name>
<email>fabien.lementec@gmail.com</email>
</author>
<published>2015-11-30T15:00:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=e042f485ed9fc71b0a8ceca1dca89fe29d2179df'/>
<id>urn:sha1:e042f485ed9fc71b0a8ceca1dca89fe29d2179df</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Change qstr_* functions to use size_t as the type for str len arg.</title>
<updated>2015-11-29T14:25:04+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-11-27T12:23:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=c3f64d9799cdf8af88087eebe6628e83d658405c'/>
<id>urn:sha1:c3f64d9799cdf8af88087eebe6628e83d658405c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Change mp_print_strn_t func type to use size_t for the str length.</title>
<updated>2015-11-29T14:25:04+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-11-27T12:19:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=4e7107a572b55321f3f483f0293dd19b4f752c9b'/>
<id>urn:sha1:4e7107a572b55321f3f483f0293dd19b4f752c9b</id>
<content type='text'>
</content>
</entry>
</feed>
