summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-02-07 18:33:58 +0000
committerDamien George <damien.p.george@gmail.com>2015-02-07 18:33:58 +0000
commit0bfc7638baa4c5a4a2351364ab770a188dcab302 (patch)
tree0127fcea13a875d37dd9cfa07dc6921bf387c578 /esp8266
parente1e359ff59d6bbf09441cc1f3965be63f1046182 (diff)
downloadmicropython-0bfc7638baa4c5a4a2351364ab770a188dcab302.tar.gz
micropython-0bfc7638baa4c5a4a2351364ab770a188dcab302.zip
py: Protect mp_parse and mp_compile with nlr push/pop block.
To enable parsing constants more efficiently, mp_parse should be allowed to raise an exception, and mp_compile can already raise a MemoryError. So these functions need to be protected by an nlr push/pop block. This patch adds that feature in all places. This allows to simplify how mp_parse and mp_compile are called: they now raise an exception if they have an error and so explicit checking is not needed anymore.
Diffstat (limited to 'esp8266')
-rw-r--r--esp8266/main.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/esp8266/main.c b/esp8266/main.c
index 86f306cbef..b6024f3c57 100644
--- a/esp8266/main.c
+++ b/esp8266/main.c
@@ -28,7 +28,6 @@
#include <string.h>
#include "py/nlr.h"
-#include "py/parsehelper.h"
#include "py/compile.h"
#include "py/runtime0.h"
#include "py/runtime.h"