diff options
author | Damien George <damien.p.george@gmail.com> | 2014-03-29 01:26:02 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-03-29 01:26:02 +0000 |
commit | c47fd2da8ec705a3c6f51d1a09b7bf4a180a01ff (patch) | |
tree | 8304956bd360b2bda7a6f5ee8e9443111da183dd /py/runtime.c | |
parent | bcc9298e5bd2049bbee8c1d00482d2695b8e0b70 (diff) | |
parent | 1d7553311c70810a6fea2d72b04403b93711389c (diff) | |
download | micropython-c47fd2da8ec705a3c6f51d1a09b7bf4a180a01ff.tar.gz micropython-c47fd2da8ec705a3c6f51d1a09b7bf4a180a01ff.zip |
Merge branch 'master' of github.com:micropython/micropython
Diffstat (limited to 'py/runtime.c')
-rw-r--r-- | py/runtime.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/py/runtime.c b/py/runtime.c index 762924c20a..3f637a16f9 100644 --- a/py/runtime.c +++ b/py/runtime.c @@ -20,7 +20,6 @@ #if 0 // print debugging info #define DEBUG_PRINT (1) -#define WRITE_CODE (1) #define DEBUG_printf DEBUG_printf #define DEBUG_OP_printf(...) DEBUG_printf(__VA_ARGS__) #else // don't print debugging info @@ -33,10 +32,6 @@ STATIC mp_map_t *map_locals; STATIC mp_map_t *map_globals; STATIC mp_map_t map_builtins; -#ifdef WRITE_CODE -FILE *fp_write_code = NULL; -#endif - // a good optimising compiler will inline this if necessary STATIC void mp_map_add_qstr(mp_map_t *map, qstr qstr, mp_obj_t value) { mp_map_lookup(map, MP_OBJ_NEW_QSTR(qstr), MP_MAP_LOOKUP_ADD_IF_NOT_FOUND)->value = value; @@ -68,18 +63,9 @@ void rt_init(void) { // for efficiency, left to platform-specific startup code //sys_path = mp_obj_new_list(0, NULL); //rt_store_attr(m_sys, MP_QSTR_path, sys_path); - -#ifdef WRITE_CODE - fp_write_code = fopen("out-code", "wb"); -#endif } void rt_deinit(void) { -#ifdef WRITE_CODE - if (fp_write_code != NULL) { - fclose(fp_write_code); - } -#endif mp_map_free(map_globals); mp_map_deinit(&map_builtins); mp_module_deinit(); |