summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2018-07-23 21:34:25 -0400
committerDan Halbert <halbert@halwitz.org>2018-07-23 21:34:25 -0400
commitbc760dd34100099c352a0f185ec54ceae23d036d (patch)
treecdbf3137eab7adec885ddb812daeda9b7069d679 /py
parent2809b4f9dd08dd1e83e87f1f4088ba22f3f66cd2 (diff)
WIP: complete manual inspection of all significant changes
Diffstat (limited to 'py')
-rw-r--r--py/asmx86.h2
-rw-r--r--py/moduerrno.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/py/asmx86.h b/py/asmx86.h
index eb6c03eac..0908b8c71 100644
--- a/py/asmx86.h
+++ b/py/asmx86.h
@@ -112,7 +112,7 @@ void asm_x86_mov_r32_to_local(asm_x86_t* as, int src_r32, int dest_local_num);
void asm_x86_mov_local_addr_to_r32(asm_x86_t* as, int local_num, int dest_r32);
void asm_x86_call_ind(asm_x86_t* as, void* ptr, mp_uint_t n_args, int temp_r32);
-#ifdef GENERIC_ASM_API
+#if defined(GENERIC_ASM_API) && GENERIC_ASM_API
// The following macros provide a (mostly) arch-independent API to
// generate native code, and are used by the native emitter.
diff --git a/py/moduerrno.c b/py/moduerrno.c
index 660fca07a..a3bb3396f 100644
--- a/py/moduerrno.c
+++ b/py/moduerrno.c
@@ -110,6 +110,7 @@ qstr mp_errno_to_str(mp_obj_t errno_val) {
case EEXIST: return MP_QSTR_File_space_exists;
case ENODEV: return MP_QSTR_Unsupported_space_operation;
case EINVAL: return MP_QSTR_Invalid_space_argument;
+ case EROFS: return MP_QSTR_Read_hyphen_only_space_filesystem;
}
}