diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-11-26 23:10:52 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-11-26 23:11:38 +0200 |
commit | 61e85a8ce00a81421e6eb948e98f55ad39b3c1ec (patch) | |
tree | 0676860cff63de16e4eff1546a8f578c7daba1cb | |
parent | 061eb6fa6b196ed3d17121acb8282d626fdd6a69 (diff) | |
download | micropython-61e85a8ce00a81421e6eb948e98f55ad39b3c1ec.tar.gz micropython-61e85a8ce00a81421e6eb948e98f55ad39b3c1ec.zip |
pic16bit: Use global MICROPY_NO_ALLOCA setting.
-rw-r--r-- | pic16bit/mpconfigport.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pic16bit/mpconfigport.h b/pic16bit/mpconfigport.h index e5cb666fcc..97267b200b 100644 --- a/pic16bit/mpconfigport.h +++ b/pic16bit/mpconfigport.h @@ -63,6 +63,7 @@ #define MICROPY_CPYTHON_COMPAT (0) #define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_MPZ) #define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_NONE) +#define MICROPY_NO_ALLOCA (1) // type definitions for the specific machine @@ -98,9 +99,6 @@ extern const struct _mp_obj_module_t pyb_module; #define MICROPY_PORT_BUILTIN_MODULES \ { MP_OBJ_NEW_QSTR(MP_QSTR_pyb), (mp_obj_t)&pyb_module }, \ -// We need to provide a declaration/definition of alloca() -#define alloca(x) (void*)m_new(byte, (x)) - #define MP_STATE_PORT MP_STATE_VM #define MICROPY_PORT_ROOT_POINTERS \ |