Skip to content

Commit 61e85a8

Browse files
committed
pic16bit: Use global MICROPY_NO_ALLOCA setting.
1 parent 061eb6f commit 61e85a8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pic16bit/mpconfigport.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
#define MICROPY_CPYTHON_COMPAT (0)
6464
#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_MPZ)
6565
#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_NONE)
66+
#define MICROPY_NO_ALLOCA (1)
6667

6768
// type definitions for the specific machine
6869

@@ -98,9 +99,6 @@ extern const struct _mp_obj_module_t pyb_module;
9899
#define MICROPY_PORT_BUILTIN_MODULES \
99100
{ MP_OBJ_NEW_QSTR(MP_QSTR_pyb), (mp_obj_t)&pyb_module }, \
100101

101-
// We need to provide a declaration/definition of alloca()
102-
#define alloca(x) (void*)m_new(byte, (x))
103-
104102
#define MP_STATE_PORT MP_STATE_VM
105103

106104
#define MICROPY_PORT_ROOT_POINTERS \

0 commit comments

Comments
 (0)