From bc760dd34100099c352a0f185ec54ceae23d036d Mon Sep 17 00:00:00 2001 From: Dan Halbert Date: Mon, 23 Jul 2018 21:34:25 -0400 Subject: WIP: complete manual inspection of all significant changes --- py/asmx86.h | 2 +- py/moduerrno.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'py') 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; } } -- cgit v1.2.3