<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/lib/utils/pyexec.c, branch v1.8.6</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.8.6</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.8.6'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2016-10-26T14:53:28+00:00</updated>
<entry>
<title>zephyr: Fix mp_hal_set_interrupt_char() declaration to be compatible.</title>
<updated>2016-10-26T14:53:28+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-10-26T14:53:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=3cdccb9b1429bc3afd04ec3f9171b373fe939375'/>
<id>urn:sha1:3cdccb9b1429bc3afd04ec3f9171b373fe939375</id>
<content type='text'>
With other ports. Other ports declare it in mphalport.h, it can be
inline or macro.
</content>
</entry>
<entry>
<title>lib/utils/pyexec: Fix compilation warning of type vs format mismatch.</title>
<updated>2016-10-26T10:45:03+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-10-26T10:45:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=6832cbd69d04db1703b8b17939d8cd894aea4c68'/>
<id>urn:sha1:6832cbd69d04db1703b8b17939d8cd894aea4c68</id>
<content type='text'>
This happens with some compilers on some architectures, which don't define
size_t as unsigned int. MicroPython's printf() dooesn't support obscure
format specifiers for size_t, so the obvious choice is to explicitly cast
to unsigned, to match %u used in printf().
</content>
</entry>
<entry>
<title>lib/utils/pyexec: Add mp_hal_set_interrupt_char() prototype.</title>
<updated>2016-10-26T10:42:27+00:00</updated>
<author>
<name>Vincenzo Frascino</name>
<email>vincenzo.frascino@linaro.org</email>
</author>
<published>2016-10-26T09:33:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=c38ea32810f2b8b55c1585a3022902c359f84d6e'/>
<id>urn:sha1:c38ea32810f2b8b55c1585a3022902c359f84d6e</id>
<content type='text'>
This patch removes a compilation warning in pyexec.

Signed-off-by: Vincenzo Frascino &lt;vincenzo.frascino@linaro.org&gt;
</content>
</entry>
<entry>
<title>lib/utils/pyexec: Allow behaviour of SystemExit to be configurable.</title>
<updated>2016-10-17T02:14:59+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-10-17T02:14:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=ad3724e0bc87305f9280f65226066a199042d736'/>
<id>urn:sha1:ad3724e0bc87305f9280f65226066a199042d736</id>
<content type='text'>
Setting the pyexec_system_exit variable to PYEXEC_FORCED_EXT allows
SystemExit exceptions to terminate the pyexec functions.
</content>
</entry>
<entry>
<title>py/vstr: Combine vstr_new_size with vstr_new since they are rarely used.</title>
<updated>2016-10-14T05:46:34+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-10-14T05:46:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=824f5c5a32d740acad50d23b7ab1d69660dcf3ad'/>
<id>urn:sha1:824f5c5a32d740acad50d23b7ab1d69660dcf3ad</id>
<content type='text'>
Now there is just one function to allocate a new vstr, namely vstr_new
(in addition to vstr_init etc).  The caller of this function should know
what initial size to allocate for the buffer, or at least have some policy
or config option, instead of leaving it to a default (as it was before).
</content>
</entry>
<entry>
<title>lib/utils/pyexec: Don't treat SystemExit as "forced exit".</title>
<updated>2016-10-12T15:00:32+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-10-12T15:00:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=4021b1e1b86a86af9e43c393c447110d36ebb36d'/>
<id>urn:sha1:4021b1e1b86a86af9e43c393c447110d36ebb36d</id>
<content type='text'>
"Forced exit" is treated as soft-reboot (Ctrl+D). But expected effect of
calling sys.exit() is termination of the current script, not any further
and more serious actions like mentioned soft reboot.
</content>
</entry>
<entry>
<title>lib/utils/pyexec: qstr_pool_info() requires size_t* parameters.</title>
<updated>2016-08-29T21:58:42+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-08-29T21:58:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=bae62d9abe3db0f60f681f79b684ec7e5fb25fda'/>
<id>urn:sha1:bae62d9abe3db0f60f681f79b684ec7e5fb25fda</id>
<content type='text'>
</content>
</entry>
<entry>
<title>lib/utils/pyexec: Use full path to readline.h header, per latest conventions.</title>
<updated>2016-07-20T21:14:10+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-07-20T21:14:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=04c27e5eaaedd99940269ddce867237c003768a0'/>
<id>urn:sha1:04c27e5eaaedd99940269ddce867237c003768a0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>lib/utils/pyexec: Condition-out GC calls from pyexec.</title>
<updated>2016-04-19T08:22:40+00:00</updated>
<author>
<name>Colin Hogben</name>
<email>colin@infinnovation.co.uk</email>
</author>
<published>2016-04-18T22:09:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=8aa3cbf15312987410e2358c4ee93d8bb8cdf715'/>
<id>urn:sha1:8aa3cbf15312987410e2358c4ee93d8bb8cdf715</id>
<content type='text'>
A port which uses lib/utils/pyexec.c but which does not enable garbage
collection should not need to implement the gc_collect function.

This patch also moves the gc_collect call to after printing the qstr
info.  Since qstrs cannot be collected it should not make any difference
to the printed statistics.
</content>
</entry>
<entry>
<title>py: Add ability to have frozen persistent bytecode from .mpy files.</title>
<updated>2016-04-13T15:07:47+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-01-31T22:24:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=0a2e9650f5383bc1190d6b27a3d923e313c3d879'/>
<id>urn:sha1:0a2e9650f5383bc1190d6b27a3d923e313c3d879</id>
<content type='text'>
The config variable MICROPY_MODULE_FROZEN is now made of two separate
parts: MICROPY_MODULE_FROZEN_STR and MICROPY_MODULE_FROZEN_MPY.  This
allows to have none, either or both of frozen strings and frozen mpy
files (aka frozen bytecode).
</content>
</entry>
</feed>
