diff options
author | stijn <stinos@zoho.com> | 2014-11-16 10:56:22 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-11-21 19:38:33 +0000 |
commit | b89eaaa2e29d94ab3c837c680312df9edbee6f7f (patch) | |
tree | 7882c5c6949d32ee1918c3f4bd213869551d0a24 | |
parent | c9f8f653adbff865d5cebdf0e46dc22680cebce4 (diff) | |
download | micropython-b89eaaa2e29d94ab3c837c680312df9edbee6f7f.tar.gz micropython-b89eaaa2e29d94ab3c837c680312df9edbee6f7f.zip |
windows: Update config with latest features
- update mpconfigport.h to reflect latest unix version
- fix compilation error in modure due to msvc not allowing dynamic arrays
-rw-r--r-- | extmod/modure.c | 2 | ||||
-rw-r--r-- | windows/mpconfigport.h | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/extmod/modure.c b/extmod/modure.c index ae47a2129a..deb3679475 100644 --- a/extmod/modure.c +++ b/extmod/modure.c @@ -134,7 +134,7 @@ STATIC mp_obj_t re_split(uint n_args, const mp_obj_t *args) { } mp_obj_t retval = mp_obj_new_list(0, NULL); - const char *caps[caps_num]; + const char **caps = alloca(caps_num * sizeof(char*)); while (true) { int res = re1_5_recursiveloopprog(&self->re, &subj, caps, caps_num, false); diff --git a/windows/mpconfigport.h b/windows/mpconfigport.h index 7b23f5cb1b..5da912dec6 100644 --- a/windows/mpconfigport.h +++ b/windows/mpconfigport.h @@ -47,7 +47,9 @@ #define MICROPY_STREAMS_NON_BLOCK (1) #define MICROPY_OPT_COMPUTED_GOTO (0) #define MICROPY_PY_BUILTINS_STR_UNICODE (1) +#define MICROPY_PY_BUILTINS_MEMORYVIEW (1) #define MICROPY_PY_BUILTINS_FROZENSET (1) +#define MICROPY_PY_BUILTINS_COMPILE (1) #define MICROPY_PY_SYS_EXIT (1) #define MICROPY_PY_SYS_PLATFORM "win32" #define MICROPY_PY_SYS_MAXSIZE (1) @@ -59,6 +61,8 @@ #define MICROPY_PY_UCTYPES (1) #define MICROPY_PY_UZLIB (1) #define MICROPY_PY_UJSON (1) +#define MICROPY_PY_URE (1) +#define MICROPY_PY_UHEAPQ (1) #define MICROPY_ERROR_REPORTING (MICROPY_ERROR_REPORTING_DETAILED) #ifdef _MSC_VER @@ -66,7 +70,7 @@ #endif #define MICROPY_ENABLE_EMERGENCY_EXCEPTION_BUF (1) -#define MICROPY_EMERGENCY_EXCEPTION_BUF_SIZE (128) +#define MICROPY_EMERGENCY_EXCEPTION_BUF_SIZE (256) #define MICROPY_PORT_INIT_FUNC init() #define MICROPY_PORT_DEINIT_FUNC deinit() |