From b89eaaa2e29d94ab3c837c680312df9edbee6f7f Mon Sep 17 00:00:00 2001 From: stijn Date: Sun, 16 Nov 2014 10:56:22 +0100 Subject: 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 --- extmod/modure.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extmod/modure.c') 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); -- cgit v1.2.3