<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/py/mpprint.c, branch 4.1.x</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=4.1.x</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=4.1.x'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2017-12-07T08:31:14+00:00</updated>
<entry>
<title>py/mpprint: Fix "%x" vs "%X" regression introduced in previous commit.</title>
<updated>2017-12-07T08:31:14+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2017-12-07T08:31:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=f5e097021ce95cf4398f89c4f4268efbc5717b89'/>
<id>urn:sha1:f5e097021ce95cf4398f89c4f4268efbc5717b89</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py/mpprint: Support "%lx" format on 64-bit systems.</title>
<updated>2017-12-07T08:07:18+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2017-12-07T08:00:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=5a10e63543cae424a71f93ea95b79d34df095832'/>
<id>urn:sha1:5a10e63543cae424a71f93ea95b79d34df095832</id>
<content type='text'>
Before that, the output was truncated to 32 bits. Only "%x" format is
handled, because a typical use is for addresses.

This refactor actually decreased x86_64 code size by 30 bytes.
</content>
</entry>
<entry>
<title>py/mpprint: Make "%p" format work properly on 64-bit systems.</title>
<updated>2017-12-07T07:06:07+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2017-12-07T07:04:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=5f8ad284f81c3f51be9b3d00ea9fee21ba727a97'/>
<id>urn:sha1:5f8ad284f81c3f51be9b3d00ea9fee21ba727a97</id>
<content type='text'>
Before, the output was truncated to 32 bits.
</content>
</entry>
<entry>
<title>py/mpprint: Only check for null string printing when NDEBUG not defined.</title>
<updated>2017-10-04T07:07:32+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-10-04T07:07:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=23faf88cab10a216eb24a30b4f33edd17183522c'/>
<id>urn:sha1:23faf88cab10a216eb24a30b4f33edd17183522c</id>
<content type='text'>
Printing "(null)" when a NULL string pointer is passed to %s is a debugging
feature and not a feature that's relied upon by the code.  So it only needs
to be compiled in when debugging (such as assert) is enabled, and saves
roughy 30 bytes of code when disabled.

This patch also fixes this NULL check to not do the check if the precision
is specified as zero.
</content>
</entry>
<entry>
<title>all: Use the name MicroPython consistently in comments</title>
<updated>2017-07-31T08:35:40+00:00</updated>
<author>
<name>Alexander Steffen</name>
<email>devel.20.webmeister@spamgourmet.com</email>
</author>
<published>2017-06-30T07:22:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=55f33240f3d7051d4213629e92437a36f1fac50e'/>
<id>urn:sha1:55f33240f3d7051d4213629e92437a36f1fac50e</id>
<content type='text'>
There were several different spellings of MicroPython present in comments,
when there should be only one.
</content>
</entry>
<entry>
<title>py/mpprint: Remove unreachable check for neg return of mp_format_float.</title>
<updated>2017-06-30T02:10:50+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-06-30T02:10:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=adf22c19aee53222b116928581b4d4a009d3af55'/>
<id>urn:sha1:adf22c19aee53222b116928581b4d4a009d3af55</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py/mpprint: Fix int formatting so "+" is printed for 0-valued integer.</title>
<updated>2017-03-15T06:25:12+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-03-15T06:25:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=d65371538d8ecdc64691f1c522b5b9ecc1299c7f'/>
<id>urn:sha1:d65371538d8ecdc64691f1c522b5b9ecc1299c7f</id>
<content type='text'>
</content>
</entry>
<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>
</feed>
