summaryrefslogtreecommitdiffstatshomepage
path: root/unix
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-01-16 16:20:18 +1100
committerDamien George <damien.p.george@gmail.com>2017-01-16 16:20:49 +1100
commit9317fee5238f8261e05a19187da355baa9d017ab (patch)
tree420bf7119903c9b110f2707081577739aa3e480a /unix
parent50e14ca61945dcb5487e1b54d99fc84c530a32f7 (diff)
downloadmicropython-9317fee5238f8261e05a19187da355baa9d017ab.tar.gz
micropython-9317fee5238f8261e05a19187da355baa9d017ab.zip
unix/coverage: Move coverage #if guard back to top of file.
Diffstat (limited to 'unix')
-rw-r--r--unix/coverage.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/unix/coverage.c b/unix/coverage.c
index 8b46fd0ff3..5b0c8d7a06 100644
--- a/unix/coverage.c
+++ b/unix/coverage.c
@@ -11,6 +11,8 @@
#include "py/formatfloat.h"
#include "py/stream.h"
+#if defined(MICROPY_UNIX_COVERAGE)
+
// stream testing object
typedef struct _mp_obj_streamtest_t {
mp_obj_base_t base;
@@ -130,9 +132,6 @@ STATIC const mp_obj_type_t mp_type_stest_textio2 = {
.locals_dict = (mp_obj_dict_t*)&rawfile_locals_dict2,
};
-
-#if defined(MICROPY_UNIX_COVERAGE)
-
// str/bytes objects without a valid hash
STATIC const mp_obj_str_t str_no_hash_obj = {{&mp_type_str}, 0, 10, (const byte*)"0123456789"};
STATIC const mp_obj_str_t bytes_no_hash_obj = {{&mp_type_bytes}, 0, 10, (const byte*)"0123456789"};