diff options
author | Damien George <damien.p.george@gmail.com> | 2014-05-10 17:36:41 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-05-10 17:36:41 +0100 |
commit | 1b82e9af5c9b67cae8f7a35abc2dee3989fbdc06 (patch) | |
tree | 8f1dd9ece17d60d40d8bd6157fd2a2a01abd082f /py/map.c | |
parent | ad6178bb08de66783b4551ebcd444bf06647326a (diff) | |
download | micropython-1b82e9af5c9b67cae8f7a35abc2dee3989fbdc06.tar.gz micropython-1b82e9af5c9b67cae8f7a35abc2dee3989fbdc06.zip |
py: Improve handling of memory error in parser.
Parser shouldn't raise exceptions, so needs to check when memory
allocation fails. This patch does that for the initial set up of the
parser state.
Also, we now put the parser object on the stack. It's small enough to
go there instead of on the heap.
This partially addresses issue #558.
Diffstat (limited to 'py/map.c')
0 files changed, 0 insertions, 0 deletions