diff options
| author | David Lechner | 2020-03-21 17:06:14 -0500 |
|---|---|---|
| committer | Damien George | 2020-03-25 00:54:18 +1100 |
| commit | b1066a9f967ba4e12e9ca87820eab494177d8467 (patch) | |
| tree | ec77cf9c28fe680f7f099f52a57182df2a7a349a | |
| parent | 9fa32169e9e6cd23710a2a68c05aad96da22aae5 (diff) | |
unix: Remove custom definition of MP_PLAT_PRINT_STRN.
This removes the port-specific definition of MP_PLAT_PRINT_STRN on the unix
port. Since fee7e5617f55b4778de74ee185fcc3950cdc7b6d this is no longer a
single function call so we are not really optimising anything over using
the default definition of MP_PLAT_PRINT_STRN which calls
mp_hal_stdout_tx_strn_cooked().
| -rw-r--r-- | ports/unix/mpconfigport.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/ports/unix/mpconfigport.h b/ports/unix/mpconfigport.h index 5b2f0f09d..7991aba51 100644 --- a/ports/unix/mpconfigport.h +++ b/ports/unix/mpconfigport.h @@ -286,17 +286,6 @@ void mp_unix_mark_exec(void); #define MICROPY_FORCE_PLAT_ALLOC_EXEC (1) #endif -#if MICROPY_PY_OS_DUPTERM -#define MP_PLAT_PRINT_STRN(str, len) mp_hal_stdout_tx_strn_cooked(str, len) -#else -#define MP_PLAT_PRINT_STRN(str, len) do { \ - MP_THREAD_GIL_EXIT(); \ - ssize_t ret = write(1, str, len); \ - MP_THREAD_GIL_ENTER(); \ - (void)ret; \ -} while (0) -#endif - #ifdef __linux__ // Can access physical memory using /dev/mem #define MICROPY_PLAT_DEV_MEM (1) |
