summaryrefslogtreecommitdiffstatshomepage
path: root/unix-cpy/main.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-08-04 10:05:16 +0100
committerDamien George <damien.p.george@gmail.com>2014-08-04 10:05:16 +0100
commit8dbbbbc793554f920cf352b0e67da46abe3974cf (patch)
tree93dccc679ac010c4087c5d9067fb8da3a98d6b8b /unix-cpy/main.c
parent8362bffb2eed310d319b0b96c1b3305eff9c4417 (diff)
downloadmicropython-8dbbbbc793554f920cf352b0e67da46abe3974cf.tar.gz
micropython-8dbbbbc793554f920cf352b0e67da46abe3974cf.zip
Put call to qstr_init and mp_init_emergency_exc_buf in mp_init.
qstr_init is always called exactly before mp_init, so makes sense to just have mp_init call it. Similarly with mp_init_emergency_exception_buf. Doing this makes the ports simpler and less error prone (ie they can no longer forget to call these).
Diffstat (limited to 'unix-cpy/main.c')
-rw-r--r--unix-cpy/main.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/unix-cpy/main.c b/unix-cpy/main.c
index 4a04aa4e81..ac142f50ff 100644
--- a/unix-cpy/main.c
+++ b/unix-cpy/main.c
@@ -87,7 +87,6 @@ void do_file(const char *file) {
}
int main(int argc, char **argv) {
- qstr_init();
mp_init();
if (argc == 2) {